Merge pull request #33406 from deepeshgarg007/cs_cf_report_fix
fix: Consolidated financial report
This commit is contained in:
commit
76be35aaea
@ -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):
|
def get_account_type_based_data(account_type, companies, fiscal_year, filters):
|
||||||
data = {}
|
data = {}
|
||||||
total = 0
|
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:
|
for company in companies:
|
||||||
amount = get_account_type_based_gl_data(
|
amount = get_account_type_based_gl_data(company, filters)
|
||||||
company, fiscal_year.year_start_date, fiscal_year.year_end_date, account_type, filters
|
|
||||||
)
|
|
||||||
|
|
||||||
if amount and account_type == "Depreciation":
|
if amount and account_type == "Depreciation":
|
||||||
amount *= -1
|
amount *= -1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user