Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0045360 | Retail Modules | Web POS | public | 2020-11-02 18:30 | 2020-11-16 06:48 |
Reporter | AugustoMauch | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR21Q1 | |||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | No | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0045360: Problem on bom taxes calculation if an adjustment is required | ||||
Description | When calculating the line BOM taxes, there will be an error if an adjustment has to be done. This line will be executed [1] and it will fail because the OB.DEC.add function requires two arguments. [1] https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/web/org.openbravo.retail.posterminal/app/model/business-logic/taxes-engine/engine/tax-rules.js#L112 [^] | ||||
Steps To Reproduce | I have not been able to reproduce it in standard retail, but the error is evident enough in line https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/blob/master/web/org.openbravo.retail.posterminal/app/model/business-logic/taxes-engine/engine/tax-rules.js#L112 [^] | ||||
Proposed Solution | Just replace bomGroup.amount = OB.DEC.add(bomGroup.amount); with bomGroup.amount = OB.DEC.add(adjustment, bomGroup.amount); | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-11-02 18:30 | AugustoMauch | New Issue | |||
2020-11-02 18:30 | AugustoMauch | Assigned To | => Retail | ||
2020-11-02 18:30 | AugustoMauch | OBNetwork customer | => No | ||
2020-11-02 18:30 | AugustoMauch | Triggers an Emergency Pack | => No | ||
2020-11-09 06:54 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2020-11-10 04:11 | hgbot | Merge Request Status | => open | ||
2020-11-10 04:11 | hgbot | Note Added: 0124249 | |||
2020-11-11 05:09 | ranjith_qualiantech_com | Status | new => scheduled | ||
2020-11-16 06:48 | hgbot | Merge Request Status | open => approved | ||
2020-11-16 06:48 | hgbot | Resolution | open => fixed | ||
2020-11-16 06:48 | hgbot | Status | scheduled => closed | ||
2020-11-16 06:48 | hgbot | Fixed in Version | => RR21Q1 | ||
2020-11-16 06:48 | hgbot | Note Added: 0124379 | |||
2020-11-16 06:48 | hgbot | Note Added: 0124380 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|