Ignore:
Timestamp:
Oct 29, 2009, 8:30:58 PM (14 years ago)
Author:
gav
Message:

Substantial refactor of the Inventory domain.
InventoryItems can now be added to tasks, no quantity adjustments done yet.
Removed StoredItem and with it the ability to store an inventoryItem in multiple places, just too complex right now.
Svn move StoreLocation to InventoryLocation.

File:
1 moved

Legend:

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

    r162 r175  
    1 class StoreLocation {
     1class InventoryLocation {
    22
    33    InventoryStore inventoryStore
    4     String bin
     4    String name
    55    Boolean isActive = true
    66
    7     static hasMany = [storedItems: StoredItem]
     7    static hasMany = [inventoryItems: InventoryItem]
    88
    9     static belongsTo = [InventoryStore]
     9//     static belongsTo = [InventoryStore]
    1010
    1111    static constraints = {
    12         bin(maxSize:50)
     12        name(maxSize:50)
    1313    }
    1414
    1515    String toString() {
    16         "${this.bin}"
     16        "${this.name}"
    1717    }
    1818}
Note: See TracChangeset for help on using the changeset viewer.