Index: trunk/grails-app/domain/InventoryItem.groovy
===================================================================
--- trunk/grails-app/domain/InventoryItem.groovy	(revision 723)
+++ trunk/grails-app/domain/InventoryItem.groovy	(revision 726)
@@ -13,6 +13,6 @@
     String suppliersPartNumber
     Integer unitsInStock = 0
-    Integer reorderPoint
-    Integer reorderQuantity
+    Integer reorderPoint = 0
+    Integer reorderQuantity = 1
     boolean isActive = true
     boolean isObsolete = false
@@ -36,14 +36,15 @@
         unitsInStock(min:0)
         unitOfMeasure()
+        inventoryLocation()
+        inventoryGroup()
+        inventoryType()
+        isActive()
+        isObsolete()
+        enableReorderListing()
+        reorderPoint(min:0)
+        reorderQuantity(min:1)
         estimatedUnitPriceAmount(nullable:true, max: new BigDecimal(1000000000000))
         estimatedUnitPriceCurrency(nullable:true)
-        reorderPoint()
-        enableReorderListing()
-        reorderQuantity(nullable:true)
-        isActive()
-        isObsolete()
-        inventoryGroup()
-        inventoryType()
-        suppliersPartNumber(blank:true, nullable:true)
+        suppliersPartNumber(blank:true, nullable:true, maxSize:50)
         preferredSupplier(nullable:true)
     }
@@ -59,3 +60,37 @@
     }
 
+    //  This additional setter is used to convert the checkBoxList string or string array
+    //  of ids selected to the corresponding domain objects.
+    public void setAlternateSuppliersFromCheckBoxList(ids) {
+        def idList = []
+        if(ids instanceof String) {
+                if(ids.isInteger())
+                    idList << ids.toLong()
+        }
+        else {
+            ids.each() {
+                if(it.isInteger())
+                    idList << it.toLong()
+            }
+        }
+        this.alternateSuppliers = idList.collect { Supplier.get( it ) }
+    }
+
+    //  This additional setter is used to convert the checkBoxList string or string array
+    //  of ids selected to the corresponding domain objects.
+    public void setSpareForFromCheckBoxList(ids) {
+        def idList = []
+        if(ids instanceof String) {
+                if(ids.isInteger())
+                    idList << ids.toLong()
+        }
+        else {
+            ids.each() {
+                if(it.isInteger())
+                    idList << it.toLong()
+            }
+        }
+        this.spareFor = idList.collect { Asset.get( it ) }
+    }
+
 }
