Openbravo Issue Tracking System - Retail Modules | ||||||||||||||||||||||||||
View Issue Details | ||||||||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||||||||||||||||
0031718 | Retail Modules | Gift cards and gift vouchers | public | 2015-12-15 12:29 | 2016-01-28 16:45 | |||||||||||||||||||||
Reporter | malsasua | |||||||||||||||||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||||||||||||||||
Priority | high | Severity | major | Reproducibility | always | |||||||||||||||||||||
Status | closed | Resolution | fixed | |||||||||||||||||||||||
Platform | OS | 20 | OS Version | Community Appliance | ||||||||||||||||||||||
Product Version | ||||||||||||||||||||||||||
Target Version | Fixed in Version | RR16Q2 | ||||||||||||||||||||||||
Merge Request Status | ||||||||||||||||||||||||||
Review Assigned To | marvintm | |||||||||||||||||||||||||
OBNetwork customer | OBPS | |||||||||||||||||||||||||
Support ticket | 39643 | |||||||||||||||||||||||||
Regression level | ||||||||||||||||||||||||||
Regression date | ||||||||||||||||||||||||||
Regression introduced in release | ||||||||||||||||||||||||||
Regression introduced by commit | ||||||||||||||||||||||||||
Triggers an Emergency Pack | No | |||||||||||||||||||||||||
Summary | 0031718: [SERQA 486]payment type "gift card" is not displayed when there is 6 payment methods | |||||||||||||||||||||||||
Description | A) When the amount of buttons added from external modules* matches the number of "core" buttons shown on the 'More payments' popup, external payments are not added to the 'More payments' popup. E.g.: if the core configuration of a terminal includes 6 payments (4 payments will be directly shown and 2 will be on the 'More payments' popup), and the user installs the Giftcards and Vouchers module (which adds 2 payment buttons), the giftcard payment buttons will not be shown in web pos B) When one terminal is configured with 6 or more payment methods, the payment method gift card is not displayed | |||||||||||||||||||||||||
Steps To Reproduce | A) Install the Giftcards and Vouchers module Configure a POS Terminal in backend with 6 payment methods. Login in web pos. Create a ticket and add a product. Click on the Total Amount button to pay the ticket. Verify that 4 payment method buttons are shown, plus the 'More' button. Click on the 'More' button and verify that only the 2 payment methods defined in the terminal are shown. The 'Gift Card' and 'Gift Voucher' buttons are not shown. B) F&B . in backoffice terminal VBS-1 . add two new payment methods (name 1 and 2) . in POS go to VBS-1 terminal . new receipt, add one line, pay it: in the payment methods, if you click in "more..." button, gift card button is not displayed (see attachment) in backoffice, deactivate the payment method with name 2 in POS, create new receipt, add one line and pay it: in the payment methods, if you click "more..." button, Gift Card button is displayed (see attachment2) | |||||||||||||||||||||||||
Proposed Solution | A) The following code adds external buttons to the payment button list: enyo.forEach(this.sideButtons, function (sidebutton) { btncomponent = this.getButtonComponent(sidebutton); if (countbuttons++ < paymentsbuttons) { this.createComponent(btncomponent); } else if (this.sideButtons.length !== OB.OBPOSPointOfSale.UI.PaymentMethods.prototype.sideButtons.length) { OB.OBPOSPointOfSale.UI.PaymentMethods.prototype.sideButtons.push(btncomponent); dialogbuttons[sidebutton.command] = sidebutton.label; } else { dialogbuttons[sidebutton.command] = sidebutton.label; } }, this); This condition: } else if (this.sideButtons.length !== OB.OBPOSPointOfSale.UI.PaymentMethods.prototype.sideButtons.length) { should probably be removed, and the logic inside that else-if moved to the final else. | |||||||||||||||||||||||||
Additional Information | ||||||||||||||||||||||||||
Tags | SER-QA | |||||||||||||||||||||||||
Relationships |
| |||||||||||||||||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=8810&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=8811&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=8852&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=8853&type=bug | |||||||||||||||||||||||||
Issue History | ||||||||||||||||||||||||||
Date Modified | Username | Field | Change | |||||||||||||||||||||||
2015-12-15 12:29 | malsasua | New Issue | ||||||||||||||||||||||||
2015-12-15 12:29 | malsasua | Assigned To | => Retail | |||||||||||||||||||||||
2015-12-15 12:29 | malsasua | OBNetwork customer | => Yes | |||||||||||||||||||||||
2015-12-15 12:29 | malsasua | Support ticket | => 39643 | |||||||||||||||||||||||
2015-12-15 12:29 | malsasua | Resolution time | => 1452898800 | |||||||||||||||||||||||
2015-12-15 12:29 | malsasua | Triggers an Emergency Pack | => No | |||||||||||||||||||||||
2015-12-15 12:29 | malsasua | File Added: 1.png | ||||||||||||||||||||||||
2015-12-15 12:29 | malsasua | File Added: 2.png | ||||||||||||||||||||||||
2015-12-17 09:56 | Orekaria | Status | new => acknowledged | |||||||||||||||||||||||
2015-12-17 21:54 | Orekaria | Relationship added | related to 0031746 | |||||||||||||||||||||||
2015-12-18 08:09 | aaroncalero | Relationship replaced | has duplicate 0031746 | |||||||||||||||||||||||
2015-12-18 13:03 | Orekaria | Description Updated | bug_revision_view_page.php?rev_id=10511#r10511 | |||||||||||||||||||||||
2015-12-18 13:03 | Orekaria | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=10513#r10513 | |||||||||||||||||||||||
2015-12-18 13:03 | Orekaria | Proposed Solution updated | ||||||||||||||||||||||||
2015-12-18 13:05 | Orekaria | Tag Attached: SER-QA | ||||||||||||||||||||||||
2015-12-18 14:42 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||||||||||||||||
2015-12-18 14:42 | ranjith_qualiantech_com | Status | acknowledged => scheduled | |||||||||||||||||||||||
2015-12-24 11:46 | ranjith_qualiantech_com | File Added: Issue #31718 Source 5548.patch | ||||||||||||||||||||||||
2015-12-24 11:46 | ranjith_qualiantech_com | File Added: Issue #31718 Test 4852.patch | ||||||||||||||||||||||||
2015-12-28 18:04 | agete | Summary | payment type "gift card" is not displayed when there is 6 payment methods => [SERQA 486]payment type "gift card" is not displayed when there is 6 payment methods | |||||||||||||||||||||||
2016-01-05 07:15 | hgbot | Checkin | ||||||||||||||||||||||||
2016-01-05 07:15 | hgbot | Note Added: 0083127 | ||||||||||||||||||||||||
2016-01-05 07:15 | hgbot | Status | scheduled => resolved | |||||||||||||||||||||||
2016-01-05 07:15 | hgbot | Resolution | open => fixed | |||||||||||||||||||||||
2016-01-05 07:15 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/910c9f789e68c05f380ff8f7a095d18af1c05639 [^] | |||||||||||||||||||||||
2016-01-05 07:16 | hgbot | Checkin | ||||||||||||||||||||||||
2016-01-05 07:16 | hgbot | Note Added: 0083129 | ||||||||||||||||||||||||
2016-01-07 14:17 | Orekaria | Relationship added | related to 0028629 | |||||||||||||||||||||||
2016-01-26 18:23 | marvintm | Review Assigned To | => marvintm | |||||||||||||||||||||||
2016-01-26 18:23 | marvintm | Status | resolved => closed | |||||||||||||||||||||||
2016-01-26 18:23 | marvintm | Fixed in Version | => RR16Q2 | |||||||||||||||||||||||
2016-01-28 12:44 | Orekaria | Relationship added | has duplicate 0032021 | |||||||||||||||||||||||
2016-01-28 13:41 | marvintm | Relationship deleted | has duplicate 0032021 | |||||||||||||||||||||||
2016-01-28 15:27 | hgbot | Checkin | ||||||||||||||||||||||||
2016-01-28 15:27 | hgbot | Note Added: 0083678 | ||||||||||||||||||||||||
2016-01-28 15:27 | hgbot | Status | closed => resolved | |||||||||||||||||||||||
2016-01-28 15:27 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/910c9f789e68c05f380ff8f7a095d18af1c05639 [^] => http://code.openbravo.com/retail/backports/3.0RR15Q4.2/org.openbravo.retail.posterminal/rev/4d9a826363945b1b244099295b1ab9ffc637ff7e [^] | |||||||||||||||||||||||
2016-01-28 16:45 | marvintm | Status | resolved => closed | |||||||||||||||||||||||
2016-02-04 12:18 | Orekaria | Relationship added | has duplicate 0032021 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|