Openbravo Issue Tracking System - Retail Modules
View Issue Details
0043226Retail ModulesWeb POSpublic2020-02-14 13:072020-03-09 11:30
joniturralde93 
prakashmurugesan88 
urgentmajoralways
closedfixed 
5
 
RR20Q2 
guilleaer
No
0043226: Wrong List price in order line when returning a product whose list price has changed in backoffice (price not including taxes)
When you do a verified return from a receipt with a line whose product's list price has been modified in backoffice,the synchronized list price is the new, modified one instead of the one from the original order line.
This only happens for price not including taxes priceLists. For tax include taxes, the grossListPrice keeps correct.
1. Add any product to the order in Web POS PS-1
2. Complete the order and check the order in backoffice
3. Modify the product's list price in backoffice for the price list "The White Valley Group Sale Price list (Opening Store)"
4. Refresh data in the terminal
5. Verified return for the previous ticket and complete
6. Go to backoffice as system admin to the SQL Query window
7. Execute "select * from c_orderline order by created desc" and check the two first lines that appear
8. pricelist column for both the lines is different
No tags attached.
related to design defect 0043202 new Retail grossListPrice & priceList properties of order line model (client side) are not behaving as expected according to ERP behavior 
related to defect 0043254 closed prakashmurugesan88 Returnline flag is not updated in backend when priceIncludesTax='Y' 
Issue History
2020-02-14 13:07joniturralde93New Issue
2020-02-14 13:07joniturralde93Assigned To => Retail
2020-02-14 13:07joniturralde93Resolution time => 1583449200
2020-02-14 13:07joniturralde93Triggers an Emergency Pack => No
2020-02-14 13:10joniturralde93Relationship addedrelated to 0043202
2020-02-14 13:30joniturralde93SummaryWrong List price in order line when returning a product whose list price has changed in backoffice => Wrong List price in order line when returning a product whose list price has changed in backoffice (price not including taxes)
2020-02-14 13:30joniturralde93Description Updatedbug_revision_view_page.php?rev_id=20374#r20374
2020-02-17 04:34rqueraltaAssigned ToRetail => rqueralta
2020-02-18 09:41joniturralde93Description Updatedbug_revision_view_page.php?rev_id=20388#r20388
2020-02-18 10:44prakashmurugesan88Assigned Torqueralta => prakashmurugesan88
2020-02-18 15:51prakashmurugesan88Relationship addedrelated to 0043254
2020-02-19 12:21prakashmurugesan88Statusnew => scheduled
2020-02-24 12:21hgbotCheckin
2020-02-24 12:21hgbotNote Added: 0118045
2020-02-24 12:21hgbotCheckin
2020-02-24 12:21hgbotNote Added: 0118048
2020-02-24 12:21hgbotStatusscheduled => resolved
2020-02-24 12:21hgbotResolutionopen => fixed
2020-02-24 12:21hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.returns/rev/45c03481e143c9a7bd063ff7f11652af56a82ae0 [^]
2020-02-24 12:22hgbotCheckin
2020-02-24 12:22hgbotNote Added: 0118049
2020-03-09 11:29guilleaerReview Assigned To => guilleaer
2020-03-09 11:29guilleaerStatusresolved => closed
2020-03-09 11:29guilleaerFixed in Version => RR20Q1
2020-03-09 11:30guilleaerFixed in VersionRR20Q1 => RR20Q2

Notes
(0118045)
hgbot   
2020-02-24 12:21   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2d50d264763c81cfa4067fe3e1a2680cae87451b
Author: Prakash M <prakash <at> qualiantech.com>
Date: Mon Feb 24 16:49:10 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2d50d264763c81cfa4067fe3e1a2680cae87451b [^]

related to ISSUE-43226: Fixed wrong list price on retruning product under following
* Whose list price has changed in backoffice
* Price not including taxes

Fix:
* Loaded original list price and stored as creationListPrice
* List price of return lines are updated from creationListPrice

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
M src/org/openbravo/retail/posterminal/PaidReceiptLinesProperties.java
---
(0118048)
hgbot   
2020-02-24 12:21   
Repository: erp/pmods/org.openbravo.retail.returns
Changeset: 45c03481e143c9a7bd063ff7f11652af56a82ae0
Author: Prakash M <prakash <at> qualiantech.com>
Date: Mon Feb 24 16:50:32 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.returns/rev/45c03481e143c9a7bd063ff7f11652af56a82ae0 [^]

fixes BUG-43226: Fixed wrong list price on retruning product under following
* Whose list price has changed in backoffice
* Price not including taxes

Fix:
* Loaded original list price and stored as creationListPrice
* List price of return lines are updated from creationListPrice

---
M web/org.openbravo.retail.returns/js/returnUtils.js
---
(0118049)
hgbot   
2020-02-24 12:22   
Repository: tools/automation/pi-mobile
Changeset: 6e21226bf87d79a418f05d5191993f4077fa740a
Author: Prakash M <prakash <at> qualiantech.com>
Date: Mon Feb 24 16:48:43 2020 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/6e21226bf87d79a418f05d5191993f4077fa740a [^]

Verifies BUG-43226: Fixed wrong list price on verified return prod with priceincludestax N

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/returns/I43226_VerifiedReturnWithPriceIncludesTax.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/returns/I43226_VerifiedReturnWithoutPriceIncludesTax.java
---