Skip to content

Commit

Permalink
fix: consolidated report issue #28035 (#28039)
Browse files Browse the repository at this point in the history
fix: consolidated report issue
(cherry picked from commit 871cb11)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Oct 20, 2021
1 parent 5ba315e commit 4f5d678
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4f5d678

Please sign in to comment.