bug with barcodes solved
This commit is contained in:
parent
73ed4d0d19
commit
a7ec730216
|
@ -38,6 +38,7 @@ module.exports = Self => {
|
|||
}
|
||||
},
|
||||
{relation: 'intrastat'},
|
||||
{relation: 'itemBarcode'},
|
||||
{relation: 'expence'},
|
||||
{relation: 'origin'},
|
||||
{relation: 'taxes',
|
||||
|
@ -85,14 +86,6 @@ module.exports = Self => {
|
|||
};
|
||||
summary.niches = await Self.app.models.ItemNiche.find(filter);
|
||||
|
||||
// Barcodes
|
||||
filter = {
|
||||
where: {
|
||||
itemFk: id
|
||||
}
|
||||
};
|
||||
summary.barcodes = await Self.app.models.ItemNiche.find(filter);
|
||||
|
||||
// Visible Avaible
|
||||
let query = `
|
||||
CALL vn.getItemVisibleAvailable(?,curdate(),?,?)`;
|
||||
|
|
Loading…
Reference in New Issue