Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038049Retail ModulesWeb POSpublic2018-03-05 12:352018-03-26 09:12
maite 
ranjith_qualiantech_com 
immediatemajoralways
closedfixed 
5
 
RR17Q4.2RR17Q4.2 
marvintm
No
0038049: 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 => RR17Q4.3
2018-03-09 11:09ranjith_qualiantech_comAssigned Togorka_gil => ranjith_qualiantech_com
2018-03-09 11:20hgbotCheckin
2018-03-09 11:20hgbotNote Added: 0103127
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.0RR17Q4.2/org.openbravo.retail.posterminal/rev/e8d895e77aec96f5ada89af1e0ad49021a540c66 [^]
2018-03-09 11:20hgbotCheckin
2018-03-09 11:20hgbotNote Added: 0103129
2018-03-09 13:56hgbotCheckin
2018-03-09 13:56hgbotNote Added: 0103138
2018-03-09 13:56hgbotFixed in SCM revisionhttp://code.openbravo.com/retail/backports/3.0RR17Q4.2/org.openbravo.retail.posterminal/rev/e8d895e77aec96f5ada89af1e0ad49021a540c66 [^] => http://code.openbravo.com/retail/backports/3.0RR17Q4.2/org.openbravo.retail.posterminal/rev/17440de1ba5465065dfe9fe0aceb0bcbaa920d99 [^]
2018-03-15 09:47marvintmTarget VersionRR17Q4.3 => RR17Q4.2
2018-03-15 10:33hgbotCheckin
2018-03-15 10:33hgbotNote Added: 0103275
2018-03-16 14:13marvintmReview Assigned To => marvintm
2018-03-16 14:13marvintmStatusresolved => closed
2018-03-16 14:13marvintmFixed in Version => RR17Q4.2
2018-03-26 09:12hgbotCheckin
2018-03-26 09:12hgbotNote Added: 0103485
2018-03-26 09:12hgbotCheckin
2018-03-26 09:12hgbotNote Added: 0103487

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

Fixed issue 38049 : 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/pointofsale/model/pointofsale-model.js
---
(0103129)
hgbot   
2018-03-09 11:20   
Repository: retail/backports/3.0RR17Q4.2/pi-mobile
Changeset: 724b579bc1347ffd9ba648c927a8ec68a021a966
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Mar 09 15:49:36 2018 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR17Q4.2/pi-mobile/rev/724b579bc1347ffd9ba648c927a8ec68a021a966 [^]

Verifies issue 38049 : Added automated test 'I38049_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/I38049_VerifyReceiptChangeWithDiffCurrency.java
---
(0103138)
hgbot   
2018-03-09 13:56   
Repository: retail/backports/3.0RR17Q4.2/org.openbravo.retail.posterminal
Changeset: 17440de1ba5465065dfe9fe0aceb0bcbaa920d99
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Mar 09 18:26:14 2018 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR17Q4.2/org.openbravo.retail.posterminal/rev/17440de1ba5465065dfe9fe0aceb0bcbaa920d99 [^]

Fixed issue 38049 : 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
---
(0103275)
hgbot   
2018-03-15 10:33   
Repository: retail/backports/3.0RR17Q4.2/pi-mobile
Changeset: af32734ff17c2532ee67f8dcd3d56456b4ef2684
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Mar 15 15:02:49 2018 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR17Q4.2/pi-mobile/rev/af32734ff17c2532ee67f8dcd3d56456b4ef2684 [^]

Verifies issue 38049 : Modified automated test 'I38049_VerifyReceiptChangeWithDiffCurrency'

* Test failing in quaratine

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I38049_VerifyReceiptChangeWithDiffCurrency.java
---
(0103485)
hgbot   
2018-03-26 09:12   
Repository: tools/automation/pi-mobile
Changeset: 724b579bc1347ffd9ba648c927a8ec68a021a966
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Mar 09 15:49:36 2018 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/724b579bc1347ffd9ba648c927a8ec68a021a966 [^]

Verifies issue 38049 : Added automated test 'I38049_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/I38049_VerifyReceiptChangeWithDiffCurrency.java
---
(0103487)
hgbot   
2018-03-26 09:12   
Repository: tools/automation/pi-mobile
Changeset: af32734ff17c2532ee67f8dcd3d56456b4ef2684
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Mar 15 15:02:49 2018 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/af32734ff17c2532ee67f8dcd3d56456b4ef2684 [^]

Verifies issue 38049 : Modified automated test 'I38049_VerifyReceiptChangeWithDiffCurrency'

* Test failing in quaratine

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I38049_VerifyReceiptChangeWithDiffCurrency.java
---