hotfix 3rd parameter to null
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Alexandre Riera 2023-05-25 11:35:25 +02:00
parent 659d76f022
commit dfac44a87b
1 changed files with 2 additions and 2 deletions

View File

@ -26,8 +26,8 @@ module.exports = Self => {
Object.assign(myOptions, options);
const where = filter.where;
const query = 'CALL vn.item_getBalance(?, ?)';
const [diary] = await Self.rawSql(query, [where.itemFk, where.warehouseFk], myOptions);
const query = 'CALL vn.item_getBalance(?, ?, ?)';
const [diary] = await Self.rawSql(query, [where.itemFk, where.warehouseFk, null], myOptions);
for (const entry of diary)
if (entry.clientType === 'loses') entry.highlighted = true;