fix: To allow creation of sales invoice without customer

This commit is contained in:
Nabin Hait
2019-05-16 13:41:25 +05:30
parent cc4f13a862
commit b2d9ffa4ca

View File

@@ -1166,6 +1166,8 @@ class SalesInvoice(SellingController):
self.set_missing_values(for_validate = True)
def validate_inter_company_party(doctype, party, company, inter_company_invoice_reference):
if not party:
return
if doctype == "Sales Invoice":
partytype, ref_partytype, internal = "Customer", "Supplier", "is_internal_customer"
ref_doc = "Purchase Invoice"