Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035778Retail ModulesMulti order paymentpublic2017-04-12 16:422017-04-21 09:34
migueldejuana 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
5
 
RR17Q3 
guilleaer
No
0035778: Pay Open Tickets doesn't take into account already created payments
In Pay Open Tickets we can load Layaways and local orders. Loading local orders in Pay Open Tickets, payments linked to that order are removed.
We have to load those payments and take them into account as we do with Layaways and previous added payments.
Local orders can have payments attached in Order Mode, those payments can be done by a payment gateway and we cannot remove them.
We need to show in Pay Open Tickets modal just Layaways and order without payments or with payments but not fully paid.
When loading orders with payments we must take them into account and show the pending amount instead of showing the total of order gross.
- Login in Web POS
- Add Avalanche Transceiver, order total is 150,50
- Add a payment with Cash of 100
- Press Pay Open Tickets option and load created order
- ERROR! Pending to pay is 150,50
-->Solution:
*Total:150,50
*Total remaining to pay: 50,50
*Order remaining to pay: 50,50
Tips:

- First remove this added code:
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/28fdb6187e95#l1.16 [^]
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/28fdb6187e95#l3.7 [^]

- In this part of code, we just have to remove payments added in Pay Open Tickets process:
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/28fdb6187e95#l2.91 [^]

- When showing Pay Open Tickets modal, just show local orders which are not fully paid.

- Do not forget to test Synchronized Mode failing in backend. Doing Reload in different cases...
No tags attached.
Issue History
2017-04-12 16:42migueldejuanaNew Issue
2017-04-12 16:42migueldejuanaAssigned To => Retail
2017-04-12 16:42migueldejuanaTriggers an Emergency Pack => No
2017-04-12 17:32marvintmResolution time => 1493762400
2017-04-12 17:33marvintmSeverityminor => major
2017-04-18 13:39ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2017-04-18 13:39ranjith_qualiantech_comStatusnew => scheduled
2017-04-20 18:04hgbotCheckin
2017-04-20 18:04hgbotNote Added: 0096093
2017-04-20 18:04hgbotStatusscheduled => resolved
2017-04-20 18:04hgbotResolutionopen => fixed
2017-04-20 18:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3f8286b5dca49789cdab2e044eb5e1a4bd526518 [^]
2017-04-20 18:04hgbotCheckin
2017-04-20 18:04hgbotNote Added: 0096094
2017-04-21 09:34guilleaerReview Assigned To => guilleaer
2017-04-21 09:34guilleaerStatusresolved => closed
2017-04-21 09:34guilleaerFixed in Version => RR17Q3

Notes
(0096093)
hgbot   
2017-04-20 18:04   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 3f8286b5dca49789cdab2e044eb5e1a4bd526518
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Apr 20 21:33:44 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3f8286b5dca49789cdab2e044eb5e1a4bd526518 [^]

Fixes issue 35778 : Changes in Pay open ticket Payments

* Receipt Payments should be included to Pay open tickets Payments

---
M web/org.openbravo.retail.posterminal/js/components/modalmultiorders.js
M web/org.openbravo.retail.posterminal/js/data/dataordersave.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0096094)
hgbot   
2017-04-20 18:04   
Repository: tools/automation/pi-mobile
Changeset: 96c72b52877dcdb6beb6f7676d814bcdb22ff8ab
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Apr 20 21:33:49 2017 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/96c72b52877dcdb6beb6f7676d814bcdb22ff8ab [^]

Verifies issue 35778 : Added automated test 'I35778_VerifyPayOpenTicketPayments'

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/TestIdPack.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I35778_VerifyPayOpenTicketPayments.java
---