Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032692Retail ModulesWeb POSpublic2016-04-15 10:032016-04-22 16:06
umartirena 
Retail 
urgentmajoralways
closedfixed 
5
 
RR16Q1.1RR16Q1.1 
marvintm
Production - QA Approved
2015-12-15
RR16Q1
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ed7f8734ef3bb2cd7eb6b310facea36835c6d9cb [^]
No
0032692: [SER-QA 911] Discounts are not properly obtained when loading a ticket with discounts from the backend
Discounts are not properly obtained when loading a ticket with discounts from the backend. A ticket with a line with certain discounts is synchronized to the backend, and when retrieving it the values of the discounts are not properly displayed.
In Web POS:
 - A a line with a ticket for product "Crampons 10 point", qty: 3
 - A "price_adjust_chrampons_30_eur" discount is automatically applied, amount: -29.70.
 - Go to "receipt discounts" menu entry and apply "disc_5_var_euro - 5 EUR" discount. A discount is applied in the line of amount -5. The previous discount is updated to amount -24.69.
 - Pay and complete the ticket.
 - Go to "Receipts" menu entry and search the ticket.
 - The amount of "price_adjust_chrampons_30_eur" discount is now again -29.70, and this is wrong (even the total gross of the ticket is ok, because the promotion data in client side is wrong), it should be -24.69.
The best way of action is to set at order's line level the flag skipApplyPromotions to true in the newPaidReceipt function.

After that, it's mandatory to try the flows of layaways, receipts, quotations and other possible flows that retrieve an order from the backend.

Keep in mind that in the create order from quotation flow, if the Firm Quotation field is unchecked, this flag must be change to false to recalculate the promotion and prices of the order's lines. This scenario, could be reproducible in another flows.
No tags attached.
blocks defect 0032674 closed ranjith_qualiantech_com [SER-QA 911] Discounts are not properly obtained when loading a ticket with discounts from the backend 
Issue History
2016-04-18 16:10jorge-garciaTypedefect => backport
2016-04-18 16:10jorge-garciaTarget Version => RR16Q1.1
2016-04-22 13:20hgbotCheckin
2016-04-22 13:20hgbotNote Added: 0085893
2016-04-22 13:20hgbotStatusscheduled => resolved
2016-04-22 13:20hgbotResolutionopen => fixed
2016-04-22 13:20hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q1.1/org.openbravo.retail.posterminal/rev/7240b50a9a89981a815830b6ef4522329b30cc83 [^]
2016-04-22 16:06marvintmReview Assigned To => marvintm
2016-04-22 16:06marvintmStatusresolved => closed
2016-04-22 16:06marvintmFixed in Version => RR16Q1.1

Notes
(0085893)
hgbot   
2016-04-22 13:20   
Repository: retail/backports/3.0RR16Q1.1/org.openbravo.retail.posterminal
Changeset: 7240b50a9a89981a815830b6ef4522329b30cc83
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Apr 21 17:23:12 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q1.1/org.openbravo.retail.posterminal/rev/7240b50a9a89981a815830b6ef4522329b30cc83 [^]

Fixed issue 32692: [SER-QA 911] Discounts are not properly obtained when loading
a ticket with discounts from the backend

Backport for the issue 32674.

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---