def get_profit_loss_data(fiscal_year, companies, columns, filters): income, expense, net_profit_loss = get_income_expense_data(companies, fiscal_year, filters) data = [] data.extend(income or []) data.extend(expense or []) if net_profit_loss: data.append(net_profit_loss) chart = get_pl_chart_data(filters, columns, income, expense, net_profit_loss) return data, None, chart
def get_profit_loss_data(fiscal_year, companies, columns, filters): income, expense, net_profit_loss = get_income_expense_data(companies, fiscal_year, filters) data = [] data.extend(income or []) data.extend(expense or []) if net_profit_loss: data.append(net_profit_loss) chart = get_pl_chart_data(filters, columns, income, expense, net_profit_loss) return data, None, chart
def get_profit_loss_data(fiscal_year, companies, columns, filters): income, expense, net_profit_loss = get_income_expense_data(companies, fiscal_year, filters) company_currency = get_company_currency(filters) data = [] data.extend(income or []) data.extend(expense or []) if net_profit_loss: data.append(net_profit_loss) chart = get_pl_chart_data(filters, columns, income, expense, net_profit_loss) report_summary = get_pl_summary(companies, '', income, expense, net_profit_loss, company_currency, True) return data, None, chart, report_summary
def get_profit_loss_data(period_list, companies, columns, filters, cost_center_wise=False): income, expense, net_profit_loss = get_income_expense_data( companies, period_list, filters, cost_center_wise=cost_center_wise) data = [] data.extend(income or []) data.extend(expense or []) if net_profit_loss: data.append(net_profit_loss) chart = get_pl_chart_data(filters, columns, income, expense, net_profit_loss) return data, None, chart