bug with barcodes solved

This commit is contained in:
gerard 2018-07-24 12:56:07 +02:00
parent 73ed4d0d19
commit a7ec730216
1 changed files with 1 additions and 8 deletions

View File

@ -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(),?,?)`;