Index: branches/features/purchaseOrders/grails-app/domain/InventoryItem.groovy
===================================================================
--- branches/features/purchaseOrders/grails-app/domain/InventoryItem.groovy	(revision 891)
+++ branches/features/purchaseOrders/grails-app/domain/InventoryItem.groovy	(revision 892)
@@ -1,3 +1,4 @@
 class  InventoryItem {
+
     InventoryGroup inventoryGroup
     InventoryType inventoryType
@@ -6,4 +7,5 @@
     Picture picture
     Supplier preferredSupplier
+
     String name
     String description = ""
Index: branches/features/purchaseOrders/grails-app/domain/InventoryItemPurchase.groovy
===================================================================
--- branches/features/purchaseOrders/grails-app/domain/InventoryItemPurchase.groovy	(revision 891)
+++ branches/features/purchaseOrders/grails-app/domain/InventoryItemPurchase.groovy	(revision 892)
@@ -1,4 +1,5 @@
 class InventoryItemPurchase {
 
+    PurchaseOrder purchaseOrder
     Person enteredBy
     Person lastUpdatedBy
@@ -14,5 +15,4 @@
 
     Integer quantity
-    PurchaseOrder purchaseOrder
     BigDecimal orderValueAmount
     Currency orderValueCurrency
@@ -29,4 +29,5 @@
     static constraints = {
         quantity(min:0)
+        /// @todo: check constraints.
 //        purchaseOrderNumber(blank:false, maxSize:50, validator: {val, obj ->
 //            // For orders the purchaseOrderNumber must be unique for an inventoryItem.
Index: branches/features/purchaseOrders/grails-app/domain/PurchaseOrder.groovy
===================================================================
--- branches/features/purchaseOrders/grails-app/domain/PurchaseOrder.groovy	(revision 891)
+++ branches/features/purchaseOrders/grails-app/domain/PurchaseOrder.groovy	(revision 892)
@@ -1,11 +1,12 @@
+class PurchaseOrder {
 
-class PurchaseOrder {
+    Supplier supplier
+
     String comments
-    Supplier supplier
     Date ordered
+
     static hasMany = [inventoryItemPurchases: InventoryItemPurchase]
 
     static belongsTo = [purchaseOrderNumber: PurchaseOrderNumber]
-
 
     static constraints = {
Index: branches/features/purchaseOrders/grails-app/domain/PurchaseOrderNumber.groovy
===================================================================
--- branches/features/purchaseOrders/grails-app/domain/PurchaseOrderNumber.groovy	(revision 891)
+++ branches/features/purchaseOrders/grails-app/domain/PurchaseOrderNumber.groovy	(revision 892)
@@ -1,13 +1,7 @@
+class PurchaseOrderNumber {
 
-/**
- * Created by IntelliJ IDEA.
- * User: John
- * Date: 18/04/2011
- * Time: 3:01:53 PM
- * To change this template use File | Settings | File Templates.
- */
-class PurchaseOrderNumber {
+    PurchaseOrder purchaseOrder
+
     String value
-    PurchaseOrder purchaseOrder
 
     static transients = ['description']
@@ -18,9 +12,8 @@
 
     String getDescription() {
-        if (!purchaseOrder) {
-        return value + " - new"
-        } else {
+        if (!purchaseOrder)
+            return "${value} - new"
+        else
             return "${value} for ${purchaseOrder.supplier}"
-        }
     }
 }
