Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031116Retail ModulesReturn Receiptpublic2015-10-09 09:202015-10-23 14:05
lorenzofidalgo 
mario_castello 
immediatemajorhave not tried
closedfixed 
5
main 
RR16Q1 
marvintm
Packaging and release
main
No
0031116: [RR15Q4] Rounding error returning products. Sell products and, after that, returning them can induce unbalanced invoices
"Net Sales" & "Net Returns" are not balanced when the store sell several products and all of them are returned. In CashUp these differences are shown. Besides, in backend, in "Sales Invoice" window it is also shown due to "Total Net Amount" field is not 0.00. In my testing it is "-0.02" (watch attached image).

This is working correctly in RR15Q3.1.
0-Login POS and create a cashup to clean the terminal from previous movements.
1-Once cashup is finished, create a new receipt and add 5x "Alpine skiing backpack 27 L", then complete that receipt paying with cash.
2- Create a new receipt, add 5x "Alpine skiing backpack 27 L" and, in dropdown menu, click "Return this receipt". Then complete this receipt and pay it with cash.
3-Now, in dropdown menu, go to cashup and go next, saving nothing until you are in the last step ("Post, print and close"). There you can see that "Net Sales" and "Net Returns" are not balanced. After checking that, complete the cashup.
4-Go to backend, "Sales Invoice" window and enter in view form of the just created record (due to the cashup). In status bar you can check Total Net Amount" field is not 0.00.
No tags attached.
depends on backport 0031117RR15Q4 closed Retail [RR15Q4] Rounding error returning products. Sell products and, after that, returning them can induce unbalanced invoices 
png RoundingError.png (109,470) 2015-10-09 09:20
https://issues.openbravo.com/file_download.php?file_id=8547&type=bug
png

png CorrectRounding.png (86,448) 2015-10-09 09:20
https://issues.openbravo.com/file_download.php?file_id=8548&type=bug
png

png RoundingErrorSalesInvoice.png (70,500) 2015-10-09 09:20
https://issues.openbravo.com/file_download.php?file_id=8549&type=bug
png
Issue History
2015-10-09 09:20lorenzofidalgoNew Issue
2015-10-09 09:20lorenzofidalgoAssigned To => Retail
2015-10-09 09:20lorenzofidalgoFile Added: RoundingError.png
2015-10-09 09:20lorenzofidalgoRegression level => Packaging and release
2015-10-09 09:20lorenzofidalgoRegression introduced in release => main
2015-10-09 09:20lorenzofidalgoTriggers an Emergency Pack => No
2015-10-09 09:20lorenzofidalgoFile Added: CorrectRounding.png
2015-10-09 09:20lorenzofidalgoFile Added: RoundingErrorSalesInvoice.png
2015-10-09 10:22OrekariaStatusnew => scheduled
2015-10-09 10:22OrekariaStatusscheduled => acknowledged
2015-10-14 18:25mario_castelloAssigned ToRetail => mario_castello
2015-10-14 18:25mario_castelloStatusacknowledged => scheduled
2015-10-19 21:51hgbotCheckin
2015-10-19 21:51hgbotNote Added: 0081102
2015-10-19 21:51hgbotStatusscheduled => resolved
2015-10-19 21:51hgbotResolutionopen => fixed
2015-10-19 21:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4269669886ae836c1a760a8034b7cc039d23ee28 [^]
2015-10-20 17:04hgbotCheckin
2015-10-20 17:04hgbotNote Added: 0081142
2015-10-22 16:28lorenzofidalgoPrioritynormal => immediate
2015-10-23 14:05marvintmReview Assigned To => marvintm
2015-10-23 14:05marvintmStatusresolved => closed
2015-10-23 14:05marvintmFixed in Version => RR16Q1

Notes
(0081102)
hgbot   
2015-10-19 21:51   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4269669886ae836c1a760a8034b7cc039d23ee28
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Mon Oct 19 13:50:27 2015 -0600
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4269669886ae836c1a760a8034b7cc039d23ee28 [^]

Fixed issue 31116: Add value to discountedGross

---
M web/org.openbravo.retail.posterminal/js/data/dataordertaxes.js
---
(0081142)
hgbot   
2015-10-20 17:04   
Repository: tools/automation/pi-mobile
Changeset: 50b73cc442fda6f8decfd589a4f3a1fce16899f6
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Tue Oct 20 09:04:16 2015 -0600
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/50b73cc442fda6f8decfd589a4f3a1fce16899f6 [^]

Related to issue 31116: Automation test to verify the cashup

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I31116_CashupSalesAndReturns.java
---