#2687 - Travel CloneWithEntries #1887

Merged
jsegarra merged 20 commits from 2687_travel_cloneWithEntries into dev 2024-01-24 10:55:20 +00:00
1 changed files with 4 additions and 3 deletions
Showing only changes of commit c0d2e0511d - Show all commits

View File

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