Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038684Retail ModulesWeb POSpublic2018-05-14 13:592018-08-02 10:29
maite 
ranjith_qualiantech_com 
immediatemajoralways
closedout of date 
5
 
 
No
0038684: Wrong payment documents registered in backoffice when giving change in another currency from WebPOS
In case the cashier gives the change in different currency that receipt's currency, credit is generated to the customer (which is wrong)


Due to some problems related with the approach used to fix issue 38038 has been decided to go for a new approach to solve the situation

1. Access POS terminal and create receipt for "Avalanche transceiver" and pay it using "USA cash". Purpose of this step is to have cash in USD
2. Create new receipt setting "Invoice this receipt" for "Insect repellent" pay it using 20 EUR and select "USA Cash" to give the change in USD
3. Access to backoffice to review registered documents and realize that they have some errors:

 a) the sales order document has erroneous Payment Plan info as "received Amount" is higher than "Expected amount" and negative amount appears as "outstanding amount" (when receipt has been fully paid)

 b) from Payment Details tab you can see that 2 payment documents have been created. One is generating credit to anonymous customer, which was not happening before and this credit is not being consumed.
NEW approach:

- No credit should be generated
- All details should be associated with sales order
No tags attached.
blocks defect 0038544 closed ranjith_qualiantech_com Wrong payment documents registered in backoffice when giving change in another currency from WebPOS 
Issue History
2018-06-01 13:10marvintmTypedefect => backport
2018-06-01 13:10marvintmTarget Version => RR18Q1.4
2018-06-02 08:47hgbotCheckin
2018-06-02 08:47hgbotNote Added: 0104892
2018-06-02 08:47hgbotStatusscheduled => resolved
2018-06-02 08:47hgbotResolutionopen => fixed
2018-06-02 08:47hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR18Q1.4/org.openbravo.retail.posterminal/rev/f8edc8d39ce55c774345440392243010d2650c58 [^]
2018-06-02 08:47hgbotCheckin
2018-06-02 08:47hgbotNote Added: 0104893
2018-08-02 10:29plujanNote Added: 0106111
2018-08-02 10:29plujanStatusresolved => closed
2018-08-02 10:29plujanResolutionfixed => out of date
2018-08-02 10:29plujanTarget VersionRR18Q1.4 =>

Notes
(0104892)
hgbot   
2018-06-02 08:47   
Repository: retail/backports/3.0RR18Q1.4/org.openbravo.retail.posterminal
Changeset: f8edc8d39ce55c774345440392243010d2650c58
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Sat Jun 02 12:16:43 2018 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR18Q1.4/org.openbravo.retail.posterminal/rev/f8edc8d39ce55c774345440392243010d2650c58 [^]

Fixed issue 38684 : Change payment in different currency should be associated with payment details

* Credit should not be generated for Change amount
* Reverted changes for the issue 38048

Backed out changeset: 2de8ee1d198c

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/utils/ticketCloseUtils.js
---
(0104893)
hgbot   
2018-06-02 08:47   
Repository: retail/backports/3.0RR18Q1.4/pi-mobile
Changeset: 83e3d5a7fb61537bb3c582769058e0739be0bf05
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Sat Jun 02 12:16:58 2018 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR18Q1.4/pi-mobile/rev/83e3d5a7fb61537bb3c582769058e0739be0bf05 [^]

Verifies issue 38684 : Modified automated test 'I38048_VerifyReceiptChangeWithDiffCurrency'

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I38048_VerifyReceiptChangeWithDiffCurrency.java
---
(0106111)
plujan   
2018-08-02 10:29   
Closed as Q1 reached end of support