Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045501Retail ModulesLoyalty Programs for Web POSpublic2020-11-24 19:552020-12-21 06:52
collazoandy4 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
 
No
0045501: Loyalty subscription is updated if it set as active = false after loaded from backend with a custom code
When a customer is subscribed to a loyalty program and the subscription have a custom status (finalize) that invalidated it (active = false) in the frontend, the customer can subscribe to the same loyalty program again and a new subscription is created in the frontend, when this new subscription is synchronized the one with finalize status is updated to the default program status (new) and the Loyalty Subscription Details popup can show the category value because the updated subscription is not replaced by the one created in the save process and could not be found after search by id
- Enable the Loyalty Program for YS-11 pos terminal in the backend
- Search for Carl Studson business partner and add a new subscription for the created program
- Check in backend in Subscription tab that a new record exists and update the subscription status to a different one
- Set a breakpoint at the end (before calling the callback) in successCallback function of OBRLP.findSubscriptions function
- Open the customer subscription popup and create a new one
- Set isactive property as false in the breakpoint (subscriptions[0].isactive = false)
- Check you can subscribe the customer to the same loyalty program
- Add a new subscription to the business partner and check in backend the subscription is updated to the default loyalty program status and the Loyalty Program Details popup have the category as undefined
Return the subscription updated when is synchronized to the backend
No tags attached.
Issue History
2020-11-24 19:55collazoandy4New Issue
2020-11-24 19:55collazoandy4Assigned To => Retail
2020-11-24 19:55collazoandy4Resolution time => 1604790000
2020-11-24 19:55collazoandy4Triggers an Emergency Pack => No
2020-11-25 09:59marvintmResolution time1604790000 => 1607382000
2020-11-30 07:20ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-12-09 07:32ranjith_qualiantech_comStatusnew => scheduled
2020-12-21 05:27hgbotNote Added: 0125012
2020-12-21 06:52hgbotResolutionopen => fixed
2020-12-21 06:52hgbotStatusscheduled => closed
2020-12-21 06:52hgbotNote Added: 0125013
2020-12-21 06:52hgbotNote Added: 0125014

Notes
(0125012)
hgbot   
2020-12-21 05:27   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/merge_requests/14 [^]
(0125013)
hgbot   
2020-12-21 06:52   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs [^]
Changeset: 0a8c354ea35b92dfb889f805c5cc2b493086cde9
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2020-12-21T09:57:08+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/commit/0a8c354ea35b92dfb889f805c5cc2b493086cde9 [^]

Fixed ISSUE-45501: Added Active property for loyalty subscription
* When Subscription saving process in failed, in polling handler, isactive property of subscription should be updated as false
* For all the places, only active subscription should be listed

---
M src/org/openbravo/retail/loyalty/programs/process/GetSubscriptionInformationPollingHandler.java
M web/org.openbravo.retail.loyalty.programs/app/model/masterdata/LoyaltySubscriptionsModel.js
M web/org.openbravo.retail.loyalty.programs/js/component/program-selection-popup.js
M web/org.openbravo.retail.loyalty.programs/js/component/subscription-icon.js
M web/org.openbravo.retail.loyalty.programs/js/hooks/obrlp_postBarcodeAction.js
M web/org.openbravo.retail.loyalty.programs/js/utils/obrlputils.js
M web/org.openbravo.retail.loyalty.programs/js/view/addpoints-popup.js
M web/org.openbravo.retail.loyalty.programs/js/view/customeredit-fields.js
M web/org.openbravo.retail.loyalty.programs/js/view/manageLoyalty.js
M web/org.openbravo.retail.loyalty.programs/js/view/subscription-create-form.js
---
(0125014)
hgbot   
2020-12-21 06:52   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/merge_requests/14 [^]