Openbravo Issue Tracking System - Retail Modules
View Issue Details
0025554Retail ModulesWeb POSpublic2014-01-24 11:482014-03-27 12:32
adrianromero 
adrianromero 
normalmajorhave not tried
closedfixed 
5
 
RR14Q2 
adrianromero
No
0025554: Discounts amount when returning a line must be divided by the item quantities returned.
When returning an receipt that includes a line of more than one item that has a discount, when returning less items than sold the discount must also be divided in the return receipt.
Create a receipt with a pack for example

Quantity 2, unit price 100, total line 200, discount 50, total with discounts 150.

Create a Verified return for the previous receipt and return only 1 item. it appears:

Quantity -1, unit price 100, total line 100, discount 50, total with discounts -50

This is wrong the discount must be 25 and the total with discounts -75
No tags attached.
Issue History
2014-01-24 11:48adrianromeroNew Issue
2014-01-24 11:48adrianromeroAssigned To => adrianromero
2014-01-24 11:48adrianromeroTriggers an Emergency Pack => No
2014-02-11 17:12hgbotCheckin
2014-02-11 17:12hgbotNote Added: 0064060
2014-02-11 17:12hgbotStatusnew => resolved
2014-02-11 17:12hgbotResolutionopen => fixed
2014-02-11 17:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.returns/rev/a644e5cfdf0039b4a45e7d2dc596e711b768c7b8 [^]
2014-03-27 12:32adrianromeroReview Assigned To => adrianromero
2014-03-27 12:32adrianromeroNote Added: 0065513
2014-03-27 12:32adrianromeroStatusresolved => closed
2014-03-27 12:32adrianromeroFixed in Version => RR14Q2

Notes
(0064060)
hgbot   
2014-02-11 17:12   
Repository: erp/pmods/org.openbravo.retail.returns
Changeset: a644e5cfdf0039b4a45e7d2dc596e711b768c7b8
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Fri Jan 24 11:54:40 2014 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.returns/rev/a644e5cfdf0039b4a45e7d2dc596e711b768c7b8 [^]

Fixes issue 0025554: Discounts amount when returning a line must be divided by the item quantities returned.

---
M web/org.openbravo.retail.returns/js/modalReturnLines.js
---
(0065513)
adrianromero   
2014-03-27 12:32   
Reviewed. Code overwritten by similar fix