You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ec...@apache.org on 2009/08/06 20:54:57 UTC

svn commit: r801770 - /ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java

Author: eckardjf
Date: Thu Aug  6 18:54:56 2009
New Revision: 801770

URL: http://svn.apache.org/viewvc?rev=801770&view=rev
Log:
fix for OFBIZ-2804; provide payToPartyId when recalculating tax which is used when no ProductStore is available

Modified:
    ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java

Modified: ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java?rev=801770&r1=801769&r2=801770&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java (original)
+++ ofbiz/trunk/applications/order/src/org/ofbiz/order/order/OrderServices.java Thu Aug  6 18:54:56 2009
@@ -1533,6 +1533,7 @@
                     serviceContext.put("shippingAddress", shippingAddress);
                     serviceContext.put("orderPromotionsAmount", orderPromotions);
                     if (orh.getBillToParty() != null) serviceContext.put("billToPartyId", orh.getBillToParty().getString("partyId"));
+                    if (orh.getBillFromParty() != null) serviceContext.put("payToPartyId", orh.getBillFromParty().getString("partyId"));
 
                     // invoke the calcTax service
                     Map serviceResult = null;