fix: don't format IBAN for countries with special rules

This commit is contained in:
barredterra 2025-08-29 14:27:44 +02:00
parent a6faab8ee9
commit 3e38c0bc4e

View file

@ -1135,7 +1135,7 @@ Object.assign(frappe.utils, {
},
get_formatted_iban(value) {
if (!value) {
if (!value || ["BI", "SV", "EG", "LY"].some((country) => value.startsWith(country))) {
return value;
}