feat: Group by AR/AP report (#20573)

* feat: Group by AR/AP report

* fix: Do not consider total row in charts

* fix: Subtotal row for last party
This commit is contained in:
Deepesh Garg
2020-02-18 16:07:34 +05:30
committed by GitHub
parent ecba5c40bb
commit 0ce9e0cc1f
3 changed files with 96 additions and 10 deletions

View File

@@ -100,6 +100,11 @@ frappe.query_reports["Accounts Payable"] = {
"fieldtype": "Link",
"options": "Supplier Group"
},
{
"fieldname": "group_by_party",
"label": __("Group By Supplier"),
"fieldtype": "Check"
},
{
"fieldname":"based_on_payment_terms",
"label": __("Based On Payment Terms"),
@@ -112,6 +117,16 @@ frappe.query_reports["Accounts Payable"] = {
"hidden": 1
}
],
"formatter": function(value, row, column, data, default_formatter) {
value = default_formatter(value, row, column, data);
if (data && data.bold) {
value = value.bold();
}
return value;
},
onload: function(report) {
report.page.add_inner_button(__("Accounts Payable Summary"), function() {
var filters = report.get_values();