Merge pull request #14083 from frappe/codingCoffee-patch-3

spaces to tabs
This commit is contained in:
Manas Solanki 2018-05-16 16:25:25 +05:30 committed by GitHub
commit 028e2ad246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1028,7 +1028,7 @@ def update_linked_invoice(doctype, name, inter_company_invoice_reference):
def unlink_inter_company_invoice(doctype, name, inter_company_invoice_reference):
ref_doc = "Purchase Invoice" if doctype == "Sales Invoice" else "Sales Invoice"
if inter_company_invoice_reference:
frappe.db.set_value(doctype, name,\
frappe.db.set_value(doctype, name,\
"inter_company_invoice_reference", "")
frappe.db.set_value(ref_doc, inter_company_invoice_reference,\
"inter_company_invoice_reference", "")