Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035780Retail ModulesMulti order paymentpublic2017-04-12 16:542017-04-21 09:34
migueldejuana 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR17Q3 
guilleaer
No
0035780: Pay Open Tickets payment are lost when reloading
Payments created in Pay Open Tickets are not part from the orders loaded till we press DONE button. Orders are saved in the local database but Multiorder payments no, so we need to persist those payments to don't loose them whe reloading.
- Login in Web POS
- Add Avalanche Transceiver, order total is 150,50
- Press Pay Open Tickets option and load created order
- Add a payment with Cash of 100
- Reload browser
- ERROR! The payment has dissapeared
We can save Multiorder payments in localstorage to persist them. Each time we add a payment in Pay Open Tickets we will persist multiorder payments in localstorage.
When loading orders from local database after a reload(being in Pay Open Tickets window) we must also restore multiorder payments.
Payments are an array and we cannot save them in localstorage so we will need to code/decode to save/load them. There are examples in the code using toJSON and stringify
Do not forget to reset localstorage created attr after closing Multiorder window.
No tags attached.
Issue History
2017-04-12 16:54migueldejuanaNew Issue
2017-04-12 16:54migueldejuanaAssigned To => Retail
2017-04-12 16:54migueldejuanaTriggers an Emergency Pack => No
2017-04-12 17:32marvintmResolution time => 1493762400
2017-04-12 17:33marvintmSeverityminor => major
2017-04-18 13:03ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2017-04-18 13:03ranjith_qualiantech_comStatusnew => scheduled
2017-04-20 17:59hgbotCheckin
2017-04-20 17:59hgbotNote Added: 0096091
2017-04-20 17:59hgbotStatusscheduled => resolved
2017-04-20 17:59hgbotResolutionopen => fixed
2017-04-20 17:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7b149aea1d08db4982f2b12ff68db88f5a3e8304 [^]
2017-04-20 18:00hgbotCheckin
2017-04-20 18:00hgbotNote Added: 0096092
2017-04-21 09:34guilleaerReview Assigned To => guilleaer
2017-04-21 09:34guilleaerStatusresolved => closed
2017-04-21 09:34guilleaerFixed in Version => RR17Q3

Notes
(0096091)
hgbot   
2017-04-20 17:59   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 7b149aea1d08db4982f2b12ff68db88f5a3e8304
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Apr 20 21:28:39 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7b149aea1d08db4982f2b12ff68db88f5a3e8304 [^]

Fixes issue 35780 : Pay Open ticket Payments retained on reload

* Pay open tickets Payments should be added to localstorage, so it will be restored on reload

---
M web/org.openbravo.retail.posterminal/js/components/order.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0096092)
hgbot   
2017-04-20 18:00   
Repository: tools/automation/pi-mobile
Changeset: 72b9de072be411e9cd3fb47db31fd2248b4b1538
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Apr 20 21:29:00 2017 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/72b9de072be411e9cd3fb47db31fd2248b4b1538 [^]

Verifies issue 35780 : Added automated test 'I35780_VerifyMultiOrderPaymentOnReload'

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I35780_VerifyMultiOrderPaymentOnReload.java
---