mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 13:39:18 +00:00
[report] Financial Statements: Accumulated periodic balance based on filters
This commit is contained in:
@@ -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");
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user