mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 17:26:43 +00:00
fix: bold total in exponential smoothing forecasting (#41393)
* fix: bold total in exponential smoothing forecasting
* fix: bold total in exponential smoothing forecasting
(cherry picked from commit ba60b5911a)
Co-authored-by: Nihantra C. Patel <141945075+Nihantra-Patel@users.noreply.github.com>
This commit is contained in:
@@ -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;
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ class ForecastingReport(ExponentialSmoothingForecast):
|
|||||||
if not self.data:
|
if not self.data:
|
||||||
return
|
return
|
||||||
|
|
||||||
total_row = {"item_code": _(frappe.bold("Total Quantity"))}
|
total_row = {"item_code": _("Total Quantity")}
|
||||||
|
|
||||||
for value in self.data:
|
for value in self.data:
|
||||||
for period in self.period_list:
|
for period in self.period_list:
|
||||||
|
|||||||
Reference in New Issue
Block a user