Invoice and Bill get item dropdown style fixes..
This commit is contained in:
parent
dc7c1d3887
commit
a4135ec902
7
resources/assets/js/views/expenses/bills.js
vendored
7
resources/assets/js/views/expenses/bills.js
vendored
@ -53,11 +53,11 @@ const app = new Vue({
|
||||
this.onAddItem();
|
||||
}
|
||||
|
||||
if (typeof invoice_items !== 'undefined') {
|
||||
if (typeof bill_items !== 'undefined' && bill_items) {
|
||||
let items = [];
|
||||
let currency_code = this.form.currency_code;
|
||||
|
||||
invoice_items.forEach(function(item) {
|
||||
bill_items.forEach(function(item) {
|
||||
items.push({
|
||||
show: false,
|
||||
currency: currency_code,
|
||||
@ -148,11 +148,12 @@ const app = new Vue({
|
||||
|
||||
onGetItem(event, index) {
|
||||
let name = event.target.value;
|
||||
this.form.items[index].show = false;
|
||||
|
||||
axios.get(url + '/common/items/autocomplete', {
|
||||
params: {
|
||||
query: name,
|
||||
type: 'invoice',
|
||||
type: 'bill',
|
||||
currency_code: this.form.currency_code
|
||||
}
|
||||
})
|
||||
|
@ -53,7 +53,7 @@ const app = new Vue({
|
||||
this.onAddItem();
|
||||
}
|
||||
|
||||
if (typeof invoice_items !== 'undefined') {
|
||||
if (typeof invoice_items !== 'undefined' && invoice_items) {
|
||||
let items = [];
|
||||
let currency_code = this.form.currency_code;
|
||||
|
||||
@ -148,6 +148,7 @@ const app = new Vue({
|
||||
|
||||
onGetItem(event, index) {
|
||||
let name = event.target.value;
|
||||
this.form.items[index].show = false;
|
||||
|
||||
axios.get(url + '/common/items/autocomplete', {
|
||||
params: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user