fix: Make Invoice row bold
This commit is contained in:
parent
5ffaff8e48
commit
779a1d68a5
@ -40,5 +40,16 @@ frappe.query_reports["Gross Profit"] = {
|
||||
"tree": true,
|
||||
"name_field": "parent",
|
||||
"parent_field": "parent_invoice",
|
||||
"initial_depth": 2
|
||||
"initial_depth": 2,
|
||||
"formatter": function(value, row, column, data, default_formatter) {
|
||||
value = default_formatter(value, row, column, data);
|
||||
|
||||
if (data && !data.parent_invoice) {
|
||||
value = $(`<span>${value}</span>`);
|
||||
var $value = $(value).css("font-weight", "bold");
|
||||
value = $value.wrap("<p></p>").parent().html();
|
||||
}
|
||||
|
||||
return value;
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user