fix: add translate function to string on budget_variance_report.js to match the variance word translated

This commit is contained in:
Ernesto Ruiz 2022-10-25 22:24:33 -06:00 committed by GitHub
parent 48ed6381b3
commit 2012bdf4bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,7 @@ 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 (column.fieldname.includes(__("variance"))) {
if (data[column.fieldname] < 0) {
value = "<span style='color:red'>" + value + "</span>";