Permalink
Browse files

Exclude expired product category members from tax calc (OFBIZ-4940)

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1456897 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent f6e8764 commit d9f959af02f5deefe08fd44186644522e7cd5d5f Paul Foxworthy committed Mar 15, 2013
@@ -330,7 +330,7 @@ private static void getTaxAuthorities(Delegator delegator, GenericValue shipping
} else {
productIdCond = EntityCondition.makeCondition("productId", EntityOperator.EQUALS, product.getString("productId"));
}
- List<GenericValue> pcmList = delegator.findList("ProductCategoryMember", productIdCond, UtilMisc.toSet("productCategoryId"), null, null, true);
+ List<GenericValue> pcmList = delegator.findList("ProductCategoryMember", productIdCond, UtilMisc.toSet("productCategoryId", "fromDate", "thruDate"), null, null, true);
pcmList = EntityUtil.filterByDate(pcmList, true);
for(GenericValue pcm : pcmList) {
productCategoryIdSet.add(pcm.getString("productCategoryId"));

0 comments on commit d9f959a

Please sign in to comment.