refs #2687 feat: modify back method

This commit is contained in:
Javier Segarra 2023-12-11 14:54:12 +01:00
parent 64fbbd5dda
commit c0d2e0511d
1 changed files with 4 additions and 3 deletions

View File

@ -45,16 +45,17 @@ module.exports = Self => {
let stmts = []; let stmts = [];
let stmt; let stmt;
let tx = await Self.beginTransaction({});
stmt = new ParameterizedSQL( stmt = new ParameterizedSQL(
`CALL travel_cloneWithEntries(?, ?, ?, ?, ?, ?, ?, @vTravelFk)`, [ `CALL travel_cloneWithEntries(?, ?, ?, ?, ?, ?, ?, ?, @vTravelFk)`, [
id, id,
started, started,
ended, ended,
travel.warehouseOutFk, travel.warehouseOutFk,
travel.warehouseInFk, travel.warehouseInFk,
travel.ref, travel.ref,
travel.agencyModeFk travel.agencyModeFk,
!!tx.id
] ]
); );
stmts.push(stmt); stmts.push(stmt);