[Fix] Resolved issues suggested by Codacy
This commit is contained in:
parent
8f3d394485
commit
d7da89bf5a
@ -480,17 +480,17 @@ erpnext.pos.PointOfSale = class PointOfSale {
|
||||
me.frm.doc["allow_print_before_pay"] = 0;
|
||||
return new Promise(resolve => {
|
||||
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:{
|
||||
pos_profile : me.frm.doc.pos_profile
|
||||
}
|
||||
pos_profile:me.frm.doc.pos_profile
|
||||
}
|
||||
}).then((r) => {
|
||||
me.frm.doc["allow_print_before_pay"] = r.message;
|
||||
this.set_form_action();
|
||||
resolve();
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
prepare_menu() {
|
||||
var me = this;
|
||||
|
@ -96,7 +96,7 @@ def submit_invoice(doc,islocal_dummy):
|
||||
doc = frappe.get_doc('Sales Invoice',args["name"])
|
||||
else:
|
||||
doc = frappe.new_doc('Sales Invoice')
|
||||
|
||||
|
||||
doc.update(args)
|
||||
doc.run_method("set_missing_values")
|
||||
doc.run_method("calculate_taxes_and_totals")
|
||||
|
Loading…
x
Reference in New Issue
Block a user