feat(salix): refs #6321 default value when days is not present

This commit is contained in:
Javier Segarra 2024-05-24 14:00:41 +02:00
parent 8366cfa348
commit 4fe1d80e7c
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ module.exports = Self => {
let procedureParams = [true];
procedureParams.push(...filterKeyOrder.map(clave => ctx.args[clave] ?? null));
if (!procedureParams[1])procedureParams[1] = 2;
const procedureArgs = Array(procedureParams.length).fill('?').join(', ');
let query = `CALL vn.item_getLack(${procedureArgs})`;