mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-12 06:48:31 +00:00
refactor: item-wise purchase history (query to script report) --prettier
This commit is contained in:
@@ -54,7 +54,7 @@ frappe.query_reports["Item-wise Purchase History"] = {
|
||||
value = default_formatter(value, row, column, data);
|
||||
let format_fields = ["received_qty", "billed_amt"];
|
||||
|
||||
if (in_list(format_fields, column.fieldname) && data && data[column.fieldname] > 0) {
|
||||
if (format_fields.includes(column.fieldname) && data && data[column.fieldname] > 0) {
|
||||
value = "<span style='color:green;'>" + value + "</span>";
|
||||
}
|
||||
return value;
|
||||
|
||||
Reference in New Issue
Block a user