condition added replace
This commit is contained in:
parent
ab88fe413c
commit
ceee259160
@ -820,7 +820,10 @@ const app = new Vue({
|
|||||||
|
|
||||||
if (newVal != '' && newVal.search('^(?=.*?[0-9])[0-9.,]+$') !== 0) {
|
if (newVal != '' && newVal.search('^(?=.*?[0-9])[0-9.,]+$') !== 0) {
|
||||||
this.form.discount = oldVal;
|
this.form.discount = oldVal;
|
||||||
this.form.discount.replace(',', '.');
|
|
||||||
|
if (Number(newVal) == null) {
|
||||||
|
this.form.discount.replace(',', '.');
|
||||||
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user