Openbravo Issue Tracking System - POS2
View Issue Details
0055784POS2POSpublic2024-06-17 13:582024-07-05 09:34
philippe_mui 
Rajesh_18 
normalminoralways
closedfixed 
5
 
 
No
0055784: RM-9972 [Coupon] when using a coupon linked to the anonymous customer of the defined store, the coupon is not known
When using a coupon linked to the anonymous customer of the defined store, the coupon is not known and an error message appears

Current behavior : Coupon is unknown

Expected result : coupon should be usable

https://openbravo.atlassian.net/browse/RM-9972 [^]
In Openbravo backoffice, use a proper role to access Discounts and Promotions (HQ Prices & Promotions of the brand)
Define a promotion P1 with :


Type (ex: Price Adjustment)

Starting date in the past

'Discount %' or 'Discount Amount'

'Uses coupon checkbox' = Y

In 'POS Configuration' section, 'Application Method' = 'Automatic'

In 'Coupon' subtab, define coupon code C1 with 'Business Partner' = anonymous customer of store A

Active

Log into WebPOS on a touchpoint of store A with a user that has role seller
Do not assign a customer to the ticket
Add a product to the ticket
Check the product price

Click on the scan icon if needed and copy/past in the calculator the coupon code C1
FASH
Issue History
2024-06-17 13:58philippe_muiNew Issue
2024-06-17 13:58philippe_muiAssigned To => Retail
2024-06-17 13:58philippe_muiTriggers an Emergency Pack => No
2024-06-17 13:58philippe_muiTag Attached: FASH
2024-06-17 14:04philippe_muiDescription Updatedbug_revision_view_page.php?rev_id=28104#r28104
2024-06-27 12:02jorgewederagoNote Added: 0166408
2024-06-27 12:02jorgewederagoStatusnew => acknowledged
2024-06-28 11:40Rajesh_18Assigned ToRetail => Rajesh_18
2024-06-28 11:40Rajesh_18Statusacknowledged => scheduled
2024-07-01 10:45hgbotNote Added: 0166498
2024-07-05 09:34hgbotNote Added: 0166703
2024-07-05 09:34hgbotResolutionopen => fixed
2024-07-05 09:34hgbotStatusscheduled => closed
2024-07-05 09:34hgbotNote Added: 0166704

Notes
(0166408)
jorgewederago   
2024-06-27 12:02   
The configuration proposed is wrong so instead of allowing the behavior reported we will not allow having any Anonymous customer assigned to a coupon. In order to do this we will use a Callout to remove the BP if it is defined as Anonymous in any store in the client
(0166498)
hgbot   
2024-07-01 10:45   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/62 [^]
(0166703)
hgbot   
2024-07-05 09:34   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/merge_requests/62 [^]
(0166704)
hgbot   
2024-07-05 09:34   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons [^]
Changeset: e8bdb948ffaa7dbc7548405a07314a9322205209
Author: Rajesh Senthilkumar <rajesh@qualiantech.com>
Date: 02-07-2024 15:29:57
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.coupons/-/commit/e8bdb948ffaa7dbc7548405a07314a9322205209 [^]

Fixed ISSUE-55784: Added Callout to avoid creation of coupon with anonymous BP
* If Coupon is created in vallblanca store with BP then every parent organization is checked if bp is Anonymous
* If Anonymous Error is shown to the user.

---
A src/org/openbravo/retail/discounts/coupons/callout/CheckAnonymousBusinessPartner.java
M src-db/database/sourcedata/AD_CALLOUT.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
---