Openbravo Issue Tracking System - Retail Modules
View Issue Details
0048950Retail ModulesWeb POSpublic2022-03-10 13:242022-04-01 13:28
aferraz 
gorka_gil 
normalmajorhave not tried
closedfixed 
5
 
RR22Q1.2RR22Q1.2 
Production - QA Approved
RR22Q1
No
0048950: Many unneded tax rules are loaded in WebPOS making tax engine very slow
Many unneded tax rules are loaded in WebPOS making tax engine very slow
Check in Information tab from Organization window "Vall Blanca Store" belongs to "Spain" country (id="106").

Check WebPOS loads some tax rules defined for a country different than Spain:
>>new Set(OB.Taxes.Pos.ruleImpls.map(rule => rule.country))
Set(4) {null, '106', '100', '102'}

By default, only rules with empty country or Spain country should be loaded in WebPOS.
Rules defined for other countries should be loaded only in case the store allows to have more than one location (0048093).
Add back to TaxRate.java and TaxZone.java the filters removed in https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/612 [^]
Skip these filters (or filter by every store location) just in case the store allows to have more than one location.
No tags attached.
blocks defect 0048762 closed gorka_gil Many unneded tax rules are loaded in WebPOS making tax engine very slow 
Issue History
2022-03-31 16:37gorka_gilTypedefect => backport
2022-03-31 16:37gorka_gilTarget Version => RR22Q1.2
2022-04-01 12:54hgbotNote Added: 0136253
2022-04-01 13:13hgbotNote Added: 0136255
2022-04-01 13:15hgbotNote Added: 0136256
2022-04-01 13:28hgbotResolutionopen => fixed
2022-04-01 13:28hgbotStatusscheduled => closed
2022-04-01 13:28hgbotFixed in Version => RR22Q1.2
2022-04-01 13:28hgbotNote Added: 0136257
2022-04-01 13:28hgbotNote Added: 0136258
2022-04-01 13:28hgbotNote Added: 0136259
2022-04-01 13:28hgbotNote Added: 0136260
2022-04-01 13:28hgbotNote Added: 0136261
2022-04-01 13:28hgbotNote Added: 0136262
2022-04-01 13:28hgbotNote Added: 0136263
2022-04-01 13:28hgbotNote Added: 0136264
2022-04-01 13:28hgbotNote Added: 0136265
2022-04-01 13:28hgbotNote Added: 0136266
2022-04-01 13:28hgbotNote Added: 0136267
2022-04-01 13:28hgbotNote Added: 0136268

Notes
(0136253)
hgbot   
2022-04-01 12:54   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/758 [^]
(0136255)
hgbot   
2022-04-01 13:13   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/40 [^]
(0136256)
hgbot   
2022-04-01 13:15   
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/179 [^]
(0136257)
hgbot   
2022-04-01 13:28   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 9941fe908a05b84cf37d6ad49481688675944618
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 01-04-2022 12:52:57
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/9941fe908a05b84cf37d6ad49481688675944618 [^]

Fixed ISSUE-48950: only avoid filter taxes when we have many locations per store

---
M src-db/database/sourcedata/AD_REF_LIST.xml
M src/org/openbravo/retail/posterminal/master/TaxRate.java
M src/org/openbravo/retail/posterminal/master/TaxZone.java
---
(0136258)
hgbot   
2022-04-01 13:28   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 931837e59439b12e11ca7ddc4b26da98eddcbdc8
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 01-04-2022 12:53:10
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/931837e59439b12e11ca7ddc4b26da98eddcbdc8 [^]

Related to ISSUE-48950: cross store also needs to load all taxes

Since with crosstore the tax from is where the product is located

---
M src/org/openbravo/retail/posterminal/master/TaxRate.java
M src/org/openbravo/retail/posterminal/master/TaxZone.java
---
(0136259)
hgbot   
2022-04-01 13:28   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 395eb25db3750b84173cd158f76d62b0adfee154
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 01-04-2022 12:53:17
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/395eb25db3750b84173cd158f76d62b0adfee154 [^]

Related to ISSUE-48950: Review: move condition to a function

---
M src/org/openbravo/retail/posterminal/POSUtils.java
M src/org/openbravo/retail/posterminal/master/TaxRate.java
M src/org/openbravo/retail/posterminal/master/TaxZone.java
---
(0136260)
hgbot   
2022-04-01 13:28   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 2600edbebd983760f5c6ff8ca28be16759505a86
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 01-04-2022 12:53:23
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/2600edbebd983760f5c6ff8ca28be16759505a86 [^]

Related to ISSUE-48950: Review: Fix copyrigth year, name of preference, parameter name

---
M src-db/database/sourcedata/AD_REF_LIST.xml
M src/org/openbravo/retail/posterminal/POSUtils.java
M src/org/openbravo/retail/posterminal/master/TaxRate.java
M src/org/openbravo/retail/posterminal/master/TaxZone.java
---
(0136261)
hgbot   
2022-04-01 13:28   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/758 [^]
(0136262)
hgbot   
2022-04-01 13:28   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions [^]
Changeset: 4bfd7b4014b31d7ab324fd0840a7a8bb468b3ba7
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 01-04-2022 13:11:55
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/commit/4bfd7b4014b31d7ab324fd0840a7a8bb468b3ba7 [^]

Related to ISSUE-48950: take into account the preference when loading org locations

---
M src/org/openbravo/retail/sessions/OrganizationLocation.java
---
(0136263)
hgbot   
2022-04-01 13:28   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions [^]
Changeset: 1fb8523e2283152ad19ac43c6d3f524cbb91b949
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 01-04-2022 13:12:13
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/commit/1fb8523e2283152ad19ac43c6d3f524cbb91b949 [^]

Related to ISSUE-48950: Review: Fix copyrigth year, name of preference

---
M src/org/openbravo/retail/sessions/OrganizationLocation.java
---
(0136264)
hgbot   
2022-04-01 13:28   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.sessions/-/merge_requests/40 [^]
(0136265)
hgbot   
2022-04-01 13:28   
Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: c2ca9d955e226055a2f6919caab20c84aaf68a01
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 01-04-2022 13:14:55
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/c2ca9d955e226055a2f6919caab20c84aaf68a01 [^]

Related to ISSUE-48950: active OBPOS_organizationWithMultipleLocations pref in OrgLocations test

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/OrgLocations.java
---
(0136266)
hgbot   
2022-04-01 13:28   
Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: 57d6735864f2081a8f21532eb62257ea5ae14220
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 01-04-2022 13:15:02
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/57d6735864f2081a8f21532eb62257ea5ae14220 [^]

Related to ISSUE-48950: try another workaround for test OrgLocations

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/OrgLocations.java
---
(0136267)
hgbot   
2022-04-01 13:28   
Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: d3a87376b068b0776260b1f11cff61fea5b8d388
Author: Gorka Gil <gorka.gil@openbravo.com>
Date: 01-04-2022 13:15:08
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/d3a87376b068b0776260b1f11cff61fea5b8d388 [^]

Related to ISSUE-48950: fix copyrigth year

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/sessions/openstoretill/OrgLocations.java
---
(0136268)
hgbot   
2022-04-01 13:28   
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/179 [^]