From 7bc8540f12b580db600d8cd64e42bbee14bcf582 Mon Sep 17 00:00:00 2001 From: "David E. Jones" Date: Mon, 7 Feb 2011 09:43:05 +0000 Subject: [PATCH] Small change so that VAT included in price is supported for other price types, especially when applied with a price rule as a flat amount override git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1067891 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/ofbiz/accounting/tax/TaxAuthorityServices.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/accounting/src/org/ofbiz/accounting/tax/TaxAuthorityServices.java b/applications/accounting/src/org/ofbiz/accounting/tax/TaxAuthorityServices.java index 2111415404..7412eb7e4f 100644 --- a/applications/accounting/src/org/ofbiz/accounting/tax/TaxAuthorityServices.java +++ b/applications/accounting/src/org/ofbiz/accounting/tax/TaxAuthorityServices.java @@ -409,7 +409,7 @@ public class TaxAuthorityServices { // find a ProductPrice for the productId and taxAuth* valxues, and see if it has a priceWithTax value Map priceFindMap = UtilMisc.toMap("productId", product.getString("productId"), "taxAuthPartyId", taxAuthPartyId, "taxAuthGeoId", taxAuthGeoId, - "productPriceTypeId", "DEFAULT_PRICE", "productPricePurposeId", "PURCHASE"); + "productPricePurposeId", "PURCHASE"); List productPriceList = delegator.findByAnd("ProductPrice", priceFindMap, UtilMisc.toList("-fromDate")); productPriceList = EntityUtil.filterByDate(productPriceList, true); productPrice = (productPriceList != null && productPriceList.size() > 0) ? productPriceList.get(0): null;