Openbravo Issue Tracking System - Retail Modules | ||||||||||||||||||||||||||
View Issue Details | ||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
0039780 | Retail Modules | Gift cards and gift vouchers | public | 2018-12-11 15:46 | 2019-01-04 00:16 | |||||||||||||||||||||
Reporter | aaroncalero | |||||||||||||||||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||||||||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||||||||||||||||
Status | closed | Resolution | fixed | |||||||||||||||||||||||
Platform | OS | 5 | OS Version | |||||||||||||||||||||||
Product Version | ||||||||||||||||||||||||||
Target Version | Fixed in Version | RR19Q2 | ||||||||||||||||||||||||
Merge Request Status | ||||||||||||||||||||||||||
Review Assigned To | guilleaer | |||||||||||||||||||||||||
OBNetwork customer | ||||||||||||||||||||||||||
Support ticket | ||||||||||||||||||||||||||
Regression level | Coding ( Testing ) | |||||||||||||||||||||||||
Regression date | 2018-10-16 | |||||||||||||||||||||||||
Regression introduced in release | pi | |||||||||||||||||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/7e8784db93445ce848d86fa2766e0f6922664476 [^] | |||||||||||||||||||||||||
Triggers an Emergency Pack | No | |||||||||||||||||||||||||
Summary | 0039780: Giftcards are not consumed in a reimburse until the related cash management is finally processed in the server | |||||||||||||||||||||||||
Description | Whenever a giftcard is used from WebPOS (a payment is added, or the giftcard is returned), a giftcard transaction is created in the backend database to prevent using the giftcard more times than it is intended. When a giftcard is reimbursed, however, this is no longer the case, and the giftcard is not closed until the reimburse cash management is finally processed by the server. If, by any reason, the cash management is not immediately processed, it would be possible to consume the giftcard or do another reimburse. | |||||||||||||||||||||||||
Steps To Reproduce | 1. Login in webpos in an instance with giftcards installed (i.e. livebuilds modules environment) 2. Create a gift certificate: *Menu > Create Gift Certificate *Select 'Refund the Difference' as Category. *Fill rest of fields as required *Click on Apply 3. Click on Menu > Cash Management 4. Click on Reimburse 5. Select the created Gift Certificate and click on Apply 6. Add an amount to reimburse 7. Select the payment method to reimburse 8. In the server code, set a breakpoint in the ProcessCashMgmt class, inside the saveRecord method. 8. Finally click on Done Verify that the giftcard will remain open/not consumed until the breakpoint is removed. | |||||||||||||||||||||||||
Proposed Solution | In the commit which introduced the issue [1] the payment list is iterated (OB.MobileApp.model.get('payments')) and each element's id is compared with an id from the cash management model. The problem is that the elements inside OB.MobileApp.model.get('payments') don't have an id, it is needed to go into the payment inside the element to get the correct id. Basically: Change from: return payment.id === dropsdeps.at(index).get('paymentMethodId') To return payment.payment.id === dropsdeps.at(index).get('paymentMethodId') [1] https://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/7e8784db93445ce848d86fa2766e0f6922664476 [^] | |||||||||||||||||||||||||
Additional Information | ||||||||||||||||||||||||||
Tags | No tags attached. | |||||||||||||||||||||||||
Relationships |
| |||||||||||||||||||||||||
Attached Files | ||||||||||||||||||||||||||
Issue History | ||||||||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||||||||
2018-12-11 15:46 | aaroncalero | New Issue | ||||||||||||||||||||||||
2018-12-11 15:46 | aaroncalero | Assigned To | => Retail | |||||||||||||||||||||||
2018-12-11 15:46 | aaroncalero | Resolution time | => 1545692400 | |||||||||||||||||||||||
2018-12-11 15:46 | aaroncalero | Regression level | => Coding ( Testing ) | |||||||||||||||||||||||
2018-12-11 15:46 | aaroncalero | Regression date | => 2018-10-16 | |||||||||||||||||||||||
2018-12-11 15:46 | aaroncalero | Regression introduced in release | => pi | |||||||||||||||||||||||
2018-12-11 15:46 | aaroncalero | Regression introduced by commit | => https://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/7e8784db93445ce848d86fa2766e0f6922664476 [^] | |||||||||||||||||||||||
2018-12-11 15:46 | aaroncalero | Triggers an Emergency Pack | => No | |||||||||||||||||||||||
2018-12-11 16:02 | aaroncalero | Note Added: 0108399 | ||||||||||||||||||||||||
2018-12-11 17:31 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||||||||||||||||
2018-12-11 17:31 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||||||||||||||||
2018-12-12 11:13 | hgbot | Checkin | ||||||||||||||||||||||||
2018-12-12 11:13 | hgbot | Note Added: 0108545 | ||||||||||||||||||||||||
2018-12-12 13:27 | ranjith_qualiantech_com | Status | scheduled => resolved | |||||||||||||||||||||||
2018-12-12 13:27 | ranjith_qualiantech_com | Resolution | open => fixed | |||||||||||||||||||||||
2018-12-12 13:31 | aaroncalero | Note Edited: 0108399 | bug_revision_view_page.php?bugnote_id=0108399#r18027 | |||||||||||||||||||||||
2018-12-12 13:35 | ranjith_qualiantech_com | Relationship added | related to 0039684 | |||||||||||||||||||||||
2018-12-12 13:35 | ranjith_qualiantech_com | Relationship added | related to 0039704 | |||||||||||||||||||||||
2018-12-24 13:05 | marvintm | Review Assigned To | => marvintm | |||||||||||||||||||||||
2018-12-24 13:05 | marvintm | Status | resolved => closed | |||||||||||||||||||||||
2018-12-24 13:05 | marvintm | Fixed in Version | => RR19Q1 | |||||||||||||||||||||||
2019-01-03 07:56 | ranjith_qualiantech_com | Note Added: 0108799 | ||||||||||||||||||||||||
2019-01-03 07:56 | ranjith_qualiantech_com | Status | closed => new | |||||||||||||||||||||||
2019-01-03 07:56 | ranjith_qualiantech_com | Resolution | fixed => open | |||||||||||||||||||||||
2019-01-03 07:56 | ranjith_qualiantech_com | Fixed in Version | RR19Q1 => | |||||||||||||||||||||||
2019-01-03 07:56 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||||||||||||||||
2019-01-03 09:55 | hgbot | Checkin | ||||||||||||||||||||||||
2019-01-03 09:55 | hgbot | Note Added: 0108808 | ||||||||||||||||||||||||
2019-01-03 12:20 | hgbot | Checkin | ||||||||||||||||||||||||
2019-01-03 12:20 | hgbot | Note Added: 0108812 | ||||||||||||||||||||||||
2019-01-03 14:49 | ranjith_qualiantech_com | Status | scheduled => resolved | |||||||||||||||||||||||
2019-01-03 14:49 | ranjith_qualiantech_com | Resolution | open => fixed | |||||||||||||||||||||||
2019-01-04 00:16 | guilleaer | Review Assigned To | marvintm => guilleaer | |||||||||||||||||||||||
2019-01-04 00:16 | guilleaer | Status | resolved => closed | |||||||||||||||||||||||
2019-01-04 00:16 | guilleaer | Fixed in Version | => RR19Q2 | |||||||||||||||||||||||
2019-01-04 07:52 | ranjith_qualiantech_com | Relationship added | related to 0038771 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|