Fix NaN set into unit price

This commit is contained in:
Laurent Destailleur 2026-06-25 13:06:51 +02:00
parent 452eb31996
commit eed3218153

View file

@ -1267,9 +1267,13 @@ if (!empty($usemargins) && $user->hasRight('margins', 'creer')) {
if (has_multicurrency_up === false) {
if (typeof up_locale === 'undefined') {
jQuery("#price_ht").val(up);
if (!Number.isNaN(up)) {
jQuery("#price_ht").val(up);
}
} else {
jQuery("#price_ht").val(up_locale);
if (!Number.isNaN(up_locale)) {
jQuery("#price_ht").val(up_locale);
}
}
}