refs #1594 invoice/bill edit items
This commit is contained in:
parent
87b66ac6a9
commit
659285e2cd
6
resources/assets/js/views/purchases/bills.js
vendored
6
resources/assets/js/views/purchases/bills.js
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
6
resources/assets/js/views/sales/invoices.js
vendored
6
resources/assets/js/views/sales/invoices.js
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user