Fix utils.py

This commit is contained in:
Shreya
2018-06-05 16:49:29 +05:30
parent dabe21051c
commit 2ad81726d5
2 changed files with 5 additions and 5 deletions

View File

@@ -90,11 +90,11 @@ def get_regional_address_details(out, doctype, company):
if doctype in ("Sales Invoice", "Delivery Note"):
master_doctype = "Sales Taxes and Charges Template"
if not (out.company_gstin or out.place_of_supply):
if not out.company_gstin:
return
else:
elif doctype == "Purchase Invoice":
master_doctype = "Purchase Taxes and Charges Template"
if not (out.supplier_gstin or out.place_of_supply):
if not out.supplier_gstin:
return
if doctype in ("Sales Invoice", "Delivery Note") and out.company_gstin[:2] != out.place_of_supply[:2]\