source: trunk/grails-app/domain/InventoryLocation.groovy @ 195

Last change on this file since 195 was 175, checked in by gav, 15 years ago

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 size: 318 bytes
RevLine 
[175]1class InventoryLocation {
[116]2
3    InventoryStore inventoryStore
[175]4    String name
[116]5    Boolean isActive = true
6
[175]7    static hasMany = [inventoryItems: InventoryItem]
[116]8
[175]9//     static belongsTo = [InventoryStore]
[116]10
11    static constraints = {
[175]12        name(maxSize:50)
[116]13    }
14
15    String toString() {
[175]16        "${this.name}"
[116]17    }
18}
Note: See TracBrowser for help on using the repository browser.