Introduction
In the current system, the check amount will be redeemed as per the redemption configuration in the Back office.
Existing Functionality
In the BO, user will be defining the redemption point for 1$ and the system will do the calculation for the available points.
Lets Assume the loyalty redemption is defined as below.
Scenario 1:
Loyalty Redeem points at: 0.50
The Check Total is $9.50
The available loyalty point for the customer is 5 (Which means customer can redeem loyalty for 10$)
In this case the customer will able to redeem the loyalty point for the full check value, and after redemption the available loyalty point will be updated as 0.50
Scenario 2:
Loyalty Redeem points at 1.00
The bill value is $9.50
The available loyalty point for the customer is 10 (Which means customer can redeem loyalty for 10$)
In this case the customer will be allowed to redeem only for 9$ and need to pay 0.50 in cash/card. And after redemption the available loyalty point will be updated as 1.
Requirement:
When the loyalty redeem point is defined with 0 in the decimal part, then system should round up while redeeming the loyalty point against the bill.
Example with Scenario 2:
Loyalty Redeem Points at 1.00
The bill value is $9.50
The available loyalty point for the customer is 10 (which means the customer can redeem loyalty for 10$)
In this case, if the bill value is lesser than the loyalty value (9.50 > 10) while doing redemption the bill value is round up to nearer high value (9.50 as 10). After redemption the available Loyalty value for that customer will be updated as 0.