Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0032691
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[Retail Modules] Web POSmajoralways2016-04-15 10:032016-05-24 12:59
ReporterumartirenaView Statuspublic 
Assigned ToRetail 
PriorityurgentResolutionfixedFixed in VersionRR16Q2
StatusclosedFix in branchFixed in SCM revisiondfbb44cc4a13
ProjectionnoneETAnoneTarget VersionRR16Q2
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToOrekaria
Regression levelProduction - QA Approved
Regression date2015-12-15
Regression introduced in releaseRR16Q1
Regression introduced by commithttps://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ed7f8734ef3bb2cd7eb6b310facea36835c6d9cb [^]
Triggers an Emergency PackNo
Summary

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

DescriptionDiscounts 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.
Steps To ReproduceIn 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.
Proposed SolutionThe 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0032674 closedranjith_qualiantech_com [SER-QA 911] Discounts are not properly obtained when loading a ticket with discounts from the backend 

-  Notes
(0086063)
hgbot (developer)
2016-04-28 20:13

Repository: retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal
Changeset: dfbb44cc4a13b032365c446d529eb90d63822d49
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Thu Apr 28 20:13:15 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal/rev/dfbb44cc4a13b032365c446d529eb90d63822d49 [^]

Fixed issue 32691. Prevent apply promotion while loading ticket from backend

Prevent Calculating promotion while loading ticket from backend

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0086702)
Orekaria (administrator)
2016-05-24 12:59

Related test: I32674_VerifyDiscountOnReloadTicket

- Issue History
Date Modified Username Field Change
2016-04-18 16:10 jorge-garcia Type defect => backport
2016-04-18 16:10 jorge-garcia Target Version => RR16Q2
2016-04-28 20:13 hgbot Checkin
2016-04-28 20:13 hgbot Note Added: 0086063
2016-04-28 20:13 hgbot Status scheduled => resolved
2016-04-28 20:13 hgbot Resolution open => fixed
2016-04-28 20:13 hgbot Fixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q2/org.openbravo.retail.posterminal/rev/dfbb44cc4a13b032365c446d529eb90d63822d49 [^]
2016-05-24 12:59 Orekaria Review Assigned To => Orekaria
2016-05-24 12:59 Orekaria Note Added: 0086702
2016-05-24 12:59 Orekaria Status resolved => closed
2016-05-24 12:59 Orekaria Fixed in Version => RR16Q2


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker