[report] Financial Statements: Accumulated periodic balance based on filters

This commit is contained in:
Nabin Hait
2016-02-02 19:05:30 +05:30
parent 82cef59fb3
commit bd7f48cfd4
7 changed files with 126 additions and 113 deletions

View File

@@ -30,24 +30,14 @@ erpnext.financial_statements = {
],
"default": "Yearly",
"reqd": 1
},
{
"fieldname": "accumulated_value",
"label": __("Accumulated Values"),
"fieldtype": "Check"
}
,
{
"fieldname": "accumulated_value",
"label": __("Accumulated Values"),
"fieldtype": "Check"
}
}
],
"formatter": function(row, cell, value, columnDef, dataContext, default_formatter) {
if (columnDef.df.fieldname=="account") {
value = dataContext.account_name;
columnDef.df.link_onclick = "erpnext.financial_statements.open_general_ledger(" + JSON.stringify(dataContext) + ")";
columnDef.df.link_onclick =
"erpnext.financial_statements.open_general_ledger(" + JSON.stringify(dataContext) + ")";
columnDef.df.is_tree = true;
}
@@ -70,8 +60,8 @@ erpnext.financial_statements = {
frappe.route_options = {
"account": data.account,
"company": frappe.query_report.filters_by_name.company.get_value(),
"from_date": data.from_date,
"to_date": data.to_date
"from_date": data.year_start_date,
"to_date": data.year_end_date
};
frappe.set_route("query-report", "General Ledger");
},