fix: consolidated report issue #28035

fix: consolidated report issue
This commit is contained in:
rohitwaghchaure 2021-10-20 21:08:15 +05:30 committed by GitHub
parent 311bafb23b
commit 871cb1157f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -115,7 +115,7 @@ def prepare_companywise_opening_balance(asset_data, liability_data, equity_data,
# opening_value = Aseet - liability - equity
for data in [asset_data, liability_data, equity_data]:
account_name = get_root_account_name(data[0].root_type, company)
opening_value += get_opening_balance(account_name, data, company)
opening_value += (get_opening_balance(account_name, data, company) or 0.0)
opening_balance[company] = opening_value