Openbravo Issue Tracking System - POS2
View Issue Details
0056569POS2POSpublic2024-09-27 08:572025-03-27 12:06
remibrunet 
guilleaer 
normalmajoralways
closedduplicate 
5
 
 
Gold
No
0056569: Discount for customer birthday doesn't work as expected
When configuring a discount to be applied on customer's birthday, the CRM property condition comparator doesn't work as expected.
The CRM Connector Property used is 'birthDay - OBPOS_LblBirthdate'
The Comparator used is 'Is today'

The expected behavior is when it's the customer birthday, the discount is applied.
The current behavior is when the customer is born today, the discount is applied.
The comparator 'is today' take in account the year
Configure a discount (price adjustment, 5%)
In the 'CRM property condition' tab, add the entry :
CRM Connector Configuration = Openbravo BP CRM Integration
CRM Connector Property = birthDay - OBPOS_LblBirthdate
Comparator = Is today
Active = true

On POS, create a customer with birthday = today
Assign it to the ticket
Add a product -> the discount is applied
Create another customer with birthday = today - 1 year
Assign it to the ticket
Add a product -> the discount is not applied
Change the comparator Is today or create a new one to only compare the day+month with the current date.
No tags attached.
Issue History
2024-09-27 08:57remibrunetNew Issue
2024-09-27 08:57remibrunetAssigned To => Retail
2024-09-27 08:57remibrunetOBNetwork customer => Gold
2024-09-27 08:57remibrunetTriggers an Emergency Pack => No
2025-01-23 15:20sreehariAssigned ToRetail => sreehari
2025-01-23 15:22sreehariStatusnew => scheduled
2025-01-23 15:43sreehariStatusscheduled => feedback
2025-01-23 15:43sreehariStatusfeedback => new
2025-01-23 15:43sreehariAssigned Tosreehari => Retail
2025-01-31 11:05guillermogilAssigned ToRetail => guilleaer
2025-03-27 12:06hgbotNote Added: 0177435
2025-03-27 12:06hgbotStatusnew => closed
2025-03-27 12:06hgbotResolutionopen => duplicate

Notes
(0177435)
hgbot   
2025-03-27 12:06   
Issue exported to Jira: https://openbravo.atlassian.net/browse/RM-24168 [^]