# HG changeset patch
# User Ranjith S R <ranjith@qualiantech.com>
# Date 1450953741 -19800
# Node ID eac100e286cbd178a37bf1b17b29c062a4db4055
# Parent  3c9defa5c34408063cdc91d1a45a10b077e99116
Related to issue 31718 : Display Gift Card Payments if any Custom Payment added

diff --git a/web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js b/web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
--- a/web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
+++ b/web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
@@ -305,11 +305,9 @@
       btncomponent = this.getButtonComponent(sidebutton);
       if (countbuttons++ < paymentsbuttons) {
         this.createComponent(btncomponent);
-      } else if (this.sideButtons.length !== OB.OBPOSPointOfSale.UI.PaymentMethods.prototype.sideButtons.length) {
+      } else {
         OB.OBPOSPointOfSale.UI.PaymentMethods.prototype.sideButtons.push(btncomponent);
         dialogbuttons[sidebutton.command] = sidebutton.label;
-      } else {
-        dialogbuttons[sidebutton.command] = sidebutton.label;
       }
     }, this);
 
