Openbravo Issue Tracking System - Retail Modules | |||||||||||||
| View Issue Details | |||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
| 0048619 | Retail Modules | Tax Exempt | public | 2022-02-17 14:28 | 2022-03-16 14:51 | ||||||||
| Reporter | jetxarri | ||||||||||||
| Assigned To | ranjith_qualiantech_com | ||||||||||||
| Priority | high | Severity | major | Reproducibility | always | ||||||||
| Status | closed | Resolution | fixed | ||||||||||
| Platform | OS | 5 | OS Version | ||||||||||
| Product Version | |||||||||||||
| Target Version | RR20Q4 | Fixed in Version | RR22Q2 | ||||||||||
| Merge Request Status | approved | ||||||||||||
| Review Assigned To | |||||||||||||
| OBNetwork customer | OBPS | ||||||||||||
| Support ticket | |||||||||||||
| Regression level | |||||||||||||
| Regression date | |||||||||||||
| Regression introduced in release | |||||||||||||
| Regression introduced by commit | |||||||||||||
| Triggers an Emergency Pack | No | ||||||||||||
| Summary | 0048619: Wrong tax assigned when you are using tax exempt ticket line and you have some taxes with same configuration | ||||||||||||
| Description | Wrong tax assigned when you are using tax exempt ticket line (or BP) and you have some taxes with same configuration. | ||||||||||||
| Steps To Reproduce | Scenario: -2 taxes defined exactly equal and the only difference is the business partner tax category and valid from date -inside web POS, select a bp with tax exempt -Add a product with tax category of the defined tax rates Verify that the applied tax is the one with more recent valifFromDate. So change not applied tax with a newer validFromDate and do the same steps. Now the other tax is applied | ||||||||||||
| Proposed Solution | In the following function const checkTaxCategory = rule => { const isTaxExempt = line.taxExempt || ticket.businessPartner.taxExempt ; return ( (isTaxExempt ? equals(rule.taxExempt, isTaxExempt) : equals( rule.businessPartnerTaxCategory, ticket.businessPartner.taxCategory )) && equals(rule.taxCategory, line.product.taxCategory) ); }; When we check if "isTaxExempt" to get the rule (tax rate) we are only taking into account the checkbox "taxExempt" when we should check "taxExempt" check + the business partner tax category. return ( (isTaxExempt ? equals(rule.taxExempt, isTaxExempt) && equals( rule.businessPartnerTaxCategory, ticket.businessPartner.taxCategory ) : equals( rule.businessPartnerTaxCategory, ticket.businessPartner.taxCategory )) && equals(rule.taxCategory, line.product.taxCategory) ); | ||||||||||||
| Additional Information | |||||||||||||
| Tags | NOR | ||||||||||||
| Relationships |
| ||||||||||||
| Attached Files | |||||||||||||
| Issue History | |||||||||||||
| Date Modified | Username | Field | Change | ||||||||||
| 2022-02-17 14:28 | jetxarri | New Issue | |||||||||||
| 2022-02-17 14:28 | jetxarri | Assigned To | => Retail | ||||||||||
| 2022-02-17 14:28 | jetxarri | OBNetwork customer | => OBPS | ||||||||||
| 2022-02-17 14:28 | jetxarri | Triggers an Emergency Pack | => No | ||||||||||
| 2022-02-17 14:41 | rafaroda | Tag Attached: NOR | |||||||||||
| 2022-02-17 14:41 | rafaroda | Issue Monitored: rafaroda | |||||||||||
| 2022-02-18 11:25 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||||||||||
| 2022-02-18 11:37 | ranjith_qualiantech_com | Status | new => scheduled | ||||||||||
| 2022-03-02 08:07 | hgbot | Merge Request Status | => open | ||||||||||
| 2022-03-02 08:07 | hgbot | Note Added: 0135375 | |||||||||||
| 2022-03-16 14:44 | hgbot | Merge Request Status | open => approved | ||||||||||
| 2022-03-16 14:49 | hgbot | Note Added: 0135777 | |||||||||||
| 2022-03-16 14:49 | hgbot | Resolution | open => fixed | ||||||||||
| 2022-03-16 14:49 | hgbot | Status | scheduled => closed | ||||||||||
| 2022-03-16 14:49 | hgbot | Fixed in Version | => RR22Q2 | ||||||||||
| 2022-03-16 14:49 | hgbot | Note Added: 0135778 | |||||||||||
| 2022-03-16 14:51 | hgbot | Note Added: 0135779 | |||||||||||
| 2022-08-03 13:52 | rafaroda | Relationship added | related to 0049939 | ||||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||