This question has been flagged

Hello everyone,

I want to replace in Payment Screen of the pos the +10, +20, +50 to +1000, +5000, +10000.

for that i'm trying to inherit the NumberBuffer class to add my elements in the const Set INPUT_KEYS.

var NumberBuffer = require('point_of_sale.NumberBuffer');

NumberBuffer.include({
init: function() {
var self = this;
this._super.apply(this, arguments);
this.INPUT_KEYS.add('+1000');
this.INPUT_KEYS.add('+5000');
this.INPUT_KEYS.add('+10000');
},});

this code give me error that : NumberBuffer.include is not a function TypeError: NumberBuffer.include is not a function 

so i don't what is the best way to achieve my goal.

Thanks for any suggestion


Avatar
Discard