source: trunk/grails-app/domain/InventoryMovement.groovy @ 116

Last change on this file since 116 was 116, checked in by gav, 15 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 
1class 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.