# HG changeset patch
# User Prakash M <prakash@qualiantech.com>
# Date 1463059552 -19800
#      Thu May 12 18:55:52 2016 +0530
# Node ID db64db79dbbd9ca0c050483b5f019ac7f779858c
# Parent  6956804ea9c51d8343bb21d437277e594532f9c8
Fixes Issue 1037 : Return Change Issue for Cash Payment

diff --git a/web/org.openbravo.mobile.core/source/component/ob-keyboard.js b/web/org.openbravo.mobile.core/source/component/ob-keyboard.js
--- a/web/org.openbravo.mobile.core/source/component/ob-keyboard.js
+++ b/web/org.openbravo.mobile.core/source/component/ob-keyboard.js
@@ -657,6 +657,7 @@
       } else {
         // Statefull commands: quantity, price, discounts, payments ...
         if (txt && this.status === '') { // Short cut: type + action
+          this.setStatus(cmd);
           this.execCommand(cmd, txt);
         } else if (this.status === cmd && txt) {
           this.execCommand(cmd, txt);
