Author: jacopoc
Date: Tue Apr 12 09:29:52 2011
New Revision: 1091339
URL:
http://svn.apache.org/viewvc?rev=1091339&view=revLog:
Fixed bug that was causing, under some circumstances (failIfItemsAreNotAvailable set to N with not enough inventory on hand), negative qoh.
Modified:
ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml
ofbiz/trunk/applications/manufacturing/servicedef/services_production_run.xml
Modified: ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml?rev=1091339&r1=1091338&r2=1091339&view=diff==============================================================================
--- ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml (original)
+++ ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml Tue Apr 12 09:29:52 2011
@@ -152,7 +152,7 @@ under the License.
<if>
<condition>
<or>
- <if-compare field="parameters.failIfItemsAreNotAvailable" operator="equals" value="Y" type="String"/>
+ <if-empty field="parameters.failIfItemsAreNotOnHand"/>
<if-compare field="parameters.failIfItemsAreNotOnHand" operator="equals" value="Y" type="String"/>
</or>
</condition>
Modified: ofbiz/trunk/applications/manufacturing/servicedef/services_production_run.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/manufacturing/servicedef/services_production_run.xml?rev=1091339&r1=1091338&r2=1091339&view=diff==============================================================================
--- ofbiz/trunk/applications/manufacturing/servicedef/services_production_run.xml (original)
+++ ofbiz/trunk/applications/manufacturing/servicedef/services_production_run.xml Tue Apr 12 09:29:52 2011
@@ -191,9 +191,9 @@ under the License.
with type PRUNT_PROD_NEEDED is retrieved and used to get the quantity; its status is also updated to COMPLETED after
the issuance is done.
If locationSeqIds are provided, then the items are only issued from the inventory items associated to the locations.
- If failIfItemsAreNotAvailable is set to "Y" (the default is "N") then the service fails if there isn not enough inventory available:
+ If failIfItemsAreNotAvailable is set to "Y" (the default is "Y") then the service fails if there is not enough inventory available:
no reservation will be stolen.
- If failIfItemsAreNotOnHand is set to "Y" (the default is "N") then the service fails if there isn not enough inventory:
+ If failIfItemsAreNotOnHand is set to "Y" (the default is "Y") then the service fails if there is not enough inventory:
no items with negative qoh will be created.
</description>
<attribute name="workEffortId" type="String" mode="IN" optional="false"/>