Merge pull request #14368 from shreyashah115/fix-trav

Some more travis fixes
This commit is contained in:
rohitwaghchaure
2018-06-07 14:14:33 +05:30
committed by GitHub
14 changed files with 283 additions and 228 deletions

View File

@@ -89,11 +89,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