commit | 26277cfcf3e7bbb6b14ceb42ee77e740f2825f20 | [log] [tgz] |
---|---|---|
author | Deepesh Garg <deepeshgarg6@gmail.com> | Wed Dec 14 21:22:48 2022 +0530 |
committer | Deepesh Garg <deepeshgarg6@gmail.com> | Wed Dec 14 21:22:48 2022 +0530 |
tree | 6784f9470566dddd26d6ca2debd07fc23817512b | |
parent | 973ef33eb5ba0e173978a9c7452bb0861b272077 [diff] |
chore: resolve errors in test
diff --git a/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py b/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py index a9d870d..b834d14 100644 --- a/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py +++ b/erpnext/accounts/doctype/tax_withholding_category/tax_withholding_category.py
@@ -133,7 +133,7 @@ def get_cost_center(inv): cost_center = frappe.get_cached_value("Company", inv.company, "cost_center") - if len(inv.get("taxes")) > 0: + if len(inv.get("taxes", [])) > 0: cost_center = inv.get("taxes")[0].cost_center return cost_center