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
This commit is contained in:
@@ -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<String, String> priceFindMap = UtilMisc.toMap("productId", product.getString("productId"),
|
||||
"taxAuthPartyId", taxAuthPartyId, "taxAuthGeoId", taxAuthGeoId,
|
||||
"productPriceTypeId", "DEFAULT_PRICE", "productPricePurposeId", "PURCHASE");
|
||||
"productPricePurposeId", "PURCHASE");
|
||||
List<GenericValue> productPriceList = delegator.findByAnd("ProductPrice", priceFindMap, UtilMisc.toList("-fromDate"));
|
||||
productPriceList = EntityUtil.filterByDate(productPriceList, true);
|
||||
productPrice = (productPriceList != null && productPriceList.size() > 0) ? productPriceList.get(0): null;
|
||||
|
||||
Reference in New Issue
Block a user