source: trunk/grails-app/domain/StoredItem.groovy @ 134

Last change on this file since 134 was 125, checked in by gav, 15 years ago

Detail Inventory and associated, update BootStrap? and some work on TaskRecurringScheduleJob?

File size: 334 bytes
Line 
1class StoredItem {
2
3    InventoryItem inventoryItem
4    StoreLocation storeLocation
5    Integer quantity = 0
6
7    static belongsTo = [InventoryItem]
8
9    static constraints = {
10        quantity(minSize:0)
11    }
12
13    String toString() {
14        "${this.quantity} item(s) at ${storeLocation} in ${storeLocation.inventoryStore}"
15    }
16}
Note: See TracBrowser for help on using the repository browser.