fix: Check for Company before trying to fetch party details

This commit is contained in:
marination
2020-07-03 22:03:25 +05:30
parent 4bff9d8663
commit e27b996e38
2 changed files with 45 additions and 37 deletions

View File

@@ -388,7 +388,7 @@ def set_taxes(party, party_type, posting_date, company, customer_group=None, sup
from erpnext.accounts.doctype.tax_rule.tax_rule import get_tax_template, get_party_details
args = {
party_type.lower(): party,
"company": company
"company": company
}
if tax_category: