Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041715Retail ModulesDiscounts and Promotionspublic2019-08-28 20:512019-08-29 12:04
lbressan 
Retail 
normalmajoralways
newopen 
30Openbravo Appliance 14.04
RR19Q1.2 
 
No
0041715: Error applying manual discount in WebPOS
When applying a manual discount / promotion, the "rule" property of the "promotion" parameter in the addManual method of the promotion is recursively saved, as can be seen in the video.

https://drive.google.com/file/d/1pnDYU3iXPoB39n78k_fM8LZ2WR9Rx_yx/view [^]

When a manual discount is applied, the promotion that is saved on the order line is saved incorrectly, since the <rule> property of the <promotions> object is assigned with the <promo> object instead of <promo.rule> , as you can see in the attached screenshot. Something similar happens in the addManualPromotionSplit method of the kind OB.UI.ModalSplitLine and in the preAction and postAction method of the DiscountsExecutor model.
No tags attached.
png bug-ob-2019-08-28.png2019-08-28.png (18,107) 2019-08-28 20:51
https://issues.openbravo.com/file_download.php?file_id=13270&type=bug
png

diff rule_recursion_patch.diff (1,567) 2019-08-28 20:54
https://issues.openbravo.com/file_download.php?file_id=13271&type=bug
Issue History
2019-08-28 20:51lbressanNew Issue
2019-08-28 20:51lbressanAssigned To => Retail
2019-08-28 20:51lbressanFile Added: bug-ob-2019-08-28.png2019-08-28.png
2019-08-28 20:51lbressanTriggers an Emergency Pack => No
2019-08-28 20:54lbressanFile Added: rule_recursion_patch.diff
2019-08-29 08:33javietxeIssue Monitored: javietxe
2019-08-29 12:04martinsdanIssue Monitored: martinsdan

There are no notes attached to this issue.