Openbravo Issue Tracking System - Retail Modules
View Issue Details
0050738Retail ModulesWeb POSpublic2022-11-05 06:542024-01-22 08:18
ranjith_qualiantech_com 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
 
No
0050738: Loyalty points not updated correctly during Earn & Burn Process
Loyalty points not updated correctly for the following cases
1) When burning the points, Loyalty points under customer become negative
2) When earning the points, Loyalty points under customer not updated until Refresh Data
POS
Case 1:
1) Change Customer to "Redeem points Multi Subscription"
2) Add Product "Hiking Boots" with Qty 2
3) Click Total button (Do not redeem points from popup "Loyalty Point Available")
4) In payment tab, Click More button
5) Select "Automatic Loyalty Program membership"
6) Popup will be opened
7) Click "OK" multiple time as fast as possible
Problems:
Payment added more than once
Loyalty points under Customer have negative points for "Automatic Loyalty Program membership"

Case 2:
Backoffice
Loyalty Program Window "Automatic Loyalty Program membership" -> "Silver" Category
Add "Buy X amount and EARN Y points." with Rule Type "Single Range", Amount "100", Points "10", Currency "EUR"
POS
1) Change Customer to "Redeem points Automatic Subscription"
2) Add Product
3) Click Total button (Do not redeem points from popup "Loyalty Point Available")
4) Complete ticket with Cash payment
5) Change Customer to "Redeem points Automatic Subscription"
Problem:
Loyalty Points not updated for the customer for the previous sale <-- KO
Do Refresh Data
Points will be updated.
But it should be updated after completing the sale.
No tags attached.
has duplicate defect 0054110 closed Rajesh_18 Loyalty synchronization problems 
Issue History
2022-11-05 06:54ranjith_qualiantech_comNew Issue
2022-11-05 06:54ranjith_qualiantech_comAssigned To => Retail
2022-11-05 06:54ranjith_qualiantech_comTriggers an Emergency Pack => No
2023-02-08 11:26ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2023-02-08 11:58ranjith_qualiantech_comStatusnew => scheduled
2023-02-09 14:14ranjith_qualiantech_comSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=25511#r25511
2023-02-13 06:34hgbotNote Added: 0146401
2023-02-13 06:35hgbotNote Added: 0146402
2023-02-13 06:35hgbotNote Added: 0146403
2023-12-13 12:21hgbotNote Added: 0158141
2023-12-13 12:34Rajesh_18Relationship addedhas duplicate 0054110
2024-01-11 09:20hgbotResolutionopen => fixed
2024-01-11 09:20hgbotStatusscheduled => closed
2024-01-11 09:20hgbotNote Added: 0159099
2024-01-11 09:20hgbotNote Added: 0159100
2024-01-11 09:20hgbotNote Added: 0159101
2024-01-11 09:20hgbotNote Added: 0159102
2024-01-11 09:20hgbotNote Added: 0159103
2024-01-11 09:20hgbotNote Added: 0159104
2024-01-11 09:20hgbotNote Added: 0159105
2024-01-22 08:13hgbotNote Added: 0159560
2024-01-22 08:18hgbotNote Added: 0159561

Notes
(0146401)
hgbot   
2023-02-13 06:34   
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/264 [^]
(0146402)
hgbot   
2023-02-13 06:35   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.burn.giftcertificate/-/merge_requests/16 [^]
(0146403)
hgbot   
2023-02-13 06:35   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.earn.buyxearny/-/merge_requests/9 [^]
(0158141)
hgbot   
2023-12-13 12:21   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/merge_requests/41 [^]
(0159099)
hgbot   
2024-01-11 09:20   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.burn.giftcertificate [^]
Changeset: 9b0aa897fc7e08b5235e5210c9323964b1ad7336
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 13-12-2023 16:08:06
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.burn.giftcertificate/-/commit/9b0aa897fc7e08b5235e5210c9323964b1ad7336 [^]

Fixed ISSUE-50738: Double tap event is prevented in Burn Dialog Ok button
* Subscription TotalPoints should be updted based on customer.
  Added bpId param to updateSubscriptionTotalPoints function
  to filter and update the Subscription TotalPoints

---
M web/org.openbravo.retail.loyalty.burn.giftcertificate/js/component/burnGiftCertificateDialog.js
M web/org.openbravo.retail.loyalty.burn.giftcertificate/js/util/giftCertificateUtils.js
---
(0159100)
hgbot   
2024-01-11 09:20   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.burn.giftcertificate/-/merge_requests/16 [^]
(0159101)
hgbot   
2024-01-11 09:20   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.earn.buyxearny [^]
Changeset: 66a2bff97f1ffa13394e08b22fd56c18dee716aa
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 13-12-2023 06:01:10
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.earn.buyxearny/-/commit/66a2bff97f1ffa13394e08b22fd56c18dee716aa [^]

Related to ISSUE-50738: Subscription points should be updated when points earned
* When points earned after sales, customer subscription total points should be updated

---
M src/org/openbravo/loyalty/earn/buyxearny/sync/PrintEarnedPointsPollingHandler.java
M web/org.openbravo.loyalty.earn.buyxearny/js/hooks/printEarnedPointsPrePrintHook.js
---
(0159102)
hgbot   
2024-01-11 09:20   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.loyalty.earn.buyxearny/-/merge_requests/9 [^]
(0159103)
hgbot   
2024-01-11 09:20   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs [^]
Changeset: 50f2dfed6c4355407514358bd7828648ca2c4785
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 10-01-2024 12:37:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/commit/50f2dfed6c4355407514358bd7828648ca2c4785 [^]

Related to ISSUE-50738: Subscription points should be updated when points earned

---
M web/org.openbravo.retail.loyalty.programs/js/component/bp-programs-and-points.js
M web/org.openbravo.retail.loyalty.programs/js/component/subscription-icon.js
---
(0159104)
hgbot   
2024-01-11 09:20   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/merge_requests/41 [^]
(0159105)
hgbot   
2024-01-11 09:20   
Merge request closed: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/264 [^]
(0159560)
hgbot   
2024-01-22 08:13   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/merge_requests/49 [^]
(0159561)
hgbot   
2024-01-22 08:18   
Merge request closed: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/merge_requests/49 [^]