fix(supplier_consumption): fix JOIN
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alex Moreno 2022-12-14 10:12:51 +01:00
parent 1e0b0028f2
commit c14059df75
4 changed files with 12268 additions and 27904 deletions

View File

@ -94,7 +94,7 @@ module.exports = Self => {
t.shipped
FROM vn.entry e
JOIN vn.travel t ON t.id = e.travelFk
JOIN buy b ON b.id = b.entryFk
JOIN buy b ON e.id = b.entryFk
JOIN item i ON i.id = b.itemFk
JOIN itemType it ON it.id = i.typeFk`);
stmt.merge(conn.makeWhere(filter.where));

View File

@ -11,7 +11,7 @@ describe('supplier consumption() filter', () => {
};
const result = await app.models.Supplier.consumption(ctx, filter);
expect(result.length).toEqual(6);
expect(result.length).toEqual(5);
});
it('should return a list of entries from the item id 1 and supplier 1', async() => {

40166
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -39,7 +39,7 @@
"node-ssh": "^11.0.0",
"object-diff": "0.0.4",
"object.pick": "^1.3.0",
"puppeteer": "^18.0.5",
"puppeteer": "^19.4.0",
"read-chunk": "^3.2.0",
"require-yaml": "0.0.1",
"sharp": "^0.31.2",