You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ja...@apache.org on 2009/12/24 12:29:05 UTC

svn commit: r893732 - /ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml

Author: jacopoc
Date: Thu Dec 24 11:29:04 2009
New Revision: 893732

URL: http://svn.apache.org/viewvc?rev=893732&view=rev
Log:
Disabled automatic update of order items upon inventory receive (when cost is changed) because it doesn't consider different currencies between orders and inventory.

Modified:
    ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml

Modified: ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml?rev=893732&r1=893731&r2=893732&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/shipment/receipt/ShipmentReceiptServices.xml Thu Dec 24 11:29:04 2009
@@ -420,9 +420,10 @@
 
     <simple-method method-name="updateIssuanceShipmentAndPoOnReceiveInventory" short-description="Update issuance, shipment and order items if quantity received is higher than quantity on purchase order">
         <entity-one value-field="orderItem" entity-name="OrderItem"/>
+        <!-- TODO: this is disabled because it doesn't consider different currencies between orders and inventory
         <set field="unitCost" from-field="parameters.unitCost" type="BigDecimal"/>
         <if>
-            <condition> <!-- (unitCost != null && unitCost.compareTo(orderItem.get("unitPrice")) != 0) -->
+            <condition>
                 <and>
                     <not><if-empty field="unitCost"/></not>
                     <if-compare-field field="unitCost" operator="not-equals" to-field="orderItem.unitPrice" type="BigDecimal"/>
@@ -433,6 +434,7 @@
                 <store-value value-field="orderItem"/>
             </then>
         </if>
+        -->
         <call-simple-method method-name="getReceivedQuantityForOrderItem"/>
         <if-compare-field field="orderItem.quantity" operator="less" to-field="receivedQuantity" type="BigDecimal">
             <set field="orderItem.quantity" from-field="receivedQuantity"/>