unused code ejected

This commit is contained in:
Burak Civan 2022-12-13 17:50:18 +03:00
parent 3cc5d4055c
commit 62077dfd50

View File

@ -814,11 +814,6 @@ const app = new Vue({
watch: { watch: {
'form.discount': function (newVal, oldVal) { 'form.discount': function (newVal, oldVal) {
if (newVal > 99) {
newVal = oldVal;
return;
}
if (newVal != '' && newVal.search('^[-+]?([0-9]|[1-9][0-9]|100)*\.?[0-9]+$') !== 0) { if (newVal != '' && newVal.search('^[-+]?([0-9]|[1-9][0-9]|100)*\.?[0-9]+$') !== 0) {
this.form.discount = oldVal; this.form.discount = oldVal;
this.form.discount = this.form.discount ? this.form.discount.replace(',', '.') : ''; this.form.discount = this.form.discount ? this.form.discount.replace(',', '.') : '';