Author: jacopoc
Date: Thu May 3 05:05:16 2007
New Revision: 534810
URL:
http://svn.apache.org/viewvc?view=rev&rev=534810Log:
When qoh for components of production run is < 0 then no ATP should be set.
Modified:
ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.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?view=diff&rev=534810&r1=534809&r2=534810==============================================================================
--- ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml (original)
+++ ofbiz/trunk/applications/manufacturing/script/org/ofbiz/manufacturing/jobshopmgt/ProductionRunServices.xml Thu May 3 05:05:16 2007
@@ -120,9 +120,11 @@
<!-- instead of updating InventoryItem, add an InventoryItemDetail -->
<set from-field="lastNonSerInventoryItem.inventoryItemId" field="createDetailMap.inventoryItemId"/>
<set from-field="parameters.workEffortId" field="createDetailMap.workEffortId"/>
+ <!--
<calculate field-name="createDetailMap.availableToPromiseDiff" type="Double">
<calcop field-name="parameters.quantityNotIssued" operator="negative"/>
</calculate>
+ -->
<calculate field-name="createDetailMap.quantityOnHandDiff" type="Double">
<calcop field-name="parameters.quantityNotIssued" operator="negative"/>
</calculate>
@@ -151,9 +153,11 @@
<!-- also create a detail record with the quantities -->
<set field="createDetailMap.inventoryItemId" from-field="createInvItemOutMap.inventoryItemId"/>
<set field="createDetailMap.workEffortId" from-field="parameters.workEffortId"/>
+ <!--
<calculate field-name="createDetailMap.availableToPromiseDiff" type="Double">
<calcop field-name="parameters.quantityNotIssued" operator="negative"/>
</calculate>
+ -->
<calculate field-name="createDetailMap.quantityOnHandDiff" type="Double">
<calcop field-name="parameters.quantityNotIssued" operator="negative"/>
</calculate>