Openbravo Issue Tracking System - POS2
View Issue Details
0049459POS2POSpublic2022-06-01 10:502022-07-18 10:02
caristu 
ranjith_qualiantech_com 
urgentmajorhave not tried
closedfixed 
5
 
 
No
0049459: Taxes and Discounts caches are not refreshed after changes in the masterdata
Taxes and Discounts caches are loaded when the login into the POS is done[1]. But if there are changes in the masterdata used to populate them, they are not refreshed.

Currently to force their refresh it is necessary to logout and login or refresh the application (F5)

[1] https://gitlab.com/openbravo/devel/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/ob-init.js#L2039 [^]
In description
Use the MasterdataController listeners[1] to force a cache refresh when the models used to populate them have changes.

[1] http://wiki.openbravo.com/wiki/MasterdataController#Masterdata_listeners [^]
FASH
related to feature request 0049358 closed caristu Retail Modules Support selecting the discounts to be loaded into a terminal by a store set based criteria 
related to feature request 0049021 closed yogaskarnik Retail Modules Add support for discount filters that depend on CRM properties 
related to defect 0049824 new Retail POS2 Discounts cache is not refreshed after changes in some related masterdata models 
Issue History
2022-06-01 10:50caristuNew Issue
2022-06-01 10:50caristuAssigned To => Retail
2022-06-01 10:50caristuTriggers an Emergency Pack => No
2022-06-01 10:51caristuRelationship addedrelated to 0049358
2022-06-01 10:54cbernerRelationship addedrelated to 0049021
2022-06-03 11:34caristuDescription Updatedbug_revision_view_page.php?rev_id=24229#r24229
2022-06-07 11:56rafarodaTag Attached: FASH
2022-06-07 11:57rafarodaIssue Monitored: rafaroda
2022-06-10 14:21avicentePriorityhigh => urgent
2022-06-13 11:57ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2022-06-13 12:24ranjith_qualiantech_comStatusnew => scheduled
2022-06-15 07:18hgbotNote Added: 0138356
2022-06-17 06:38hgbotResolutionopen => fixed
2022-06-17 06:38hgbotStatusscheduled => closed
2022-06-17 06:38hgbotNote Added: 0138457
2022-06-17 06:38hgbotNote Added: 0138458
2022-07-18 10:02caristuIssue cloned0049824
2022-07-18 10:02caristuRelationship addedrelated to 0049824

Notes
(0138356)
hgbot   
2022-06-15 07:18   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1008 [^]
(0138457)
hgbot   
2022-06-17 06:38   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 67c40476dc0113bc45d06db09fe1a89ad406e754
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 17-06-2022 04:38:37
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/67c40476dc0113bc45d06db09fe1a89ad406e754 [^]

Fixed ISSUE-49459: Added MasterDataHook to update Discount and TaxRate Cache

---
A web-jspack/org.openbravo.pos2/src/core/masterData/MasterDataCache.js
M web-jspack/org.openbravo.pos2/src/ob-init.js
---
(0138458)
hgbot   
2022-06-17 06:38   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1008 [^]