[fix] Trial Balance to General Ledger: use data.from_date and data.to_date

This commit is contained in:
Anand Doshi 2016-02-16 11:56:53 +05:30
parent 5f72504de1
commit 561e6cd27b

View File

@ -36,7 +36,7 @@ erpnext.financial_statements = {
if (columnDef.df.fieldname=="account") {
value = dataContext.account_name;
columnDef.df.link_onclick =
columnDef.df.link_onclick =
"erpnext.financial_statements.open_general_ledger(" + JSON.stringify(dataContext) + ")";
columnDef.df.is_tree = true;
}
@ -60,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.year_start_date,
"to_date": data.year_end_date
"from_date": data.from_date || data.year_start_date,
"to_date": data.to_date || data.year_end_date
};
frappe.set_route("query-report", "General Ledger");
},