Ignore:
Timestamp:
Nov 2, 2009, 1:17:03 PM (15 years ago)
Author:
gav
Message:

Inventory movement quantity adjustments now done in a service.
InventoryMovementType now has an incrementsInventory flag, so not dependant on the text name.

Location:
trunk/grails-app/services
Files:
1 added
1 edited

Legend:

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

    r175 r177  
    708708
    709709        // InventoryMovementType #1
    710         inventoryMovementTypeInstance = new InventoryMovementType(name: "Used")
     710        inventoryMovementTypeInstance = new InventoryMovementType(name: "Used",
     711                                                                                                                        incrementsInventory: false)
    711712        saveAndTest(inventoryMovementTypeInstance)
    712713
    713714        // InventoryMovementType #2
    714         inventoryMovementTypeInstance = new InventoryMovementType(name: "Repaired")
     715        inventoryMovementTypeInstance = new InventoryMovementType(name: "Repaired",
     716                                                                                                                        incrementsInventory: true)
    715717        saveAndTest(inventoryMovementTypeInstance)
    716718
    717719        // InventoryMovementType #3
    718         inventoryMovementTypeInstance = new InventoryMovementType(name: "Purchased")
     720        inventoryMovementTypeInstance = new InventoryMovementType(name: "Purchase Received",
     721                                                                                                                        incrementsInventory: true)
     722        saveAndTest(inventoryMovementTypeInstance)
     723
     724        // InventoryMovementType #4
     725        inventoryMovementTypeInstance = new InventoryMovementType(name: "Correction Increase",
     726                                                                                                                        incrementsInventory: true)
     727        saveAndTest(inventoryMovementTypeInstance)
     728
     729        // InventoryMovementType #5
     730        inventoryMovementTypeInstance = new InventoryMovementType(name: "Correction Decrease",
     731                                                                                                                        incrementsInventory: false)
    719732        saveAndTest(inventoryMovementTypeInstance)
    720733    }
Note: See TracChangeset for help on using the changeset viewer.