Ignore:
Timestamp:
Nov 25, 2010, 12:08:12 PM (14 years ago)
Author:
gav
Message:

Domain change: as per ticket #97 - Drop the entire Manufacturer domain concept.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/CreateDataService.groovy

    r720 r722  
    6666        createBasePeriods()
    6767        createBaseSupplierTypes()
    68         createBaseManufacturerTypes()
    6968        createBaseAddressTypes()
    7069        createBaseContactTypes()
     
    118117        createDemoDepartments()
    119118        createDemoSuppliers()
    120         createDemoManufacturers()
    121119        createDemoProductionReference()
    122120        createDemoPurchasingGroups()  /// @todo: Perhaps a 'createQuickStartData' method?
     
    526524    }
    527525
    528     def createBaseManufacturerTypes() {
    529 
    530         // ManufacturerType
    531         def manufacturerTypeInstance
    532 
    533         // ManufacturerType #1
    534         manufacturerTypeInstance = new ManufacturerType(name: "Unknown",
    535                                                                         description: "Unknown manufacturer type")
    536         saveAndTest(manufacturerTypeInstance)
    537 
    538         // ManufacturerType #2
    539         manufacturerTypeInstance = new ManufacturerType(name: "OEM",
    540                                                                         description: "Original equipment manufacturer")
    541         saveAndTest(manufacturerTypeInstance)
    542 
    543         // ManufacturerType #3
    544         manufacturerTypeInstance = new ManufacturerType(name: "Alternate",
    545                                                                         description: "Not original equipment manufacturer")
    546         saveAndTest(manufacturerTypeInstance)
    547 
    548     }
    549 
    550526    def createBaseAddressTypes() {
    551527
     
    670646                                                                        supplierType: SupplierType.get(3))
    671647        saveAndTest(supplierInstance)
    672     }
    673 
    674     def createDemoManufacturers() {
    675 
    676         // Manufacturer
    677         def manufacturerInstance
    678 
    679         // Manufacturer #1
    680         manufacturerInstance = new Manufacturer(name: "OEM Manufacturer",
    681                                                                         manufacturerType: ManufacturerType.get(2))
    682         saveAndTest(manufacturerInstance)
    683 
    684         // Manufacturer #2
    685         manufacturerInstance = new Manufacturer(name: "Laser Cutting Services Pty",
    686                                                                         manufacturerType: ManufacturerType.get(3))
    687         saveAndTest(manufacturerInstance)
    688648    }
    689649
Note: See TracChangeset for help on using the changeset viewer.