Last change
on this file since 258 was
177,
checked in by gav, 15 years ago
|
Inventory movement quantity adjustments now done in a service.
InventoryMovementType now has an incrementsInventory flag, so not dependant on the text name.
|
File size:
426 bytes
|
Rev | Line | |
---|
[116] | 1 | class InventoryMovementType { |
---|
| 2 | String name |
---|
| 3 | String description = "" |
---|
[177] | 4 | boolean incrementsInventory = false |
---|
[116] | 5 | boolean isActive = true |
---|
| 6 | |
---|
| 7 | static hasMany = [inventoryMovements: InventoryMovement] |
---|
[177] | 8 | |
---|
[116] | 9 | static contstraints = { |
---|
| 10 | name(maxSize:50,unique:true,blank:false) |
---|
| 11 | description(maxSize:100) |
---|
[177] | 12 | incrementsInventory() |
---|
| 13 | isActive() |
---|
[116] | 14 | } |
---|
| 15 | |
---|
| 16 | String toString() { |
---|
| 17 | "${this.name}" |
---|
| 18 | } |
---|
| 19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.