Openbravo Issue Tracking System - POS2
View Issue Details
0049824POS2POSpublic2022-07-18 10:022024-01-11 16:49
caristu 
Retail 
highminorhave not tried
newopen 
5
 
 
No
0049824: Discounts cache is not refreshed after changes in some related masterdata models
Taxes and Discounts caches are loaded when the login into the POS is done. With the fix for 0049459 when there are changes in some masterdata models used to populate them, they are automatically refreshed.

But there are still some missing masterdata models which are not being taken into account to force a refresh into the discounts cache and they should, some of those models are: DiscountFilterRole, DiscountFilterBusinessPartner, DiscountFilterPriceList etc.
In description
Include the missing masterdata models into the "models to listen" of the discounts cache refresh listener: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/core/discount/initDiscountsCache.js#L34 [^]
No tags attached.
related to defect 0049459 closed ranjith_qualiantech_com Taxes and Discounts caches are not refreshed after changes in the masterdata 
related to defect 0050154 closed ranjith_qualiantech_com [Promo] Cache problems in POS after changes in promotions 
Issue History
2022-07-18 10:02caristuNew Issue
2022-07-18 10:02caristuAssigned To => Retail
2022-07-18 10:02caristuTriggers an Emergency Pack => No
2022-07-18 10:02caristuIssue generated from0049459
2022-07-18 10:02caristuRelationship addedrelated to 0049459
2022-07-18 10:15caristuSummaryDiscounts caches is not refreshed after changes in some related masterdata models => Discounts cache is not refreshed after changes in some related masterdata models
2022-07-18 10:15caristuDescription Updatedbug_revision_view_page.php?rev_id=24510#r24510
2022-07-18 10:15caristuProposed Solution updated
2022-09-05 17:36caristuRelationship addedrelated to 0050154
2024-01-11 16:49caristuNote Added: 0159195

Notes
(0159195)
caristu   
2024-01-11 16:49   
This issue is almost fixed by 0050154 but it looks like there is still one model missing to include: DiscountFilterPriceList. See https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/d63a0522c94a38de0d7e323d9757e64d758613a8 [^]