Author: hansbak Date: Mon Oct 21 08:28:07 2013 New Revision: 1534062 URL: http://svn.apache.org/r1534062 Log: optional service parameter is still parsed in the service iteself
Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/tax/TaxAuthorityServices.java Modified: ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/tax/TaxAuthorityServices.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/tax/TaxAuthorityServices.java?rev=1534062&r1=1534061&r2=1534062&view=diff ============================================================================== --- ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/tax/TaxAuthorityServices.java (original) +++ ofbiz/trunk/applications/accounting/src/org/ofbiz/accounting/tax/TaxAuthorityServices.java Mon Oct 21 08:28:07 2013 @@ -209,7 +209,7 @@ public class TaxAuthorityServices { BigDecimal itemAmount = itemAmountList.get(i); BigDecimal itemPrice = itemPriceList.get(i); BigDecimal itemQuantity = itemQuantityList != null ? itemQuantityList.get(i) : null; - BigDecimal shippingAmount = itemShippingList.get(i); + BigDecimal shippingAmount = itemShippingList != null ? itemShippingList.get(i) : null; List<GenericValue> taxList = null; if (shippingAddress != null) { taxList = getTaxAdjustments(delegator, product, productStore, payToPartyId, billToPartyId, taxAuthoritySet, itemPrice, itemQuantity, itemAmount, shippingAmount, ZERO_BASE);