Can anyone give me minimal code so that any method I can override for JS method?
changeMode(mode) {
if (!this.hasPriceControlRights && mode === 'price' ) {
return;
}
if (!this.hasManualDiscount && mode === 'discount') {
return;
}
this.trigger('set-numpad-mode', { mode });
}