fix: Display only the Invoice rows in bold

This commit is contained in:
GangaManoj
2021-08-25 02:49:14 +05:30
parent 6fdf4dd03e
commit ae6e69ebd4

View File

@@ -44,7 +44,7 @@ frappe.query_reports["Gross Profit"] = {
"formatter": function(value, row, column, data, default_formatter) {
value = default_formatter(value, row, column, data);
if (data && !data.parent_invoice) {
if (data && data.indent == 0.0) {
value = $(`<span>${value}</span>`);
var $value = $(value).css("font-weight", "bold");
value = $value.wrap("<p></p>").parent().html();