Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035515Retail ModulesWeb POSpublic2017-03-14 17:332017-05-08 12:23
guillermogil 
jorge-garcia 
urgentmajoralways
scheduledopen 
5
 
 
OBPS
No
0035515: It is not possible to add twice the same discount on the same line
It is not possible to add twice the same discount on the same line for manual or manual by total.

This is preventing to add manual ones and it should not be needed or it should have more logic

      for (i = 0; i < promotions.length; i++) {
        if (promotions[i].ruleId === rule.id) {
          debugger;
          if (promotions[i].hidden !== true) {
            promotions[i] = disc;
            replaced = true;
            break;
          }
        }
      }

Regarding the Manual by Total it should be needed to review the discount engine and applyPromotions.
- Login on WebPOS
- Add a product
- Add a variable discount of 5€
- Add the same variable discount but now of 8€

There is only one of them
Allow to add them by default or by config
No tags attached.
related to feature request 0035391 new guillermogil The whole rule model should be inside the discount to apply 
Issue History
2017-03-14 17:33guillermogilNew Issue
2017-03-14 17:33guillermogilAssigned To => Retail
2017-03-14 17:33guillermogilOBNetwork customer => Yes
2017-03-14 17:33guillermogilResolution time => 1459720800
2017-03-14 17:33guillermogilTriggers an Emergency Pack => No
2017-03-15 18:24marvintmResolution time1459720800 => 1491256800
2017-03-15 18:24marvintmTypedefect => design defect
2017-03-27 08:00guillermogilAssigned ToRetail => jorge-garcia
2017-03-27 08:00guillermogilStatusnew => scheduled
2017-03-29 08:13guillermogilRelationship addedrelated to 0035391
2017-05-08 12:23marvintmResolution time1491256800 =>

There are no notes attached to this issue.