Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031746Retail ModulesWeb POSpublic2015-12-17 18:072015-12-18 08:10
aaroncalero 
Retail 
normalmajoralways
closedduplicate 
5
 
 
No
0031746: [SERQA 486] Payment buttons added from external modules missing under certain circumstances
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
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.
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.
SER-QA
duplicate of defect 0031718 closed ranjith_qualiantech_com [SERQA 486]payment type "gift card" is not displayed when there is 6 payment methods 
Issue History
2015-12-17 18:07aaroncaleroNew Issue
2015-12-17 18:07aaroncaleroAssigned To => Retail
2015-12-17 18:07aaroncaleroResolution time => 1451516400
2015-12-17 18:07aaroncaleroTriggers an Emergency Pack => No
2015-12-17 18:11aaroncaleroSummaryPayment buttons added from external modules missing under certain circumstances => [SERQA 486] Payment buttons added from external modules missing under certain circumstances
2015-12-17 18:12aaroncaleroTag Attached: SER-QA
2015-12-17 21:54OrekariaRelationship addedrelated to 0031718
2015-12-18 08:09aaroncaleroRelationship replacedduplicate of 0031718
2015-12-18 08:10aaroncaleroStatusnew => closed
2015-12-18 08:10aaroncaleroResolutionopen => duplicate

There are no notes attached to this issue.