Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042291Retail ModulesWeb POSpublic2019-11-15 11:592020-02-22 19:57
marvintm 
marvintm 
normalmajorhave not tried
scheduledopen 
5
 
 
No
0042291: Incorrect price is discounted when combining rules which gift full units
There is currently a limitation in the discounts engine when applying several rules which gift full units in the same line.

An example is the issue https://issues.openbravo.com/view.php?id=41789 [^] which applied to the basic Buy X gift Y rule, but other rules like Free Products per Total Amount, or Buy X pay Y of same or different products, have also a similar problem.

Ideally the solution should be in the infrastructure or superclass, not in the specific rule. So we should provide a general fix, and then use it in the corresponding rules, and then revert the fix that was done for 41789.
The steps to reproduce in issue 41789 can be used, although the same example could be done for Free Products by Total Amount rule.
No tags attached.
related to defect 0041789 closed rqueralta Discount "Buy X and get Y as gift" does not work correctly. 
Issue History
2019-11-15 11:59marvintmNew Issue
2019-11-15 11:59marvintmAssigned To => rqueralta
2019-11-15 11:59marvintmTriggers an Emergency Pack => No
2019-11-15 11:59marvintmRelationship addedrelated to 0041789
2019-11-15 12:04marvintmDescription Updatedbug_revision_view_page.php?rev_id=19705#r19705
2020-02-22 19:57rqueraltaAssigned Torqueralta => marvintm
2020-02-22 19:57rqueraltaStatusnew => scheduled

There are no notes attached to this issue.