Openbravo Issue Tracking System - POS2
View Issue Details
0056569POS2POSpublic2024-09-27 08:572024-09-27 08:57
remibrunet 
Retail 
normalmajoralways
newopen 
5
 
 
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:57remibrunetTriggers an Emergency Pack => No

There are no notes attached to this issue.