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:
parent
8bfb42deb4
commit
6fd9004377
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue