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/domain
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/InventoryMovement.groovy

    r175 r177  
    88    Date date = new Date()
    99
    10 //     static belongsTo = [inventoryItem]
     10//     static belongsTo = []
    1111
    1212    static constraints = {
  • trunk/grails-app/domain/InventoryMovementType.groovy

    r116 r177  
    22    String name
    33    String description = ""
     4    boolean incrementsInventory = false
    45    boolean isActive = true
    56
    67    static hasMany = [inventoryMovements: InventoryMovement]
    7    
     8
    89    static contstraints = {
    910        name(maxSize:50,unique:true,blank:false)
    1011        description(maxSize:100)
     12        incrementsInventory()
     13        isActive()
    1114    }
    1215
Note: See TracChangeset for help on using the changeset viewer.