Author: eckardjf
Date: Thu Aug 6 18:54:56 2009
New Revision: 801770
URL:
http://svn.apache.org/viewvc?rev=801770&view=revLog:
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;