Author: jonesde
Date: Wed Sep 19 18:58:44 2007
New Revision: 577500
URL:
http://svn.apache.org/viewvc?rev=577500&view=revLog:
Fixed bug from last commit, reversed logic
Modified:
ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java
Modified: ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java?rev=577500&r1=577499&r2=577500&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java (original)
+++ ofbiz/trunk/specialpurpose/oagis/src/org/ofbiz/oagis/OagisShipmentServices.java Wed Sep 19 18:58:44 2007
@@ -752,7 +752,7 @@
if (!"ORDER_APPROVED".equals(orderStatusId)) {
return ServiceUtil.returnError("OrderHeader not in the approved status (ORDER_APPROVED) with ID [" + orderId + "]");
}
- if ("SALES_ORDER".equals(orderHeader.getString("orderTypeId"))) {
+ if (!"SALES_ORDER".equals(orderHeader.getString("orderTypeId"))) {
return ServiceUtil.returnError("OrderHeader not a sales order (SALES_ORDER) with ID [" + orderId + "]");
}