Fixed indentation issue in pull # 11748
This commit is contained in:
parent
d4359faa31
commit
171e5af995
@ -464,7 +464,7 @@ erpnext.pos.PointOfSale = class PointOfSale {
|
|||||||
if (r.message) {
|
if (r.message) {
|
||||||
this.frm.meta.default_print_format = r.message.print_format || 'POS Invoice';
|
this.frm.meta.default_print_format = r.message.print_format || 'POS Invoice';
|
||||||
this.frm.allow_edit_rate = r.message.allow_edit_rate;
|
this.frm.allow_edit_rate = r.message.allow_edit_rate;
|
||||||
this.frm.allow_edit_discount = r.message.allow_edit_discount;
|
this.frm.allow_edit_discount = r.message.allow_edit_discount;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -715,7 +715,7 @@ class POSCart {
|
|||||||
this.customer_field.set_value(this.frm.doc.customer);
|
this.customer_field.set_value(this.frm.doc.customer);
|
||||||
}
|
}
|
||||||
|
|
||||||
disable_numpad_control() {
|
disable_numpad_control() {
|
||||||
if(!this.frm.allow_edit_rate && !this.frm.allow_edit_discount) {
|
if(!this.frm.allow_edit_rate && !this.frm.allow_edit_discount) {
|
||||||
return ['Rate', 'Disc'];
|
return ['Rate', 'Disc'];
|
||||||
}
|
}
|
||||||
@ -1316,15 +1316,15 @@ class NumberPad {
|
|||||||
|
|
||||||
this.set_class();
|
this.set_class();
|
||||||
|
|
||||||
if(this.disable_btns) {
|
if(this.disable_btns) {
|
||||||
this.disable_btns.forEach((btn) => {
|
this.disable_btns.forEach((btn) => {
|
||||||
const $btn = this.get_btn(btn);
|
const $btn = this.get_btn(btn);
|
||||||
$btn.prop("disabled", true)
|
$btn.prop("disabled", true)
|
||||||
$btn.hover(() => {
|
$btn.hover(() => {
|
||||||
$btn.css('cursor','not-allowed');
|
$btn.css('cursor','not-allowed');
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
set_class() {
|
set_class() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user