[FIX] pos_loyalty: free product rewards for order type rules
The `_computeUnclaimedFreeProductQty` method was not properly computing
reward quantities for order type rules. This commit fixes the
computation to handle order type rules separately, allowing free
product rewards to be granted as expected.
The computation now also takes into account which rules were actually
used when calculating points. It will ignore any rules that were not
used in the points calculation when determining free product rewards.
This ensures the rewards match the rules that contributed to points
for the order.
opw-3492083
closes odoo/odoo#134557
Signed-off-by:
Joseph Caburnay (jcb) <jcb@odoo.com>
Please register or sign in to comment