Last change
on this file since 591 was
441,
checked in by gav, 15 years ago
|
Add CostCode and InventoryItemPurchase domain classes with import features.
Includes some fixes to inventory imports, where manufacturer and supplier were crossed.
|
File size:
331 bytes
|
Line | |
---|
1 | class CostCode { |
---|
2 | String name |
---|
3 | String description = "" |
---|
4 | boolean isActive = true |
---|
5 | |
---|
6 | static hasMany = [inventoryItemPurchases: InventoryItemPurchase] |
---|
7 | |
---|
8 | static constraints = { |
---|
9 | name(maxSize:50,unique:true,blank:false) |
---|
10 | description(maxSize:100) |
---|
11 | } |
---|
12 | |
---|
13 | String toString() { |
---|
14 | "${this.name}" |
---|
15 | } |
---|
16 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.