[Fix] Resolved issues suggested by Codacy
This commit is contained in:
parent
8f3d394485
commit
d7da89bf5a
@ -480,9 +480,9 @@ erpnext.pos.PointOfSale = class PointOfSale {
|
|||||||
me.frm.doc["allow_print_before_pay"] = 0;
|
me.frm.doc["allow_print_before_pay"] = 0;
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
return this.frm.call({
|
return this.frm.call({
|
||||||
method: "erpnext.selling.page.point_of_sale.point_of_sale.fetch_pos_profile_detail",
|
method:"erpnext.selling.page.point_of_sale.point_of_sale.fetch_pos_profile_detail",
|
||||||
args:{
|
args:{
|
||||||
pos_profile : me.frm.doc.pos_profile
|
pos_profile:me.frm.doc.pos_profile
|
||||||
}
|
}
|
||||||
}).then((r) => {
|
}).then((r) => {
|
||||||
me.frm.doc["allow_print_before_pay"] = r.message;
|
me.frm.doc["allow_print_before_pay"] = r.message;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user