Monday, August 5, 2024
1 change · saas-17.4
Resolved issues and error corrections
Gift cards created with a value of zero now retain that price at checkout instead of being reset to the default product price. This prevents incorrect charges when businesses issue or scan zero-value gift cards in Point of Sale.
Original PR description
Problem: For a gift card with 0 points,there price is ignored and is set to the product price Steps to reproduce: - Install "point_of_sale" app and "pos_loyalty" module - Select "Scan existing cards" in the promotions settings - Generate a gift card with a value of 0.00 $ and copy its code - Start a shop session - Select the gift card product and enter the code - The price of the gift card is $50.00 instead of $0.00 Cause: 0 is interpreted as false in conditions Note: Implement a fix for this PR: https://github.com/odoo/odoo/pull/175232 See the PR for the test opw-3909019 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr