fix: codasy dix

This commit is contained in:
Anupam K 2020-08-13 17:07:15 +05:30
parent 8718daa11e
commit b3bd780d46

View File

@ -74,9 +74,9 @@ frappe.query_reports["Budget Variance Report"] = {
],
"formatter": function (value, row, column, data, default_formatter) {
value = default_formatter(value, row, column, data);
if (column.fieldname.includes('variance')) {
if (data[column.fieldname] < 0) {
value = "<span style='color:red'>" + value + "</span>";
}