fix: Default currency symbol in query report total row (#33429)

This commit is contained in:
Rahul Agrawal 2025-07-28 11:41:44 +05:30 committed by GitHub
parent 4983c3fc34
commit 20e4815d81
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1743,7 +1743,9 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
row.is_total_row = true;
return row;
}, {});
if (!totalRow?.currency && rows[0]?.currency) {
totalRow.currency = rows[0].currency;
}
rows.push(totalRow);
}
return rows;