Minor changes:Removed extra spaces in py code
diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.js b/erpnext/selling/page/point_of_sale/point_of_sale.js
index bca1c16..876f81a 100644
--- a/erpnext/selling/page/point_of_sale/point_of_sale.js
+++ b/erpnext/selling/page/point_of_sale/point_of_sale.js
@@ -280,7 +280,7 @@
submit_sales_invoice() {
var islocal_dummy = 1;
if(!this.frm.doc.__islocal){
- islocal_dummy = 0;
+ islocal_dummy = 0;
}
frappe.confirm(__("Permanently Submit {0}?", [this.frm.doc.name]), () => {
frappe.call({
@@ -524,14 +524,14 @@
this.page.set_secondary_action(__("Print"), () => {
if(this.frm.doc.docstatus != 1 ){
- this.frm.save();
+ this.frm.save();
setTimeout(() => {this.frm.print_preview.printit(true);}, 1700);
}else{
this.frm.print_preview.printit(true);
}
});
}
-
+
if (this.frm.doc.docstatus == 1) {
this.page.set_primary_action(__("New"), () => {
this.make_new_invoice();
diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.py b/erpnext/selling/page/point_of_sale/point_of_sale.py
index 07dc96f..6ff8fad 100644
--- a/erpnext/selling/page/point_of_sale/point_of_sale.py
+++ b/erpnext/selling/page/point_of_sale/point_of_sale.py
@@ -95,7 +95,7 @@
if islocal_dummy:
doc = frappe.get_doc('Sales Invoice',args["name"])
else:
- doc = frappe.new_doc('Sales Invoice')
+ doc = frappe.new_doc('Sales Invoice')
doc.update(args)
doc.run_method("set_missing_values")