Skip to content

Commit

Permalink
fix: Consolidated financial report
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Dec 20, 2022
1 parent a86b8ea commit 16ce411
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,12 @@ def get_cash_flow_data(fiscal_year, companies, filters):
def get_account_type_based_data(account_type, companies, fiscal_year, filters):
data = {}
total = 0
filters.account_type = account_type
filters.start_date = fiscal_year.year_start_date
filters.end_date = fiscal_year.year_end_date

for company in companies:
amount = get_account_type_based_gl_data(
company, fiscal_year.year_start_date, fiscal_year.year_end_date, account_type, filters
)
amount = get_account_type_based_gl_data(company, filters)

if amount and account_type == "Depreciation":
amount *= -1
Expand Down

0 comments on commit 16ce411

Please sign in to comment.