Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0031743 | Retail Modules | Web POS | public | 2015-12-17 15:15 | 2016-12-14 16:38 | |||||||
Reporter | guillermogil | |||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||
Priority | normal | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | RR17Q1 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | OBPS | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0031743: Cancel a payment with paymentData after a refresh creates an error | |||||||||||
Description | Cancel a payment with paymentData after a refresh creates an error. If you have an integration with a payment gateway a VoidTransactioni is a must but if you refresh the browser is not possible to cancel it. On refresh voidTransaction object gets removed. Error: TypeError: voidTransaction is not a function at callVoidTransaction (be0f4d927c46422af6a36c62b754d774_WebPOS.js:38168) at Object.OB.UTIL.showConfirmation.display.action (be0f4d927c46422af6a36c62b754d774_WebPOS.js:38203) at Object.button.tap (be0f4d927c46422af6a36c62b754d774_WebPOS.js:10015) at Object.enyo.kind.dispatch (enyo.js:628) at Object.enyo.kind.dispatchEvent (enyo.js:612) at Object.enyo.kind.inherited (enyo.js:410) at Object.enyo.kind.dispatchEvent (enyo.js:1338) at Object.enyo.kind.dispatchBubble (enyo.js:616) at Object.enyo.kind.bubble (enyo.js:604) at Object.enyo.dispatcher.dispatchBubble (enyo.js:1783) at Object.enyo.dispatcher.dispatch [as dispatch] (enyo.js:1762) at Object.enyo.dispatch (enyo.js:1788); line: Object.OB.UTIL.showError (http://localhost:8080/openbravo/web/js/gen/be0f4d927c46422af6a36c62b754d774_WebPOS.js:10150:6 [^]) (*,+)processConsoleLevel @ be0f4d927c46422af6a36c62b754d774_WebPOS.js:2522 be0f4d927c46422af6a36c62b754d774_WebPOS.js:38168 Uncaught TypeError: voidTransaction is not a function | |||||||||||
Steps To Reproduce | Add a Payment with paymentData and Void transaction function. e.g.- OB.MobileApp.model.receipt.addPayment(new OB.Model.PaymentLine({ kind: payment.payment.searchKey, name: OB.MobileApp.model.getPaymentName(payment.payment.searchKey), amount: OB.DEC.number(OB.DEC.div(amount, 100)), rate: payment.rate, mulrate: payment.mulrate, isocode: payment.isocode, isCash: payment.paymentMethod.iscash, allowOpenDrawer: payment.paymentMethod.allowopendrawer, openDrawer: payment.paymentMethod.openDrawer, printtwice: payment.paymentMethod.printtwice, paymentData: { voidConfirmation: false, serialNumber: voucherNumber, voidTransaction: function (callback) { callback(); } } }) Refresh the browser Try to cancel it | |||||||||||
Proposed Solution | It is needed to create an structure that on Cancel a Payment if it is a Payment Provider it will look to a function defined on the prototype of the kind (Payment Provider) used. If there is none it will call to void Transaction function. It will be needed to update the Payment Provider Wiki also. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=8815&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2015-12-17 15:15 | guillermogil | New Issue | ||||||||||
2015-12-17 15:15 | guillermogil | Assigned To | => Retail | |||||||||
2015-12-17 15:15 | guillermogil | OBNetwork customer | => No | |||||||||
2015-12-17 15:15 | guillermogil | Triggers an Emergency Pack | => No | |||||||||
2015-12-17 15:16 | guillermogil | Description Updated | bug_revision_view_page.php?rev_id=10502#r10502 | |||||||||
2015-12-17 15:17 | guillermogil | File Added: Screenshot from 2015-12-17 15:16:07.png | ||||||||||
2015-12-17 15:17 | guillermogil | Description Updated | bug_revision_view_page.php?rev_id=10503#r10503 | |||||||||
2015-12-17 15:17 | guillermogil | Relationship added | related to 0031742 | |||||||||
2016-05-25 14:03 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||
2016-05-25 14:04 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||
2016-05-25 14:31 | ranjith_qualiantech_com | Assigned To | ranjith_qualiantech_com => Retail | |||||||||
2016-05-25 14:31 | ranjith_qualiantech_com | Status | scheduled => acknowledged | |||||||||
2016-05-26 10:15 | guillermogil | Proposed Solution updated | ||||||||||
2016-05-26 10:18 | guillermogil | Proposed Solution updated | ||||||||||
2016-11-02 15:52 | guillermogil | OBNetwork customer | No => Yes | |||||||||
2016-11-02 15:52 | guillermogil | Regression date | => 2016-11-30 | |||||||||
2016-11-07 13:06 | guillermogil | Resolution time | => 1480460400 | |||||||||
2016-11-07 13:06 | guillermogil | Regression date | 2016-11-30 => | |||||||||
2016-11-09 14:10 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||
2016-11-09 14:11 | ranjith_qualiantech_com | Status | acknowledged => scheduled | |||||||||
2016-11-25 11:12 | hgbot | Checkin | ||||||||||
2016-11-25 11:12 | hgbot | Note Added: 0091828 | ||||||||||
2016-11-25 11:12 | hgbot | Status | scheduled => resolved | |||||||||
2016-11-25 11:12 | hgbot | Resolution | open => fixed | |||||||||
2016-11-25 11:12 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/34c9be669bbc214ddc2221acfb6c5592251637dd [^] | |||||||||
2016-12-06 13:50 | ranjith_qualiantech_com | Note Added: 0092141 | ||||||||||
2016-12-06 13:50 | ranjith_qualiantech_com | Status | resolved => new | |||||||||
2016-12-06 13:50 | ranjith_qualiantech_com | Resolution | fixed => open | |||||||||
2016-12-06 13:50 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||
2016-12-09 11:53 | hgbot | Checkin | ||||||||||
2016-12-09 11:53 | hgbot | Note Added: 0092241 | ||||||||||
2016-12-09 11:53 | hgbot | Checkin | ||||||||||
2016-12-09 11:53 | hgbot | Note Added: 0092242 | ||||||||||
2016-12-09 11:53 | hgbot | Status | scheduled => resolved | |||||||||
2016-12-09 11:53 | hgbot | Resolution | open => fixed | |||||||||
2016-12-09 11:53 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/34c9be669bbc214ddc2221acfb6c5592251637dd [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/820f74284a6718a8677a80c19fda6be9bdd21699 [^] | |||||||||
2016-12-12 11:51 | marvintm | Note Added: 0092279 | ||||||||||
2016-12-12 11:51 | marvintm | Status | resolved => new | |||||||||
2016-12-12 11:51 | marvintm | Resolution | fixed => open | |||||||||
2016-12-12 11:51 | marvintm | Status | new => scheduled | |||||||||
2016-12-14 15:46 | hgbot | Checkin | ||||||||||
2016-12-14 15:46 | hgbot | Note Added: 0092357 | ||||||||||
2016-12-14 15:46 | hgbot | Status | scheduled => resolved | |||||||||
2016-12-14 15:46 | hgbot | Resolution | open => fixed | |||||||||
2016-12-14 15:46 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/820f74284a6718a8677a80c19fda6be9bdd21699 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/157a89812fe44aa1691883a2f41189c8700c2081 [^] | |||||||||
2016-12-14 15:47 | hgbot | Checkin | ||||||||||
2016-12-14 15:47 | hgbot | Note Added: 0092358 | ||||||||||
2016-12-14 16:38 | marvintm | Review Assigned To | => marvintm | |||||||||
2016-12-14 16:38 | marvintm | Status | resolved => closed | |||||||||
2016-12-14 16:38 | marvintm | Fixed in Version | => RR17Q1 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|