Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0044888 | Retail Modules | Web POS | public | 2020-08-25 15:00 | 2020-09-04 07:28 |
|
Reporter | aferraz | |
Assigned To | ranjith_qualiantech_com | |
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR20Q4 | |
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 | 0044888: Add info to no tax found error in tax engine |
Description | Add error subclass to tax engine in order to add user readable error message in case 'No tax found for line' error is thrown. |
Steps To Reproduce | Run CheckShippingAddressMandatory test.
Check "Cannot calculate taxes for a line with 1 x Avalanche transceiver" error is shown.
Check this error is thrown from TicketUtils.calculateDiscountsAndTaxes(), after parsing the error thrown from tax-rules.js. |
Proposed Solution | Create Error subclass named TaxEngineError, similar to https://gitlab.com/openbravo/projects/retail/pmods/org.openbravo.mobile.core/-/blob/master/web/org.openbravo.mobile.core/app/exception/TranslatableError.js [^]
In tax-rules.js, throw TaxEngineError instead of Error, adding needed information ('No tax found for line' message and line id.)
In TicketUtils.calculateDiscountsAndTaxes catch, read needed information from TaxEngineError, instead of parsing error message.
|
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2020-08-25 15:00 | aferraz | New Issue | |
2020-08-25 15:00 | aferraz | Assigned To | => Retail |
2020-08-25 15:00 | aferraz | OBNetwork customer | => No |
2020-08-25 15:00 | aferraz | Triggers an Emergency Pack | => No |
2020-08-26 06:19 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2020-08-26 06:19 | ranjith_qualiantech_com | Status | new => scheduled |
2020-08-26 12:49 | hgbot | Merge Request Status | => open |
2020-08-26 12:49 | hgbot | Note Added: 0122360 | |
2020-08-26 12:49 | hgbot | Note Added: 0122361 | |
2020-09-04 07:28 | hgbot | Merge Request Status | open => approved |
2020-09-04 07:28 | hgbot | Resolution | open => fixed |
2020-09-04 07:28 | hgbot | Status | scheduled => closed |
2020-09-04 07:28 | hgbot | Fixed in Version | => RR20Q4 |
2020-09-04 07:28 | hgbot | Note Added: 0122632 | |
2020-09-04 07:28 | hgbot | Note Added: 0122633 | |
2020-09-04 07:28 | hgbot | Note Added: 0122634 | |
2020-09-04 07:28 | hgbot | Note Added: 0122635 | |
Notes |
|
(0122360)
|
hgbot
|
2020-08-26 12:49
|
|
|
|
(0122361)
|
hgbot
|
2020-08-26 12:49
|
|
|
|
(0122632)
|
hgbot
|
2020-09-04 07:28
|
|
|
|
(0122633)
|
hgbot
|
2020-09-04 07:28
|
|
|
|
(0122634)
|
hgbot
|
2020-09-04 07:28
|
|
|
|
(0122635)
|
hgbot
|
2020-09-04 07:28
|
|
|