Wednesday, August 14, 2024
1 change · saas-17.1
Resolved issues and error corrections
This fix prevents loyalty rewards from being linked to products assigned to a different company than the loyalty program. It helps avoid point-of-sale errors in multi-company setups by validating company consistency before changes are saved.
Original PR description
Issue: A company mismatch error occurred when a product linked to a loyalty reward was assigned to a different company than the one associated with the loyalty program. Steps to reproduce: - Create two companies (e.g., Company A and Company B) - Set up a loyalty program for Company A - Assign the program's product to Company B - Attempt to use the POS with Company A - An error will occur Fix: Ensure that when modifying the company of a product linked to a loyalty program, the company's consistency with the program is validated. Similarly, raise an error if a loyalty program's company is changed and any of its rewards are linked to a specific company. opw-4106024