Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0035780 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Multi order payment | major | always | 2017-04-12 16:54 | 2017-04-21 09:34 | |||
Reporter | migueldejuana | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | RR17Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 7b149aea1d08 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | guilleaer | |||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0035780: Pay Open Tickets payment are lost when reloading | |||||||
Description | 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. | |||||||
Steps To Reproduce | - 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 | |||||||
Proposed Solution | 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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0096091) hgbot (developer) 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 (developer) 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 --- |
![]() |
|||
Date Modified | Username | Field | Change |
2017-04-12 16:54 | migueldejuana | New Issue | |
2017-04-12 16:54 | migueldejuana | Assigned To | => Retail |
2017-04-12 16:54 | migueldejuana | OBNetwork customer | => No |
2017-04-12 16:54 | migueldejuana | Triggers an Emergency Pack | => No |
2017-04-12 17:32 | marvintm | Resolution time | => 1493762400 |
2017-04-12 17:33 | marvintm | Severity | minor => major |
2017-04-18 13:03 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2017-04-18 13:03 | ranjith_qualiantech_com | Status | new => scheduled |
2017-04-20 17:59 | hgbot | Checkin | |
2017-04-20 17:59 | hgbot | Note Added: 0096091 | |
2017-04-20 17:59 | hgbot | Status | scheduled => resolved |
2017-04-20 17:59 | hgbot | Resolution | open => fixed |
2017-04-20 17:59 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7b149aea1d08db4982f2b12ff68db88f5a3e8304 [^] |
2017-04-20 18:00 | hgbot | Checkin | |
2017-04-20 18:00 | hgbot | Note Added: 0096092 | |
2017-04-21 09:34 | guilleaer | Review Assigned To | => guilleaer |
2017-04-21 09:34 | guilleaer | Status | resolved => closed |
2017-04-21 09:34 | guilleaer | Fixed in Version | => RR17Q3 |
Copyright © 2000 - 2009 MantisBT Group |