Openbravo Issue Tracking System - Retail Modules
View Issue Details
0047706Retail ModulesLoyalty Management for Retailpublic2021-09-16 16:042021-10-05 05:30
hector_hernaez 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
 
No
0047706: Issue with loyalty card duplicity when editing business partner
A duplicity of business partner loyalty card is possible when editing it and assigning it to the business partner
We have reproduced the issue in:
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/web/org.openbravo.retail.posterminal/?terminal=STA-1 [^]

STEPS:

- Create a new Customer.
- Name 'test'.
- Address 'test'.
- Under Address you can see that there is a 'Automatic Loyalty Program Membership'.
- Press 'Save'
- Press 'Assign Customer'.
- Press on the cutomer button to edit it.
- Go to 'edit'.
- Change the name to 'testsss'.
- Press 'Save'.
- In loyalty subscriptions you can see that now there are 2 records.
- Press 'edit'.
Change the name to 'testsssss'.
- Press 'Save'.
- In loyalty subscriptions you can see that now there are 3 records.
- Press 'Assign Customer'.
- Now you can see in the customer that there are 3 lines below the name


Here you have the link to the video with the steps that the client has attached to the ticket for more information:

https://www.youtube.com/watch?v=bU4-F64PfKQ [^]
No tags attached.
diff 47706_loyalty_1.0.300.diff (8,479) 2021-10-05 05:30
https://issues.openbravo.com/file_download.php?file_id=16246&type=bug
Issue History
2021-09-16 16:04hector_hernaezNew Issue
2021-09-16 16:04hector_hernaezAssigned To => Retail
2021-09-16 16:04hector_hernaezTriggers an Emergency Pack => No
2021-09-16 16:07PracticsIssue Monitored: Practics
2021-09-17 07:37ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-09-21 06:38hgbotNote Added: 0131935
2021-09-21 06:38hgbotNote Added: 0131936
2021-09-30 08:31hgbotResolutionopen => fixed
2021-09-30 08:31hgbotStatusnew => closed
2021-09-30 08:31hgbotNote Added: 0132073
2021-09-30 08:31hgbotNote Added: 0132074
2021-09-30 08:32hgbotNote Added: 0132075
2021-09-30 08:32hgbotNote Added: 0132076
2021-10-05 05:30ranjith_qualiantech_comFile Added: 47706_loyalty_1.0.300.diff

Notes
(0131935)
hgbot   
2021-09-21 06:38   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/merge_requests/20 [^]
(0131936)
hgbot   
2021-09-21 06:38   
Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/130 [^]
(0132073)
hgbot   
2021-09-30 08:31   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs [^]
Changeset: b36d1f66ee114d9b4d0771ef10bcf8a69ddd4eed
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-09-20T14:49:05+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/commit/b36d1f66ee114d9b4d0771ef10bcf8a69ddd4eed [^]

Fixed ISSUE-47706: Automatic Programs fields should be regenerated when creating customer
* Refactored newCustomer executeOnShown to regenerated Automatic Programs fields when editing and creating customer

---
M web/org.openbravo.retail.loyalty.programs/js/hooks/obrlp_postCustomerSave.js
M web/org.openbravo.retail.loyalty.programs/js/utils/obrlputils.js
M web/org.openbravo.retail.loyalty.programs/js/view/customeredit-fields.js
---
(0132074)
hgbot   
2021-09-30 08:31   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.loyalty.programs/-/merge_requests/20 [^]
(0132075)
hgbot   
2021-09-30 08:32   
Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/130 [^]
(0132076)
hgbot   
2021-09-30 08:32   
Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: b81b9c0ea844989a14f90eb081c5be510135db2d
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-09-30T06:31:04+00:00
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/b81b9c0ea844989a14f90eb081c5be510135db2d [^]

Verifies ISSUE-47706: Added automated test I47657_VerifyAutomaticSubscriptions

---
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/loyalty/subscriptions/I47657_VerifyAutomaticSubscriptions.java
---