|
@ -92,14 +92,11 @@ odoo.define('pos_keyboard.pos', function (require) { |
|
|
var type = this.pos.keypad.type; |
|
|
var type = this.pos.keypad.type; |
|
|
if (data.type === type.numchar){ |
|
|
if (data.type === type.numchar){ |
|
|
this.state.appendNewChar(data.val); |
|
|
this.state.appendNewChar(data.val); |
|
|
} |
|
|
|
|
|
else if (data.type === type.bmode) { |
|
|
|
|
|
|
|
|
} else if (data.type === type.bmode) { |
|
|
this.state.changeMode(data.val); |
|
|
this.state.changeMode(data.val); |
|
|
} |
|
|
|
|
|
else if (data.type === type.sign){ |
|
|
|
|
|
|
|
|
} else if (data.type === type.sign){ |
|
|
this.clickSwitchSign(); |
|
|
this.clickSwitchSign(); |
|
|
} |
|
|
|
|
|
else if (data.type === type.backspace){ |
|
|
|
|
|
|
|
|
} else if (data.type === type.backspace){ |
|
|
this.clickDeleteLastChar(); |
|
|
this.clickDeleteLastChar(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
@ -259,7 +256,9 @@ odoo.define('pos_keyboard.pos', function (require) { |
|
|
timeStamp = new Date().getTime(); |
|
|
timeStamp = new Date().getTime(); |
|
|
|
|
|
|
|
|
setTimeout(function(){ |
|
|
setTimeout(function(){ |
|
|
if (ok) {self.action_callback(self.data);} |
|
|
|
|
|
|
|
|
if (ok) { |
|
|
|
|
|
self.action_callback(self.data); |
|
|
|
|
|
} |
|
|
}, 50); |
|
|
}, 50); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|