mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
@@ -133,7 +133,7 @@ def get_party_tax_withholding_details(inv, tax_withholding_category=None):
|
|||||||
def get_cost_center(inv):
|
def get_cost_center(inv):
|
||||||
cost_center = frappe.get_cached_value("Company", inv.company, "cost_center")
|
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
|
cost_center = inv.get("taxes")[0].cost_center
|
||||||
|
|
||||||
return cost_center
|
return cost_center
|
||||||
|
|||||||
Reference in New Issue
Block a user