Openbravo Issue Tracking System - Retail Modules
View Issue Details
0054654Retail ModulesRetail APIpublic2024-02-05 14:582024-02-13 12:19
ngarcia 
Rajesh_18 
urgentmajoralways
closedfixed 
5
 
RR24Q1.1RR24Q1 
No
0054654: ExternalOrderLoader should also look by the search key when trying to find a tax rate
ExternalOrderLoader should also look by the search key when trying to find a tax rate. Currently it is looking for:

id
Name
Tax Search Key (hidden field of 5 char)
Change the name of the Entregas IVA 21% tax rate, but leave the search key as it is (Entregas IVA 21%)
Import an order through the External Order Loader with the "Entregas IVA 21%" tax rate
Check the following error is returned:

"error": {
        "message": "Value Entregas IVA 21% does not resolve to an instance of FinancialMgmtTaxRate",
        "messageType": "Error",
        "title": ""
    },
    "totalRows": 0
}
In transformTaxes function of ExternalOrderLoader, add the value as a property to look for. Something such as

      final String taxId = resolveJsonValue(TaxRate.ENTITY_NAME, name,
          new String[] { "id", "name", "taxSearchKey", "value" });
No tags attached.
blocks defect 0054577 closed Rajesh_18 ExternalOrderLoader should also look by the search key when trying to find a tax rate 
Issue History
2024-02-13 11:23marvintmTypedefect => backport
2024-02-13 11:23marvintmTarget Version => RR24Q1.1
2024-02-13 11:42hgbotNote Added: 0160682
2024-02-13 12:19hgbotResolutionopen => fixed
2024-02-13 12:19hgbotStatusscheduled => closed
2024-02-13 12:19hgbotNote Added: 0160683
2024-02-13 12:19hgbotFixed in Version => RR24Q1
2024-02-13 12:19hgbotNote Added: 0160684

Notes
(0160682)
hgbot   
2024-02-13 11:42   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1471 [^]
(0160683)
hgbot   
2024-02-13 12:19   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1471 [^]
(0160684)
hgbot   
2024-02-13 12:19   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: db8d71325279f744d0b008f7502921e99f639eb4
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 13-02-2024 10:42:45
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/db8d71325279f744d0b008f7502921e99f639eb4 [^]

Fixed ISSUE-54654: Added Tax searchKey property while finding taxes

---
M src/org/openbravo/retail/posterminal/ExternalOrderLoader.java
---