Last change
on this file since 344 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
|
Line | |
---|
1 | class InventoryMovementType { |
---|
2 | String name |
---|
3 | String description = "" |
---|
4 | boolean incrementsInventory = false |
---|
5 | boolean isActive = true |
---|
6 | |
---|
7 | static hasMany = [inventoryMovements: InventoryMovement] |
---|
8 | |
---|
9 | static contstraints = { |
---|
10 | name(maxSize:50,unique:true,blank:false) |
---|
11 | description(maxSize:100) |
---|
12 | incrementsInventory() |
---|
13 | isActive() |
---|
14 | } |
---|
15 | |
---|
16 | String toString() { |
---|
17 | "${this.name}" |
---|
18 | } |
---|
19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.