From 29a471a24539b4fc03765740386dd2b332b21253 Mon Sep 17 00:00:00 2001
From: Rafael Queralta <rafaelcuba81@gmail.com>
Date: Fri, 26 Mar 2021 18:35:03 -0400
Subject: [PATCH] Fix BUG-46049: Payment DialogButton should be updated with
 button command instead of searchkey

---
 .../js/pointofsale/view/keyboard-toolbars.js                    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
index be03423e7..3c1e7c510 100644
--- a/web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
+++ b/web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboard-toolbars.js
@@ -310,7 +310,7 @@ enyo.kind({
       this.createComponent(btncomponent);
     } else {
       this.addSideButton(btncomponent);
-      dialogbuttons[payment.payment.searchKey] = payment.payment._identifier;
+      dialogbuttons[btncomponent.btn.command] = btncomponent.btn.label;
     }
   },
   addSideButton: function(btncomponent) {
-- 
2.28.0

