fix(grid_row): skip rendering for compound currency symbols in editable rows (#37160)

* fix(grid_row): skip rendering for compound currency symbols in editable rows

* chore: fix linting
This commit is contained in:
Prathamesh Kurunkar 2026-02-19 12:18:22 +05:30 committed by GitHub
parent 8bfb42deb4
commit 6fd9004377
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1585,6 +1585,12 @@ export default class GridRow {
const currency = frappe.meta.get_field_currency(df, this.doc);
const symbol = window.get_currency_symbol(currency);
// skip if compound symbols like in case of EGP - "£ or ج."
if (symbol && (symbol.includes(" or ") || symbol.length > 3)) {
return;
}
const show_on_right =
cint(frappe.model.get_value(":Currency", currency, "symbol_on_right")) === 1;