master #2408

Merged
carlosap merged 12 commits from master into test 2024-05-06 12:22:06 +00:00
1 changed files with 3 additions and 4 deletions
Showing only changes of commit 77a1b4bb57 - Show all commits

View File

@ -27,12 +27,11 @@ module.exports = Self => {
const where = filter.where;
const query = 'CALL vn.item_getBalance(?, ?, ?)';
let date;
if (where.date) {
date = new Date(where.date);
date.setHours(0, 0, 0, 0);
where.date = new Date(where.date);
where.date.setHours(0, 0, 0, 0);
}
const [diary] = await Self.rawSql(query, [where.itemFk, where.warehouseFk, date], myOptions);
const [diary] = await Self.rawSql(query, [where.itemFk, where.warehouseFk, where.date], myOptions);
for (const entry of diary)
if (entry.clientType === 'loses') entry.highlighted = true;