fix: Make Invoice row bold

This commit is contained in:
GangaManoj 2021-08-20 02:38:34 +05:30
parent 5ffaff8e48
commit 779a1d68a5

View File

@ -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;
},
}