Last change
on this file since 964 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:
375 bytes
|
Line | |
---|
1 | class InventoryStore { |
---|
2 | |
---|
3 | Site site |
---|
4 | String name |
---|
5 | String description = "" |
---|
6 | Boolean isActive = true |
---|
7 | |
---|
8 | static hasMany = [inventoryLocations: InventoryLocation] |
---|
9 | |
---|
10 | static belongsTo = [Site] |
---|
11 | |
---|
12 | static constraints = { |
---|
13 | name(maxSize:50,unique:true,blank:false) |
---|
14 | description(maxSize:100) |
---|
15 | } |
---|
16 | |
---|
17 | String toString() { |
---|
18 | "${this.name}" |
---|
19 | } |
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.