Sunday, November 7, 2021
1 change · master
Resolved issues and error corrections
Deleting a POS loyalty program now also removes its related loyalty rules and rewards. This prevents leftover links from blocking products from being archived after a loyalty program is removed.
Original PR description
Steps : - Create a new POS and activate option Loyalty program. - Go to POS loyalty programs and create a new one. - Create a rule and/or a reward with a new product. - Delete the program. - Try to archive the product. Issue : Deleting loyalty programs does not delete loyalty rules not loyalty rewards. As a consequence, we get an error message when we then try to archive a product. Solution : > Add option "ondelete='cascade'" on both rules and rewards to delete them when deleting program opw-2662333