Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038048Retail ModulesWeb POSpublic2018-03-05 12:352018-06-02 08:47
maite 
ranjith_qualiantech_com 
immediatemajoralways
closedfixed 
5
 
RR18Q1.1RR18Q1.1 
marvintm
No
0038048: 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)
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. Moreover, the second payment (which is deposited in USD financial account) is associated with the sales order (which also seems to be wrong and causing problem a))

 
The payment deposited in USD financial account:
- should not be associated with the sales order
No tags attached.
blocks defect 0038038 closed ranjith_qualiantech_com Wrong payment documents registered in backoffice when giving change in another currency from WebPOS 
Issue History
2018-03-05 18:36marvintmTypedefect => backport
2018-03-05 18:36marvintmTarget Version => RR18Q1.2
2018-03-09 11:09ranjith_qualiantech_comAssigned Togorka_gil => ranjith_qualiantech_com
2018-03-09 11:20hgbotCheckin
2018-03-09 11:20hgbotNote Added: 0103126
2018-03-09 11:20hgbotStatusscheduled => resolved
2018-03-09 11:20hgbotResolutionopen => fixed
2018-03-09 11:20hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR18Q1.1/org.openbravo.retail.posterminal/rev/2de8ee1d198cf7fe387edfb167c6f33b53cae8dd [^]
2018-03-09 11:20hgbotCheckin
2018-03-09 11:20hgbotNote Added: 0103128
2018-03-09 13:56hgbotCheckin
2018-03-09 13:56hgbotNote Added: 0103137
2018-03-09 13:56hgbotFixed in SCM revisionhttp://code.openbravo.com/retail/backports/3.0RR18Q1.1/org.openbravo.retail.posterminal/rev/2de8ee1d198cf7fe387edfb167c6f33b53cae8dd [^] => http://code.openbravo.com/retail/backports/3.0RR18Q1.1/org.openbravo.retail.posterminal/rev/9cf9304694578438d7825aaefbdb21b45583f7ed [^]
2018-03-09 14:04marvintmReview Assigned To => marvintm
2018-03-09 14:04marvintmStatusresolved => closed
2018-03-09 14:04marvintmFixed in Version => RR18Q1.1
2018-03-09 14:04marvintmTarget VersionRR18Q1.2 => RR18Q1.1
2018-03-15 10:33hgbotCheckin
2018-03-15 10:33hgbotNote Added: 0103276
2018-03-22 08:15ranjith_qualiantech_comRelationship addedrelated to 0037264
2018-03-22 08:24ranjith_qualiantech_comRelationship deletedrelated to 0037264
2018-03-27 09:40hgbotCheckin
2018-03-27 09:40hgbotNote Added: 0103553
2018-03-27 09:40hgbotCheckin
2018-03-27 09:40hgbotNote Added: 0103554
2018-06-02 08:47hgbotCheckin
2018-06-02 08:47hgbotNote Added: 0104891

Notes
(0103126)
hgbot   
2018-03-09 11:20   
Repository: retail/backports/3.0RR18Q1.1/org.openbravo.retail.posterminal
Changeset: 2de8ee1d198cf7fe387edfb167c6f33b53cae8dd
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Mar 09 15:49:22 2018 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR18Q1.1/org.openbravo.retail.posterminal/rev/2de8ee1d198cf7fe387edfb167c6f33b53cae8dd [^]

Fixed issue 38048 : Change Amount should be in negative to create payment schedue and details correclty

---
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
---
(0103128)
hgbot   
2018-03-09 11:20   
Repository: retail/backports/3.0RR18Q1.1/pi-mobile
Changeset: b2d23281a8bea67bcf5b6bbdba6612ee5c0ef676
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Mar 09 15:49:25 2018 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR18Q1.1/pi-mobile/rev/b2d23281a8bea67bcf5b6bbdba6612ee5c0ef676 [^]

Verifies issue 38048 : Added automated test 'I38048_VerifyReceiptChangeWithDiffCurrency'

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I37343_VerifyPymtScheDetailWithCredit.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I38048_VerifyReceiptChangeWithDiffCurrency.java
---
(0103137)
hgbot   
2018-03-09 13:56   
Repository: retail/backports/3.0RR18Q1.1/org.openbravo.retail.posterminal
Changeset: 9cf9304694578438d7825aaefbdb21b45583f7ed
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Mar 09 18:25:52 2018 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR18Q1.1/org.openbravo.retail.posterminal/rev/9cf9304694578438d7825aaefbdb21b45583f7ed [^]

Fixed issue 38048 : Payment Schdule Detail should be created with latest payment amount

* Few lines were missed from original issues while doing backport

---
M src/org/openbravo/retail/posterminal/OrderLoader.java
---
(0103276)
hgbot   
2018-03-15 10:33   
Repository: retail/backports/3.0RR18Q1.1/pi-mobile
Changeset: c19e7eea23274aa9d3dffcd11e9a639cdc398fe4
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Mar 15 15:02:58 2018 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR18Q1.1/pi-mobile/rev/c19e7eea23274aa9d3dffcd11e9a639cdc398fe4 [^]

Verifies issue 38048 : Modified automated test 'I38048_VerifyReceiptChangeWithDiffCurrency'

* Test failing in quaratine

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I38048_VerifyReceiptChangeWithDiffCurrency.java
---
(0103553)
hgbot   
2018-03-27 09:40   
Repository: tools/automation/pi-mobile
Changeset: b2d23281a8bea67bcf5b6bbdba6612ee5c0ef676
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Mar 09 15:49:25 2018 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/b2d23281a8bea67bcf5b6bbdba6612ee5c0ef676 [^]

Verifies issue 38048 : Added automated test 'I38048_VerifyReceiptChangeWithDiffCurrency'

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I37343_VerifyPymtScheDetailWithCredit.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I38048_VerifyReceiptChangeWithDiffCurrency.java
---
(0103554)
hgbot   
2018-03-27 09:40   
Repository: tools/automation/pi-mobile
Changeset: c19e7eea23274aa9d3dffcd11e9a639cdc398fe4
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Mar 15 15:02:58 2018 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/c19e7eea23274aa9d3dffcd11e9a639cdc398fe4 [^]

Verifies issue 38048 : Modified automated test 'I38048_VerifyReceiptChangeWithDiffCurrency'

* Test failing in quaratine

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I38048_VerifyReceiptChangeWithDiffCurrency.java
---
(0104891)
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
---