parent
5e38d18fed
commit
2cb57225ff
|
@ -3969,7 +3969,6 @@ INSERT INTO vn.accountDetailType (id, description, code)
|
||||||
(5, 'Referencia Nominas', 'payRef'),
|
(5, 'Referencia Nominas', 'payRef'),
|
||||||
(6, 'ABA', 'aba');
|
(6, 'ABA', 'aba');
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
INSERT INTO vn.accountDetailType
|
INSERT INTO vn.accountDetailType
|
||||||
(id, description, code)
|
(id, description, code)
|
||||||
VALUES
|
VALUES
|
||||||
|
@ -3980,8 +3979,6 @@ VALUES
|
||||||
(5, 'Referencia Nominas', 'payRef'),
|
(5, 'Referencia Nominas', 'payRef'),
|
||||||
(6, 'ABA', 'aba');
|
(6, 'ABA', 'aba');
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> dev
|
|
||||||
INSERT IGNORE INTO ormConfig
|
INSERT IGNORE INTO ormConfig
|
||||||
SET id =1,
|
SET id =1,
|
||||||
selectLimit = 1000;
|
selectLimit = 1000;
|
||||||
|
|
|
@ -30,8 +30,14 @@ module.exports = Self => {
|
||||||
new Date().toLocaleDateString('es-ES', {year: 'numeric',
|
new Date().toLocaleDateString('es-ES', {year: 'numeric',
|
||||||
month: '2-digit',
|
month: '2-digit',
|
||||||
day: '2-digit'});
|
day: '2-digit'});
|
||||||
const query = [where.itemFk, where.warehouseFk, where.date ?? today, where.showType ?? true];
|
const query = [
|
||||||
const [results] = await Self.rawSql('CALL vn.item_getSimilar(?, ?, ?, ?)', query, myOptions);
|
where.itemFk,
|
||||||
|
where.warehouseFk,
|
||||||
|
where.date ?? today,
|
||||||
|
where.showType ?? true,
|
||||||
|
where.scopeDays ?? 2
|
||||||
|
];
|
||||||
|
const [results] = await Self.rawSql('CALL vn.item_getSimilar(?, ?, ?, ?, ?)', query, myOptions);
|
||||||
|
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
|
|
|
@ -385,6 +385,6 @@ module.exports = Self => {
|
||||||
const sql = ParameterizedSQL.join(stmts, ';');
|
const sql = ParameterizedSQL.join(stmts, ';');
|
||||||
const result = await conn.executeStmt(sql, myOptions);
|
const result = await conn.executeStmt(sql, myOptions);
|
||||||
|
|
||||||
return result[ticketsIndex];
|
return Array(19).fill().flatMap(() => result[ticketsIndex]);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue