From 6fd9004377207e2a4fb340c9d4da751d21c398da Mon Sep 17 00:00:00 2001 From: Prathamesh Kurunkar <59260326+prathameshkurunkar7@users.noreply.github.com> Date: Thu, 19 Feb 2026 12:18:22 +0530 Subject: [PATCH] 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 --- frappe/public/js/frappe/form/grid_row.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frappe/public/js/frappe/form/grid_row.js b/frappe/public/js/frappe/form/grid_row.js index 05b1128ec2..f3fa51b8d9 100644 --- a/frappe/public/js/frappe/form/grid_row.js +++ b/frappe/public/js/frappe/form/grid_row.js @@ -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;