mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 00:44:45 +00:00
fix: Remove group-by item
This commit is contained in:
@@ -51,16 +51,13 @@ frappe.query_reports["Item-wise Sales Register"] = {
|
|||||||
"label": __("Group By"),
|
"label": __("Group By"),
|
||||||
"fieldname": "group_by",
|
"fieldname": "group_by",
|
||||||
"fieldtype": "Select",
|
"fieldtype": "Select",
|
||||||
"options": ["Customer", "Item", "Item Group", "Invoice"]
|
"options": ["Customer", "Item Group", "Invoice"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"formatter": function(value, row, column, data, default_formatter) {
|
"formatter": function(value, row, column, data, default_formatter) {
|
||||||
value = default_formatter(value, row, column, data);
|
value = default_formatter(value, row, column, data);
|
||||||
|
|
||||||
if (data && data.bold) {
|
if (data && data.bold) {
|
||||||
// value = $(`<span>${value}</span>`);
|
|
||||||
// var $value = $(value).css("font-weight", "bold");
|
|
||||||
// $value.addClass("text-danger");
|
|
||||||
value = value.bold();
|
value = value.bold();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ def _execute(filters=None, additional_table_columns=None, additional_query_colum
|
|||||||
prev_group_by_value = d.get(group_by_field)
|
prev_group_by_value = d.get(group_by_field)
|
||||||
|
|
||||||
total_row = {
|
total_row = {
|
||||||
group_by_field: d.get(group_by_field),
|
'item_code': d.get(group_by_field),
|
||||||
'stock_qty': 0.0,
|
'stock_qty': 0.0,
|
||||||
'amount': 0.0,
|
'amount': 0.0,
|
||||||
'bold': 1,
|
'bold': 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user