Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0031742 | Retail Modules | Web POS | public | 2015-12-17 15:06 | 2015-12-28 16:43 | |||||||
Reporter | guillermogil | |||||||||||
Assigned To | simbu94 | |||||||||||
Priority | high | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 30 | OS Version | Professional Appliance | ||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | RR16Q1 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | jorge-garcia | |||||||||||
OBNetwork customer | ||||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0031742: Cancel a payment with paymentData and no VoidTransaction function creates an error | |||||||||||
Description | Cancel a payment with paymentData and no VoidTransaction function creates an error. Error: TypeError: voidTransaction is not a function at callVoidTransaction (fab28d396699f3dea414d78c44238eff_WebPOS.js:38168) at Object.OB.UTIL.showConfirmation.display.action (fab28d396699f3dea414d78c44238eff_WebPOS.js:38203) at Object.button.tap (fab28d396699f3dea414d78c44238eff_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/fab28d396699f3dea414d78c44238eff_WebPOS.js:10150:6 [^]) (*,+)processConsoleLevel @ fab28d396699f3dea414d78c44238eff_WebPOS.js:2522 fab28d396699f3dea414d78c44238eff_WebPOS.js:38168 Uncaught TypeError: voidTransaction is not a function | |||||||||||
Steps To Reproduce | Create a Payment with paymentData. 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: { serialNumber: voucherNumber } }) Then try to cancel it. It will show an error | |||||||||||
Proposed Solution | Ensure that the WebPOS does not fail when, in a payment, the paymentData is defined and the voidTransaction is not defined Right now, the application tries to execute voidTransaction even if the voidTransaction is not defined | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | Screenshot from 2015-12-17 15:04:04.png (344,825) 2015-12-17 15:06 https://issues.openbravo.com/file_download.php?file_id=8814&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2015-12-17 15:06 | guillermogil | New Issue | ||||||||||
2015-12-17 15:06 | guillermogil | Assigned To | => Retail | |||||||||
2015-12-17 15:06 | guillermogil | File Added: Screenshot from 2015-12-17 15:04:04.png | ||||||||||
2015-12-17 15:06 | guillermogil | Resolution time | => 1450738800 | |||||||||
2015-12-17 15:06 | guillermogil | Triggers an Emergency Pack | => No | |||||||||
2015-12-17 15:07 | guillermogil | Summary | Cancel a payment with paymentData and no VoidTransaction functioin creates and error => Cancel a payment with paymentData and no VoidTransaction function creates an error | |||||||||
2015-12-17 15:07 | guillermogil | Description Updated | bug_revision_view_page.php?rev_id=10500#r10500 | |||||||||
2015-12-17 15:17 | guillermogil | Relationship added | related to 0031743 | |||||||||
2015-12-17 18:27 | Orekaria | Proposed Solution updated | ||||||||||
2015-12-17 19:12 | Orekaria | Status | new => acknowledged | |||||||||
2015-12-22 06:35 | simbu94 | Assigned To | Retail => simbu94 | |||||||||
2015-12-22 07:50 | simbu94 | Status | acknowledged => scheduled | |||||||||
2015-12-22 11:25 | hgbot | Checkin | ||||||||||
2015-12-22 11:25 | hgbot | Note Added: 0082931 | ||||||||||
2015-12-22 11:25 | hgbot | Status | scheduled => resolved | |||||||||
2015-12-22 11:25 | hgbot | Resolution | open => fixed | |||||||||
2015-12-22 11:25 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/109e42f6be54d5c8369c1ab81f64981d7d8dd4ea [^] | |||||||||
2015-12-22 11:25 | hgbot | Checkin | ||||||||||
2015-12-22 11:25 | hgbot | Note Added: 0082932 | ||||||||||
2015-12-23 13:42 | hgbot | Checkin | ||||||||||
2015-12-23 13:42 | hgbot | Note Added: 0082962 | ||||||||||
2015-12-28 16:03 | jorge-garcia | Review Assigned To | => jorge-garcia | |||||||||
2015-12-28 16:43 | jorge-garcia | Note Added: 0083016 | ||||||||||
2015-12-28 16:43 | jorge-garcia | Status | resolved => closed | |||||||||
2015-12-28 16:43 | jorge-garcia | Fixed in Version | => RR16Q1 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|