Ignore:
Timestamp:
Apr 21, 2011, 5:57:17 PM (14 years ago)
Author:
gav
Message:

Formatting only, no domain change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/features/purchaseOrders/grails-app/domain/PurchaseOrderNumber.groovy

    r891 r892  
     1class PurchaseOrderNumber {
    12
    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
    105    String value
    11     PurchaseOrder purchaseOrder
    126
    137    static transients = ['description']
     
    1812
    1913    String getDescription() {
    20         if (!purchaseOrder) {
    21         return value + " - new"
    22         } else {
     14        if (!purchaseOrder)
     15            return "${value} - new"
     16        else
    2317            return "${value} for ${purchaseOrder.supplier}"
    24         }
    2518    }
    2619}
Note: See TracChangeset for help on using the changeset viewer.