|
Last change
on this file since 143 was
116,
checked in by gav, 17 years ago
|
|
First commit of Inventory domain, including domain-classes, controllers, views and bootstrap. Also double check/adjust as required security extends in controllers.
|
|
File size:
416 bytes
|
| Line | |
|---|
| 1 | class InventoryMovement { |
|---|
| 2 | InventoryItem inventoryItem |
|---|
| 3 | InventoryMovementType inventoryMovementType |
|---|
| 4 | Task task |
|---|
| 5 | String quantity |
|---|
| 6 | Date date = new Date() |
|---|
| 7 | |
|---|
| 8 | static belongsTo = [InventoryItem] |
|---|
| 9 | |
|---|
| 10 | static constraints = { |
|---|
| 11 | inventoryItem() |
|---|
| 12 | quantity() |
|---|
| 13 | inventoryMovementType() |
|---|
| 14 | task(blank:true, nullable:true) |
|---|
| 15 | date() |
|---|
| 16 | } |
|---|
| 17 | |
|---|
| 18 | String toString() {"${this.quantity}"} |
|---|
| 19 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.