Last change
on this file since 448 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:
841 bytes
|
Line | |
---|
1 | class InventoryItemPurchase { |
---|
2 | |
---|
3 | Person enteredBy |
---|
4 | InventoryItem inventoryItem |
---|
5 | CostCode costCode |
---|
6 | InventoryItemPurchaseType inventoryItemPurchaseType |
---|
7 | |
---|
8 | Date dateEntered = new Date() |
---|
9 | Integer quantity |
---|
10 | String purchaseOrderNumber = '' |
---|
11 | BigDecimal orderValueAmount |
---|
12 | Currency orderValueCurrency |
---|
13 | String invoiceNumber = '' |
---|
14 | |
---|
15 | Boolean receivedComplete = false |
---|
16 | Boolean invoicePaymentApproved = false |
---|
17 | |
---|
18 | // hasMany = [] |
---|
19 | |
---|
20 | static belongsTo = [InventoryItem] |
---|
21 | |
---|
22 | static constraints = { |
---|
23 | quantity(min:0) |
---|
24 | purchaseOrderNumber(blank:false, maxSize:50) |
---|
25 | invoiceNumber(maxSize:50) |
---|
26 | orderValueAmount(max: new BigDecimal(1000000000000)) |
---|
27 | orderValueCurrency() |
---|
28 | } |
---|
29 | |
---|
30 | String toString() { |
---|
31 | "${this.quantity} x ${inventoryItem} - ${this.inventoryItemPurchaseType} " |
---|
32 | } |
---|
33 | |
---|
34 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.