Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041776Retail ModulesWeb POSpublic2019-09-06 13:362019-09-26 16:38
marvintm 
gorka_gil 
highmajoralways
closedfixed 
5
 
RR19Q4RR19Q4 
marvintm
No
0041776: Discounts cache should be refreshed whenever incremental refresh is triggered and finds new data
Currently the discounts cache is only initialised when the user logs in. However, the discounts masterdata information may be also changed when an incremental refresh is triggered while the user is working.

In this case, the cache should also be refreshed.
- Do login in the WebPOS with new discounts engine enabled
- Define a new discount in backend.
- Wait until incremental masterdata refresh happens.
- Add a product which should be affected by the discount. Verify that the discount is not applied.
- Do F5. Add the product again. Verify that the discount is applied.
The discounts cache should be initialised:

OB.Discounts.Pos.initCache({}, callback);

This should be done after the data has been updated in the local database, but before the "showLoading" popup has been hidden.
No tags attached.
Issue History
2019-09-06 13:36marvintmNew Issue
2019-09-06 13:36marvintmAssigned To => gorka_gil
2019-09-06 13:36marvintmTriggers an Emergency Pack => No
2019-09-24 10:44hgbotCheckin
2019-09-24 10:44hgbotNote Added: 0114753
2019-09-24 10:44hgbotStatusnew => resolved
2019-09-24 10:44hgbotResolutionopen => fixed
2019-09-24 10:44hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b3ba9c892ed4ca3807f0881a1b293a82f6aa805a [^]
2019-09-26 13:49jorge-garciaReview Assigned To => marvintm
2019-09-26 16:38marvintmStatusresolved => closed
2019-09-26 16:38marvintmFixed in Version => RR19Q4

Notes
(0114753)
hgbot   
2019-09-24 10:44   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: b3ba9c892ed4ca3807f0881a1b293a82f6aa805a
Author: Gorka Gil <gorka.gil <at> openbravo.com>
Date: Tue Sep 17 17:32:34 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b3ba9c892ed4ca3807f0881a1b293a82f6aa805a [^]

Fixes issue 41776: Call to init discounts cache after update the masterdata and before hide the loading popup

---
M web/org.openbravo.retail.posterminal/js/utils/ob-utilitiesuipos.js
---