[fix] Trial Balance to General Ledger: use data.from_date and data.to_date
This commit is contained in:
parent
5f72504de1
commit
561e6cd27b
@ -36,7 +36,7 @@ erpnext.financial_statements = {
|
|||||||
if (columnDef.df.fieldname=="account") {
|
if (columnDef.df.fieldname=="account") {
|
||||||
value = dataContext.account_name;
|
value = dataContext.account_name;
|
||||||
|
|
||||||
columnDef.df.link_onclick =
|
columnDef.df.link_onclick =
|
||||||
"erpnext.financial_statements.open_general_ledger(" + JSON.stringify(dataContext) + ")";
|
"erpnext.financial_statements.open_general_ledger(" + JSON.stringify(dataContext) + ")";
|
||||||
columnDef.df.is_tree = true;
|
columnDef.df.is_tree = true;
|
||||||
}
|
}
|
||||||
@ -60,8 +60,8 @@ erpnext.financial_statements = {
|
|||||||
frappe.route_options = {
|
frappe.route_options = {
|
||||||
"account": data.account,
|
"account": data.account,
|
||||||
"company": frappe.query_report.filters_by_name.company.get_value(),
|
"company": frappe.query_report.filters_by_name.company.get_value(),
|
||||||
"from_date": data.year_start_date,
|
"from_date": data.from_date || data.year_start_date,
|
||||||
"to_date": data.year_end_date
|
"to_date": data.to_date || data.year_end_date
|
||||||
};
|
};
|
||||||
frappe.set_route("query-report", "General Ledger");
|
frappe.set_route("query-report", "General Ledger");
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user