Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040946Retail ModulesWeb POSpublic2019-05-24 11:512019-08-03 21:47
aaroncalero 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR19Q3 
marvintm
No
0040946: [Loyalty] Several api functions should implement error callbacks
There are several api functions in the javascript code of the Loyalty Programs for Web POS module that should implement error callbacks.
OBRLP.findActiveSubscriptions and OBRLP.computeLoyaltySummary both use internally OBRLP.findSubscriptions, which is a query to retrieve Loyalty Subscription information. Since this query can be done server side (when the Remote For Customers preference is enabled), the code should be able to manage the case in which the server doesn't respond correctly.
Check the code for OBRLP.findSubscriptions here:
https://code.openbravo.com/erp/pmods/org.openbravo.retail.loyalty.programs/file/tip/web/org.openbravo.retail.loyalty.programs/js/component/subscription-icon.js#l39 [^]
Add an errroCallback parameter to OBRLP.findSubscriptions, and also to the functions invoking it.
No tags attached.
patch issue 40946 source loyaltyprograms.patch (1,757) 2019-07-02 14:56
https://issues.openbravo.com/file_download.php?file_id=13080&type=bug
Issue History
2019-05-24 11:51aaroncaleroNew Issue
2019-05-24 11:51aaroncaleroAssigned To => Retail
2019-05-24 11:51aaroncaleroResolution time => 1559858400
2019-05-24 11:51aaroncaleroTriggers an Emergency Pack => No
2019-06-25 14:52aaroncaleroResolution time1559858400 => 1563228000
2019-06-25 14:52aaroncaleroTypedesign defect => defect
2019-07-02 08:24ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-07-02 08:24ranjith_qualiantech_comStatusnew => scheduled
2019-07-02 14:56ranjith_qualiantech_comFile Added: issue 40946 source loyaltyprograms.patch
2019-07-04 08:21hgbotCheckin
2019-07-04 08:21hgbotNote Added: 0113166
2019-07-04 17:44ranjith_qualiantech_comStatusscheduled => resolved
2019-07-04 17:44ranjith_qualiantech_comResolutionopen => fixed
2019-07-04 19:29hgbotCheckin
2019-07-04 19:29hgbotNote Added: 0113189
2019-07-04 19:30marvintmReview Assigned To => marvintm
2019-07-04 19:30marvintmStatusresolved => closed
2019-07-04 19:30marvintmFixed in Version => RR19Q3
2019-08-03 21:47hgbotCheckin
2019-08-03 21:47hgbotNote Added: 0113800

Notes
(0113166)
hgbot   
2019-07-04 08:21   
Repository: erp/pmods/org.openbravo.retail.loyalty.programs
Changeset: c249b151b21179ba5a766123118022ef2a2fbd8e
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Jul 04 11:51:15 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.loyalty.programs/rev/c249b151b21179ba5a766123118022ef2a2fbd8e [^]

Related to issue 40946 : Added errroCallback for findSubscriptions function

---
M web/org.openbravo.retail.loyalty.programs/js/component/subscription-buttons.js
M web/org.openbravo.retail.loyalty.programs/js/component/subscription-icon.js
---
(0113189)
hgbot   
2019-07-04 19:29   
Repository: erp/pmods/org.openbravo.retail.loyalty.programs
Changeset: fa8bff23e629410f54c3ff7e9a51ab1748096ad8
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Jul 04 19:28:52 2019 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.loyalty.programs/rev/fa8bff23e629410f54c3ff7e9a51ab1748096ad8 [^]

Related to issue 40946. Fixed typo.

---
M web/org.openbravo.retail.loyalty.programs/js/component/subscription-icon.js
---
(0113800)
hgbot   
2019-08-03 21:47   
Repository: erp/pmods/org.openbravo.retail.loyalty.programs
Changeset: 04269dcfb228aa598f6aedfec98831136107653a
Author: Mark Molina <mark.molina <at> doceleguas.com>
Date: Sun Jul 07 19:10:02 2019 -0300
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.loyalty.programs/rev/04269dcfb228aa598f6aedfec98831136107653a [^]

[LPNR] Temporarily backout changes for issue 40946

---
M web/org.openbravo.retail.loyalty.programs/js/component/subscription-buttons.js
M web/org.openbravo.retail.loyalty.programs/js/component/subscription-icon.js
---