document item description fixed..
This commit is contained in:
parent
ec932aaae3
commit
01f8ca0d2f
@ -197,6 +197,7 @@ export default {
|
|||||||
type: this.type,
|
type: this.type,
|
||||||
id: item.id,
|
id: item.id,
|
||||||
name: (item.title) ? item.title : (item.display_name) ? item.display_name : item.name,
|
name: (item.title) ? item.title : (item.display_name) ? item.display_name : item.name,
|
||||||
|
description: (item.description) ? item.description : '',
|
||||||
price: (item.price) ? item.price : (this.type == 'sale') ? item.sale_price : item.purchase_price,
|
price: (item.price) ? item.price : (this.type == 'sale') ? item.sale_price : item.purchase_price,
|
||||||
tax_ids: (item.tax_ids) ? item.tax_ids : [],
|
tax_ids: (item.tax_ids) ? item.tax_ids : [],
|
||||||
});
|
});
|
||||||
@ -318,15 +319,18 @@ export default {
|
|||||||
this.form.loading = false;
|
this.form.loading = false;
|
||||||
|
|
||||||
if (response.data.success) {
|
if (response.data.success) {
|
||||||
let contact = response.data.data;
|
let item = response.data.data;
|
||||||
|
|
||||||
this.contact_list.push({
|
this.item_list.push({
|
||||||
key: contact.id,
|
index: index,
|
||||||
value: (contact.title) ? contact.title : (contact.display_name) ? contact.display_name : contact.name,
|
key: item.id,
|
||||||
type: (contact.type) ? contact.type : 'customer',
|
value: (item.title) ? item.title : (item.display_name) ? item.display_name : item.name,
|
||||||
id: contact.id,
|
type: this.type,
|
||||||
name: (contact.title) ? contact.title : (contact.display_name) ? contact.display_name : contact.name,
|
id: item.id,
|
||||||
address: (contact.address) ? contact.address : ''
|
name: (item.title) ? item.title : (item.display_name) ? item.display_name : item.name,
|
||||||
|
description: (item.description) ? item.description : '',
|
||||||
|
price: (item.price) ? item.price : (this.type == 'sale') ? item.sale_price : item.purchase_price,
|
||||||
|
tax_ids: (item.tax_ids) ? item.tax_ids : [],
|
||||||
});
|
});
|
||||||
|
|
||||||
this.add_new.show = false;
|
this.add_new.show = false;
|
||||||
@ -384,6 +388,7 @@ export default {
|
|||||||
type: 'item',
|
type: 'item',
|
||||||
id: key,
|
id: key,
|
||||||
name: value,
|
name: value,
|
||||||
|
description: '',
|
||||||
price: 0,
|
price: 0,
|
||||||
tax_ids: [],
|
tax_ids: [],
|
||||||
});
|
});
|
||||||
@ -399,6 +404,7 @@ export default {
|
|||||||
type: this.type,
|
type: this.type,
|
||||||
id: item.id,
|
id: item.id,
|
||||||
name: (item.title) ? item.title : (item.display_name) ? item.display_name : item.name,
|
name: (item.title) ? item.title : (item.display_name) ? item.display_name : item.name,
|
||||||
|
description: (item.description) ? item.description : '',
|
||||||
price: (item.price) ? item.price : (this.type == 'sale') ? item.sale_price : item.purchase_price,
|
price: (item.price) ? item.price : (this.type == 'sale') ? item.sale_price : item.purchase_price,
|
||||||
tax_ids: (item.tax_ids) ? item.tax_ids : [],
|
tax_ids: (item.tax_ids) ? item.tax_ids : [],
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user