Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0044506 | Retail Modules | Gift cards and gift vouchers | public | 2020-06-29 17:00 | 2021-06-11 08:09 |
Reporter | kchoperena | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | high | Severity | major | Reproducibility | sometimes |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR20Q4 | |||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | Gold | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0044506: The preOrderSave hook of giftcards module fails when the netting payment of a C&R is using the credit note payment method | ||||
Description | The setDefaultPaymentType function of POSUtils.java searches a payment method to use in a C&R for the netting payment. If the selected payment method is 'Credit Note' the preOrderSave of giftcards module raises an error because the p.get('paymentData') is undefined. | ||||
Steps To Reproduce | PRECONDITION: "Web POS Forbid Anonymous Customer use a Credit Note" preference enabled 1.- Log in to the WebPOS 2.- Create a Layaway, pay it and synchronize it. 3.- Open the created Layaway and do a C&R (check that the netting payment is created as a 'Credit Note' payment) 4.- Try to synchronize the C&R Expected result: The preOrderSave hook of giftcards module fails with the next error: ee2bc9b50b784fb0eefd8efa05412c36.js:formatted:105359 Uncaught TypeError: Cannot read property 'creditNote' of undefined at ee2bc9b50b784fb0eefd8efa05412c36.js:formatted:105359 at Array.forEach (<anonymous>) at Function.b.each.b.forEach (underscore-1.3.3.min.js:11) | ||||
Proposed Solution | Check if p.get('paymentData') exists in the preOrderSave hook | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2020-06-29 17:00 | kchoperena | New Issue | |||
2020-06-29 17:00 | kchoperena | Assigned To | => Retail | ||
2020-06-29 17:00 | kchoperena | OBNetwork customer | => Gold | ||
2020-06-29 17:00 | kchoperena | Resolution time | => 1594591200 | ||
2020-06-29 17:00 | kchoperena | Triggers an Emergency Pack | => No | ||
2020-07-05 18:02 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2020-07-08 09:22 | kchoperena | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=21295#r21295 | ||
2020-07-08 11:39 | ranjith_qualiantech_com | Status | new => scheduled | ||
2020-07-09 09:54 | hgbot | Checkin | |||
2020-07-09 09:54 | hgbot | Note Added: 0121348 | |||
2020-07-09 09:54 | hgbot | Status | scheduled => resolved | ||
2020-07-09 09:54 | hgbot | Resolution | open => fixed | ||
2020-07-09 09:54 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/abe4329035b5925f9c97e1e65ae671e4265ebf90 [^] | ||
2020-07-09 10:57 | marvintm | Review Assigned To | => marvintm | ||
2020-07-09 10:57 | marvintm | Status | resolved => closed | ||
2020-07-09 10:57 | marvintm | Fixed in Version | => RR20Q4 | ||
2021-06-11 08:09 | hgbot | Note Added: 0129381 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|