Author: ashish Date: Fri Jun 24 14:21:02 2016 New Revision: 1750117 URL: http://svn.apache.org/viewvc?rev=1750117&view=rev Log: Applied patch from trunk r1750115. ============================================ Applied patch from jira issue - OFBIZ-7181 - Error on Product Requirement Creation. Thanks Ravi for the contribution. Thanks Montalbano for your help in reviewing the patch and then providing the comment.
Modified: ofbiz/branches/release14.12/applications/order/script/org/ofbiz/order/requirement/RequirementServices.xml Modified: ofbiz/branches/release14.12/applications/order/script/org/ofbiz/order/requirement/RequirementServices.xml URL: http://svn.apache.org/viewvc/ofbiz/branches/release14.12/applications/order/script/org/ofbiz/order/requirement/RequirementServices.xml?rev=1750117&r1=1750116&r2=1750117&view=diff ============================================================================== --- ofbiz/branches/release14.12/applications/order/script/org/ofbiz/order/requirement/RequirementServices.xml (original) +++ ofbiz/branches/release14.12/applications/order/script/org/ofbiz/order/requirement/RequirementServices.xml Fri Jun 24 14:21:02 2016 @@ -75,6 +75,7 @@ under the License. <check-errors/> <if-compare field="requirement.requirementTypeId" operator="equals" value="PRODUCT_REQUIREMENT"> <if-not-empty field="requirement.productId"> + <if-not-empty field="requirement.quantity"> <entity-condition entity-name="SupplierProduct" list="supplierProducts"> <condition-list> <condition-expr field-name="productId" from-field="requirement.productId"/> @@ -93,6 +94,7 @@ under the License. <now-timestamp field="requirementSupplier.fromDate"/> <create-value value-field="requirementSupplier"/> </if-not-empty> + </if-not-empty> </if-not-empty> </if-compare> </simple-method>