Ignore:
Timestamp:
Nov 25, 2010, 8:47:00 AM (14 years ago)
Author:
gav
Message:

Domain change: as per ticket #96 - Remove unused fields from InventoryItem?.
Removed InventoryItem?.preferredManufacturer and manufacturersPartNumber.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/InventoryItemDetailedController.groovy

    r647 r719  
    344344        associatedPropertyValues.inventoryLocationList = InventoryLocation.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name'])
    345345        associatedPropertyValues.assetList = Asset.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name'])
    346         associatedPropertyValues.manufacturerList = Manufacturer.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name'])
    347346        associatedPropertyValues.supplierList = Supplier.findAllByIsActive(true, [max:associatedPropertyMax, sort:'name'])
    348347
     
    433432            def possibleAlternateItems = inventoryItemService.getPossibleAlternateItems(result.inventoryItemInstance)
    434433            def suppliers = Supplier.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }
    435             def manufacturers = Manufacturer.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }
    436434
    437435            return [ inventoryItemInstance : result.inventoryItemInstance,
    438436                            possibleAlternateItems: possibleAlternateItems,
    439                             suppliers: suppliers,
    440                             manufacturers: manufacturers]
     437                            suppliers: suppliers]
    441438        }
    442439
     
    462459        def possibleAlternateItems = inventoryItemService.getPossibleAlternateItems(result.inventoryItemInstance)
    463460        def suppliers = Supplier.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }
    464         def manufacturers = Manufacturer.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }
    465461        render(view:'edit', model:[inventoryItemInstance: result.inventoryItemInstance.attach(),
    466462                                                possibleAlternateItems: possibleAlternateItems,
    467                                                 suppliers: suppliers,
    468                                                 manufacturers: manufacturers])
     463                                                suppliers: suppliers])
    469464    }
    470465
     
    472467        def result = inventoryItemService.create(params)
    473468        def suppliers = Supplier.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }
    474         def manufacturers = Manufacturer.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }
    475469
    476470        if(!result.error)
    477471            return [inventoryItemInstance: result.inventoryItemInstance,
    478                             suppliers: suppliers,
    479                             manufacturers: manufacturers]
     472                            suppliers: suppliers]
    480473
    481474        //flash.errorMessage = g.message(code: result.error.code, args: result.error.args)
     
    493486
    494487        def suppliers = Supplier.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }
    495         def manufacturers = Manufacturer.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) }
    496488
    497489        //flash.errorMessage = g.message(code: result.error.code, args: result.error.args)
    498490        render(view:'create', model:[inventoryItemInstance: result.inventoryItemInstance,
    499                                                     suppliers: suppliers,
    500                                                     manufacturers: manufacturers])
     491                                                    suppliers: suppliers])
    501492    }
    502493
Note: See TracChangeset for help on using the changeset viewer.