Skip to content

Commit

Permalink
fix: bold total in exponential smoothing forecasting (frappe#41393)
Browse files Browse the repository at this point in the history
* fix: bold total in exponential smoothing forecasting

* fix: bold total in exponential smoothing forecasting
  • Loading branch information
Nihantra-Patel authored May 10, 2024
1 parent 08899d0 commit ba60b59
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,11 @@ frappe.query_reports["Exponential Smoothing Forecasting"] = {
},
},
],
formatter: function (value, row, column, data, default_formatter) {
value = default_formatter(value, row, column, data);
if (column.fieldname === "item_code" && value.includes("Total Quantity")) {
value = "<strong>" + value + "</strong>";
}
return value;
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def add_total(self):
if not self.data:
return

total_row = {"item_code": _(frappe.bold("Total Quantity"))}
total_row = {"item_code": _("Total Quantity")}

for value in self.data:
for period in self.period_list:
Expand Down

0 comments on commit ba60b59

Please sign in to comment.