Author: jonesde
Date: Mon Jul 16 16:50:42 2007
New Revision: 556772
URL:
http://svn.apache.org/viewvc?view=rev&rev=556772Log:
A couple of changes to handle empty serial number elements because it appears these can be coming through instead of just leaving the elements out
Modified:
ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java
Modified: ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java?view=diff&rev=556772&r1=556771&r2=556772==============================================================================
--- ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java (original)
+++ ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisInventoryServices.java Mon Jul 16 16:50:42 2007
@@ -399,7 +399,9 @@
for (Iterator j = invDetailList.iterator(); j.hasNext();) {
Element invDetailElement = (Element) j.next();
String serialNumber = UtilXml.childElementValue(invDetailElement, "N2:SERIALNUM");
- serialNumsList.add(serialNumber);
+ if (UtilValidate.isNotEmpty(serialNumber)) {
+ serialNumsList.add(serialNumber);
+ }
}
/* DEJ20070711 Commenting this out because it shouldn't happen, ie more likely the ITEM element will be filled
@@ -641,7 +643,9 @@
for (Iterator j = invDetailList.iterator(); j.hasNext();) {
Element invDetailElement = (Element) j.next();
String serialNumber = UtilXml.childElementValue(invDetailElement, "N2:SERIALNUM");
- serialNumsList.add(serialNumber);
+ if (UtilValidate.isNotEmpty(serialNumber)) {
+ serialNumsList.add(serialNumber);
+ }
}
/* DEJ20070711 Commenting this out because it shouldn't happen, ie more likely the ITEM element will be filled