Openbravo Issue Tracking System - Retail Modules
View Issue Details
0029752Retail ModulesReturn Receiptpublic2015-04-30 10:272015-05-05 17:22
lorenzofidalgo 
malsasua 
immediateminoralways
closedsuspended 
5
main 
RR15Q2 
marvintm
Packaging and release
main
No
0029752: Following certain steps returning a receipt induces wrong change amount message
Creating a return receipt and meanwhile to complete a receipt, induces a wrong return receipt change amount message.
1-Login POS as vallblanca//openbravo.
2-In dropdown menu click "Return this receipt".
3-Add 1 x Adhesive body warmers.
4-Click '*' to create a new receipt.
5-Add 5 x Alpine Alpine skiing backpack 27 L
6-Click amount and complete this receipt.
7-Now, Return Receipt appears. Click Total Amount button and check change amount message that is shown is wrong.
No tags attached.
blocks defect 0029747RR15Q3 closed marvintm Following certain steps returning a receipt induces wrong change amount message 
Issue History
2015-04-30 17:45marvintmTypedefect => backport
2015-04-30 17:45marvintmTarget Version => RR15Q2
2015-05-04 18:39hgbotCheckin
2015-05-04 18:39hgbotNote Added: 0076970
2015-05-04 18:39hgbotStatusscheduled => resolved
2015-05-04 18:39hgbotResolutionopen => fixed
2015-05-04 18:39hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR15Q2/org.openbravo.retail.posterminal/rev/f012545376ffa1e65269f775f59550391f919457 [^]
2015-05-05 11:12hgbotCheckin
2015-05-05 11:12hgbotNote Added: 0076994
2015-05-05 11:13malsasuaStatusresolved => new
2015-05-05 11:13malsasuaResolutionfixed => open
2015-05-05 11:13malsasuaReview Assigned To => marvintm
2015-05-05 11:13malsasuaNote Added: 0076996
2015-05-05 11:13malsasuaStatusnew => closed
2015-05-05 17:22plujanNote Added: 0077026
2015-05-05 17:22plujanResolutionopen => suspended

Notes
(0076970)
hgbot   
2015-05-04 18:39   
Repository: retail/backports/3.0RR15Q2/org.openbravo.retail.posterminal
Changeset: f012545376ffa1e65269f775f59550391f919457
Author: Miguel A. Alsasua <miguel.alsasua <at> openbravo.com>
Date: Mon May 04 13:47:04 2015 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR15Q2/org.openbravo.retail.posterminal/rev/f012545376ffa1e65269f775f59550391f919457 [^]

fixed issue 29752: removed execution of applypromotions when the receipt is cloning and the receipt is saved when calculate gross is executed

when the receipt is cloning, the apply promotions is disabled, because it is generating multiples calls to cloneReceipt method, and it generates that the receipt cloned is corrupted
So, we have problems of refresh of receipt, for example issue 28457 and 27983. To avoid this problems, the order is saved in database local, when calculate gross is executed (to fix of other way the issue 28457)
And removed the fix to issue 27983, now it is working fine with the change to save the receipt in database local when calculate gross is executed

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0076994)
hgbot   
2015-05-05 11:12   
Repository: retail/backports/3.0RR15Q2/org.openbravo.retail.posterminal
Changeset: 05fe554d606e56205d628e0e8dc22a3e0b107fee
Author: Miguel A. Alsasua <miguel.alsasua <at> openbravo.com>
Date: Tue May 05 11:04:33 2015 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR15Q2/org.openbravo.retail.posterminal/rev/05fe554d606e56205d628e0e8dc22a3e0b107fee [^]

Related to issue 29752: it will not be included in RR15Q2. Backout of f012545376ff

It is not working fine when: receipt 1 is created, receipt 2 is created, go to cashup, cancel cashup (receipt 1 is displayed), change to receipt 2, add new line in receipt 2-> total is not refresh

It will be reviewed and fixed in RR15Q3

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0076996)
malsasua   
2015-05-05 11:13   
it will not be included in RR15Q2.
(0077026)
plujan   
2015-05-05 17:22   
Changed resolution (it was "open")