fix: translate total word

This commit is contained in:
sokumon 2025-03-03 19:43:45 +05:30
parent 299d7bfccb
commit c17311fbb0

View file

@ -554,7 +554,6 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
// filter values have not changed
return;
}
// clear previous_filters after 10 seconds, to allow refresh for new data
this.previous_filters = current_filters;
setTimeout(() => (this.previous_filters = null), 10000);
@ -1249,7 +1248,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
}
if (column.colIndex === index && !value) {
value = "Total";
value = __("Total");
column = { fieldtype: "Data" }; // avoid type issues for value if Date column
} else if (["Currency", "Float"].includes(column.fieldtype)) {
// proxy for currency and float