Openbravo Issue Tracking System - Retail Modules
View Issue Details
0023247Retail ModulesWeb POSpublic2013-03-06 19:222013-04-03 12:52
sureshbabu 
migueldejuana 
highmajoralways
closedfixed 
5
 
RMP21RMP21 
guilleaer
No
0023247: When a receipt is created with Fixed discount, when we reopen the receipt, error in product unit price and line total amout
When a receipt is created with Fixed discount, when we reopen the Receipt, error in product unit price and line total amount(using price list which is not inclusive of taxes)

Note: Affecting below functionality
Paid receipts, Layaway and also Quotations
Create a Receipt with below details

• Product: Alpine skiing backpack 27 L
• Quantity: 5
• Unit Price: 109.90
• Total line amount: 549.50
• Discount(Fixed 10%): -54.95
• Tax: 103.86
• Total Gross Amount: 598.41

Then again reopen the above created REceipt and check the details in POS


• Product: Alpine skiing backpack 27 L
• Quantity: 5
• Unit Price: 98.91
• Total line amount: 494.55
• Fixed 10%: -54.95
• Tax: 103.86
• Total Gross Amount: 598.41

Even it shows right value for

• Fixed 10%: -54.95
• Tax: 103.86
• Total Gross Amount: 598.41

But for Unit Price, and Total line amount shows wrong values.

* Unit Price: shows 98.91 instead of 109.90
* Total line amount: 494.55 instead of 549.50
No tags attached.
Issue History
2013-03-06 19:22sureshbabuNew Issue
2013-03-06 19:22sureshbabuAssigned To => adrianromero
2013-03-06 19:23sureshbabuAssigned Toadrianromero => marvintm
2013-03-06 20:10sureshbabuNote Added: 0057116
2013-03-07 11:56sureshbabuTarget Version => RMP21
2013-03-07 11:56sureshbabuSummaryWhen a Layaway order is created with Fixed discount, when we reopen the Layaway error in product unit price and line total amout => When a receipt is created with Fixed discount, when we reopen the receipt, error in product unit price and line total amout
2013-03-07 11:56sureshbabuDescription Updatedbug_revision_view_page.php?rev_id=4482#r4482
2013-03-07 11:56sureshbabuSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=4484#r4484
2013-03-07 15:12migueldejuanaNote Added: 0057139
2013-03-19 10:43hgbotCheckin
2013-03-19 10:43hgbotNote Added: 0057304
2013-03-19 10:43hgbotStatusnew => resolved
2013-03-19 10:43hgbotResolutionopen => fixed
2013-03-19 10:43hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4af28dfa6a5c4650bab71b3497891d33ca680a0a [^]
2013-03-21 09:43hgbotCheckin
2013-03-21 09:43hgbotNote Added: 0057343
2013-03-21 09:43migueldejuanaAssigned Tomarvintm => migueldejuana
2013-03-21 09:43migueldejuanaStatusresolved => new
2013-03-21 09:43migueldejuanaResolutionfixed => open
2013-03-21 09:44migueldejuanaStatusnew => scheduled
2013-03-21 09:44migueldejuanaStatusscheduled => resolved
2013-03-21 09:44migueldejuanaFixed in Version => RMP21
2013-03-21 09:44migueldejuanaResolutionopen => fixed
2013-03-21 17:05guilleaerReview Assigned To => guilleaer
2013-03-21 17:05guilleaerNote Added: 0057372
2013-03-21 17:05guilleaerStatusresolved => closed
2013-04-02 20:12hgbotCheckin
2013-04-02 20:12hgbotNote Added: 0057686
2013-04-02 20:12hgbotStatusclosed => resolved
2013-04-02 20:12hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4af28dfa6a5c4650bab71b3497891d33ca680a0a [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-core/rev/4af28dfa6a5c4650bab71b3497891d33ca680a0a [^]
2013-04-02 20:12hgbotCheckin
2013-04-02 20:12hgbotNote Added: 0057689
2013-04-03 12:52marvintmStatusresolved => closed

Notes
(0057116)
sureshbabu   
2013-03-06 20:10   
I have used price list not inclusive of taxes, because of this tax calculation is wrongly made. wrong values showed in Ticket also and also in Back end system in the sales order, Net Unit price and Line Net amount shows wrong value.
(0057139)
migueldejuana   
2013-03-07 15:12   
First, we should not apply discounts when showing Paid Receipts, Layaways and Quotations. This would not show discounts but amounts would be correct.
Then, we should retrieve from backend discounts and promotions of each orderline and create a method (similar to applyDiscounts) for displaying discounts.
(0057304)
hgbot   
2013-03-19 10:43   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4af28dfa6a5c4650bab71b3497891d33ca680a0a
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Mar 19 10:43:24 2013 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4af28dfa6a5c4650bab71b3497891d33ca680a0a [^]

Fixed issue 0023247: Loading orders, use lisprice instead netPrice

---
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0057343)
hgbot   
2013-03-21 09:43   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 0e2249f4b52e8b0cf11ffd80333fc0ef0398cb23
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Mar 21 09:42:48 2013 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0e2249f4b52e8b0cf11ffd80333fc0ef0398cb23 [^]

Related to issue 23247: Show unitPrice when price list not including taxes with discounts

---
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0057372)
guilleaer   
2013-03-21 17:05   
verified
(0057686)
hgbot   
2013-04-02 20:12   
Repository: erp/pmods/org.openbravo.retail.posterminal-core
Changeset: 4af28dfa6a5c4650bab71b3497891d33ca680a0a
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Mar 19 10:43:24 2013 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-core/rev/4af28dfa6a5c4650bab71b3497891d33ca680a0a [^]

Fixed issue 0023247: Loading orders, use lisprice instead netPrice

---
M src/org/openbravo/retail/posterminal/PaidReceipts.java
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0057689)
hgbot   
2013-04-02 20:12   
Repository: erp/pmods/org.openbravo.retail.posterminal-core
Changeset: 0e2249f4b52e8b0cf11ffd80333fc0ef0398cb23
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Mar 21 09:42:48 2013 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal-core/rev/0e2249f4b52e8b0cf11ffd80333fc0ef0398cb23 [^]

Related to issue 23247: Show unitPrice when price list not including taxes with discounts

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