mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-29 06:38:24 +00:00
fix(party_ledger_summary): added missing filters for cost_center and projects (#58411)
This commit is contained in:
@@ -93,5 +93,27 @@ frappe.query_reports["Customer Ledger Summary"] = {
|
|||||||
fieldtype: "Data",
|
fieldtype: "Data",
|
||||||
hidden: 1,
|
hidden: 1,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldname: "cost_center",
|
||||||
|
label: __("Cost Center"),
|
||||||
|
fieldtype: "MultiSelectList",
|
||||||
|
options: "Cost Center",
|
||||||
|
get_data: function (txt) {
|
||||||
|
return frappe.db.get_link_options("Cost Center", txt, {
|
||||||
|
company: frappe.query_report.get_filter_value("company"),
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
fieldname: "project",
|
||||||
|
label: __("Project"),
|
||||||
|
fieldtype: "MultiSelectList",
|
||||||
|
options: "Project",
|
||||||
|
get_data: function (txt) {
|
||||||
|
return frappe.db.get_link_options("Project", txt, {
|
||||||
|
company: frappe.query_report.get_filter_value("company"),
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -74,5 +74,27 @@ frappe.query_reports["Supplier Ledger Summary"] = {
|
|||||||
fieldtype: "Data",
|
fieldtype: "Data",
|
||||||
hidden: 1,
|
hidden: 1,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
fieldname: "cost_center",
|
||||||
|
label: __("Cost Center"),
|
||||||
|
fieldtype: "MultiSelectList",
|
||||||
|
options: "Cost Center",
|
||||||
|
get_data: function (txt) {
|
||||||
|
return frappe.db.get_link_options("Cost Center", txt, {
|
||||||
|
company: frappe.query_report.get_filter_value("company"),
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
fieldname: "project",
|
||||||
|
label: __("Project"),
|
||||||
|
fieldtype: "MultiSelectList",
|
||||||
|
options: "Project",
|
||||||
|
get_data: function (txt) {
|
||||||
|
return frappe.db.get_link_options("Project", txt, {
|
||||||
|
company: frappe.query_report.get_filter_value("company"),
|
||||||
|
});
|
||||||
|
},
|
||||||
|
},
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user