chore: default should return 3 elements

(cherry picked from commit fc46ebcd7c)
This commit is contained in:
ruthra kumar
2024-08-29 17:37:32 +05:30
committed by Mergify
parent 9a3e9c4c9a
commit b28ff25180

View File

@@ -591,7 +591,7 @@ def update_accounting_dimensions(round_off_gle):
def get_round_off_account_and_cost_center(company, voucher_type, voucher_no, use_company_default=False):
round_off_account, round_off_cost_center, round_off_for_opening = frappe.get_cached_value(
"Company", company, ["round_off_account", "round_off_cost_center", "round_off_for_opening"]
) or [None, None]
) or [None, None, None]
# Use expense account as fallback
if not round_off_account: