7404-fixStockBought #3004
No reviewers
Labels
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: verdnatura/salix#3004
Loading…
Reference in New Issue
No description provided.
Delete Branch "7404-fixStockBought"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -31,3 +31,2 @@
if (dated.getTime() === today.getTime())
await models.StockBought.rawSql(`CALL vn.stockBought_calculate()`);
if (dated.getTime() >= today.getTime())
açò es pareix molt a la comprobacio que fa el procediment. Si fos lo mateix, millor no repetir codi
@ -14,3 +14,3 @@
const result = await models.Item.lastEntriesFilter(filter, options);
expect(result.length).toEqual(1);
expect(result.length).toEqual(2);
el test diu una entrada pero li has posat 2
@ -38,3 +38,3 @@
const result = await models.Item.lastEntriesFilter(filter, options);
expect(result.length).toEqual(5);
expect(result.length).toEqual(6);
en este lo mateix. posa un five i ara es 6, lo ideal seria trobar la forma de ferlos dinamics, saber perque antes agafaba 5 i fer el select ahí. Si ho veus viable ho canvies.
al ser test de un filter hauria de fer la mateixa consulta del filter per a obtindre les dades inicials