svn commit: r1750115 - /ofbiz/trunk/applications/order/minilang/requirement/RequirementServices.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1750115 - /ofbiz/trunk/applications/order/minilang/requirement/RequirementServices.xml

ashish-18
Author: ashish
Date: Fri Jun 24 14:19:28 2016
New Revision: 1750115

URL: http://svn.apache.org/viewvc?rev=1750115&view=rev
Log:
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/trunk/applications/order/minilang/requirement/RequirementServices.xml

Modified: ofbiz/trunk/applications/order/minilang/requirement/RequirementServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/minilang/requirement/RequirementServices.xml?rev=1750115&r1=1750114&r2=1750115&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/minilang/requirement/RequirementServices.xml (original)
+++ ofbiz/trunk/applications/order/minilang/requirement/RequirementServices.xml Fri Jun 24 14:19:28 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>