[ 
https://issues.apache.org/jira/browse/OFBIZ-4940?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Foxworthy closed OFBIZ-4940.
---------------------------------

    
> TaxAuthorityServices try to filter by date without getting date fields
> ----------------------------------------------------------------------
>
>                 Key: OFBIZ-4940
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4940
>             Project: OFBiz
>          Issue Type: Bug
>          Components: accounting
>    Affects Versions: SVN trunk
>            Reporter: Alexander Reelsen
>            Assignee: Paul Foxworthy
>            Priority: Minor
>             Fix For: SVN trunk
>
>         Attachments: OFBIZ-4940_FilterExpiredProductCategories.patch
>
>
> The TaxAuthorityServices try to get product category members and filter by 
> date. However they do not get the fromDate/thruDate fields and therefore 
> EntityUtil.filterByDate() fails silently. This can lead to accumulated tax 
> when two different tax rates were active on two totally different time ranges.
> Fix is changing line 329 from
> List<GenericValue> pcmList = delegator.findList("ProductCategoryMember", 
> productIdCond, UtilMisc.toSet("productCategoryId"), null, null, true);
> to
> List<GenericValue> pcmList = delegator.findList("ProductCategoryMember", 
> productIdCond, UtilMisc.toSet("productCategoryId", "fromDate", "thruDate"), 
> null, null, true);

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to