mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
Minor changes:Removed extra spaces in py code
This commit is contained in:
@@ -280,7 +280,7 @@ erpnext.pos.PointOfSale = class PointOfSale {
|
|||||||
submit_sales_invoice() {
|
submit_sales_invoice() {
|
||||||
var islocal_dummy = 1;
|
var islocal_dummy = 1;
|
||||||
if(!this.frm.doc.__islocal){
|
if(!this.frm.doc.__islocal){
|
||||||
islocal_dummy = 0;
|
islocal_dummy = 0;
|
||||||
}
|
}
|
||||||
frappe.confirm(__("Permanently Submit {0}?", [this.frm.doc.name]), () => {
|
frappe.confirm(__("Permanently Submit {0}?", [this.frm.doc.name]), () => {
|
||||||
frappe.call({
|
frappe.call({
|
||||||
@@ -524,14 +524,14 @@ erpnext.pos.PointOfSale = class PointOfSale {
|
|||||||
|
|
||||||
this.page.set_secondary_action(__("Print"), () => {
|
this.page.set_secondary_action(__("Print"), () => {
|
||||||
if(this.frm.doc.docstatus != 1 ){
|
if(this.frm.doc.docstatus != 1 ){
|
||||||
this.frm.save();
|
this.frm.save();
|
||||||
setTimeout(() => {this.frm.print_preview.printit(true);}, 1700);
|
setTimeout(() => {this.frm.print_preview.printit(true);}, 1700);
|
||||||
}else{
|
}else{
|
||||||
this.frm.print_preview.printit(true);
|
this.frm.print_preview.printit(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.frm.doc.docstatus == 1) {
|
if (this.frm.doc.docstatus == 1) {
|
||||||
this.page.set_primary_action(__("New"), () => {
|
this.page.set_primary_action(__("New"), () => {
|
||||||
this.make_new_invoice();
|
this.make_new_invoice();
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ def submit_invoice(doc,islocal_dummy):
|
|||||||
if islocal_dummy:
|
if islocal_dummy:
|
||||||
doc = frappe.get_doc('Sales Invoice',args["name"])
|
doc = frappe.get_doc('Sales Invoice',args["name"])
|
||||||
else:
|
else:
|
||||||
doc = frappe.new_doc('Sales Invoice')
|
doc = frappe.new_doc('Sales Invoice')
|
||||||
|
|
||||||
doc.update(args)
|
doc.update(args)
|
||||||
doc.run_method("set_missing_values")
|
doc.run_method("set_missing_values")
|
||||||
|
|||||||
Reference in New Issue
Block a user