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

View File

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