- Timestamp:
- Apr 21, 2011, 5:57:17 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/features/purchaseOrders/grails-app/domain/PurchaseOrderNumber.groovy
r891 r892 1 class PurchaseOrderNumber { 1 2 2 /** 3 * Created by IntelliJ IDEA. 4 * User: John 5 * Date: 18/04/2011 6 * Time: 3:01:53 PM 7 * To change this template use File | Settings | File Templates. 8 */ 9 class PurchaseOrderNumber { 3 PurchaseOrder purchaseOrder 4 10 5 String value 11 PurchaseOrder purchaseOrder12 6 13 7 static transients = ['description'] … … 18 12 19 13 String getDescription() { 20 if (!purchaseOrder) {21 return value + "- new"22 } else {14 if (!purchaseOrder) 15 return "${value} - new" 16 else 23 17 return "${value} for ${purchaseOrder.supplier}" 24 }25 18 } 26 19 }
Note: See TracChangeset
for help on using the changeset viewer.