refs #1594 invoice/bill edit items

This commit is contained in:
Cüneyt Şentürk 2020-09-09 14:52:13 +03:00
parent 87b66ac6a9
commit 659285e2cd
2 changed files with 6 additions and 6 deletions

View File

@ -46,7 +46,7 @@ const app = new Vue({
edit: {
status: false,
currency: false,
items: false,
items: 0,
},
}
},
@ -291,8 +291,8 @@ const app = new Vue({
},
onSelectItem(item, index) {
if (this.edit.status && !this.edit.items) {
this.edit.items = true;
if (this.edit.status && this.edit.items < this.form.items.length) {
this.edit.items += 1;
return;
}

View File

@ -46,7 +46,7 @@ const app = new Vue({
edit: {
status: false,
currency: false,
items: false,
items: 0,
},
}
},
@ -291,8 +291,8 @@ const app = new Vue({
},
onSelectItem(item, index) {
if (this.edit.status && !this.edit.items) {
this.edit.items = true;
if (this.edit.status && this.edit.items < this.form.items.length) {
this.edit.items += 1;
return;
}