|
|
@ -10,23 +10,23 @@ patch(ProductScreen.prototype, { |
|
|
|
}, |
|
|
|
getNumpadButtons() { |
|
|
|
return [ |
|
|
|
{ value: "1", disabled: this.pos.cashier.disable_numpad }, |
|
|
|
{ value: "2", disabled: this.pos.cashier.disable_numpad }, |
|
|
|
{ value: "3", disabled: this.pos.cashier.disable_numpad }, |
|
|
|
{ value: "quantity", text: "Qty", disabled: this.pos.cashier.disable_qty }, |
|
|
|
{ value: "4", disabled: this.pos.cashier.disable_numpad }, |
|
|
|
{ value: "5", disabled: this.pos.cashier.disable_numpad }, |
|
|
|
{ value: "6", disabled: this.pos.cashier.disable_numpad }, |
|
|
|
{ value: "discount", text: "% Disc", disabled: !this.pos.config.manual_discount || this.pos.cashier.disable_discount }, |
|
|
|
{ value: "7", disabled: this.pos.cashier.disable_numpad }, |
|
|
|
{ value: "8", disabled: this.pos.cashier.disable_numpad }, |
|
|
|
{ value: "9", disabled: this.pos.cashier.disable_numpad }, |
|
|
|
{ value: "price", text: "Price", disabled: !this.pos.cashierHasPriceControlRights() || this.pos.cashier.disable_price }, |
|
|
|
{ value: "-", text: "+/-", disabled: this.pos.cashier.disable_plus_minus }, |
|
|
|
{ value: "0", disabled: this.pos.cashier.disable_numpad }, |
|
|
|
{ value: this.env.services.localization.decimalPoint, disabled: this.pos.cashier.disable_numpad }, |
|
|
|
{ value: "1", disabled: this.pos.cashier?.disable_numpad }, |
|
|
|
{ value: "2", disabled: this.pos.cashier?.disable_numpad }, |
|
|
|
{ value: "3", disabled: this.pos.cashier?.disable_numpad }, |
|
|
|
{ value: "quantity", text: "Qty", disabled: this.pos.cashier?.disable_qty }, |
|
|
|
{ value: "4", disabled: this.pos.cashier?.disable_numpad }, |
|
|
|
{ value: "5", disabled: this.pos.cashier?.disable_numpad }, |
|
|
|
{ value: "6", disabled: this.pos.cashier?.disable_numpad }, |
|
|
|
{ value: "discount", text: "% Disc", disabled: !this.pos.config?.manual_discount || this.pos.cashier?.disable_discount }, |
|
|
|
{ value: "7", disabled: this.pos.cashier?.disable_numpad }, |
|
|
|
{ value: "8", disabled: this.pos.cashier?.disable_numpad }, |
|
|
|
{ value: "9", disabled: this.pos.cashier?.disable_numpad }, |
|
|
|
{ value: "price", text: "Price", disabled: !this.pos.cashierHasPriceControlRights() || this.pos.cashier?.disable_price }, |
|
|
|
{ value: "-", text: "+/-", disabled: this.pos.cashier?.disable_plus_minus }, |
|
|
|
{ value: "0", disabled: this.pos.cashier?.disable_numpad }, |
|
|
|
{ value: this.env.services.localization.decimalPoint, disabled: this.pos.cashier?.disable_numpad }, |
|
|
|
// Unicode: https://www.compart.com/en/unicode/U+232B
|
|
|
|
{ value: "Backspace", text: "⌫", disabled: this.pos.cashier.disable_remove_button }, |
|
|
|
{ value: "Backspace", text: "⌫", disabled: this.pos.cashier?.disable_remove_button }, |
|
|
|
].map((button) => ({ |
|
|
|
...button, |
|
|
|
class: this.pos.numpadMode === button.value ? "active border-primary" : "", |
|
|
|