From 237428fa23d3c56fb38da3fdeaa3334ce3cceb1c Mon Sep 17 00:00:00 2001 From: Anil Patel Date: Fri, 27 Jul 2007 07:44:27 +0000 Subject: [PATCH] Modified as per David's comments. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@560135 13f79535-47bb-0310-9956-ffa450edef68 --- .../order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java b/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java index 2f1f14f8f9..9c46e59359 100644 --- a/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java +++ b/applications/order/src/org/ofbiz/order/shoppingcart/CheckOutHelper.java @@ -714,7 +714,7 @@ public class CheckOutHelper { } public void calcAndAddTax(GenericValue shipAddress) throws GeneralException { - if (!"SALES_ORDER".equals(cart.getOrderType()) || (UtilValidate.isEmpty(cart.getShippingContactMechId()) && UtilValidate.isEmpty(cart.getBillingAddress()))) { + if (!"SALES_ORDER".equals(cart.getOrderType()) || (UtilValidate.isEmpty(cart.getShippingContactMechId()) && cart.getBillingAddress()==null)) { return; }