Fix NaN set into unit price
This commit is contained in:
parent
452eb31996
commit
eed3218153
1 changed files with 6 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue