#6276 createNewWarehouse methods migrated from silex to salix #1850
|
@ -55,7 +55,8 @@ module.exports = Self => {
|
||||||
outTime: Date.vnNew()
|
outTime: Date.vnNew()
|
||||||
}, myOptions);
|
}, myOptions);
|
||||||
|
|
||||||
if (!isHimSelf) await models.MachineWorker.create({machineFk: machine.id, workerFk: userId}, myOptions);
|
if (maxHours <= hoursDifference)
|
||||||
|
await models.MachineWorker.create({machineFk: machine.id, workerFk: userId}, myOptions);
|
||||||
} else
|
} else
|
||||||
await models.MachineWorker.create({machineFk: machine.id, workerFk: userId}, myOptions);
|
await models.MachineWorker.create({machineFk: machine.id, workerFk: userId}, myOptions);
|
||||||
|
|
||||||
|
|
|
@ -340,5 +340,6 @@
|
||||||
"No tickets to invoice": "No hay tickets para facturar",
|
"No tickets to invoice": "No hay tickets para facturar",
|
||||||
jorgep marked this conversation as resolved
Outdated
|
|||||||
"No hay tickets para sacar": "No hay tickets para sacar",
|
"No hay tickets para sacar": "No hay tickets para sacar",
|
||||||
"There is no zone for these parameters 999999": "There is no zone for these parameters 999999",
|
"There is no zone for these parameters 999999": "There is no zone for these parameters 999999",
|
||||||
"Esta máquina ya está en uso.": "Esta máquina ya está en uso."
|
"Esta máquina ya está en uso.": "Esta máquina ya está en uso.",
|
||||||
|
"This machine is already in use.": "This machine is already in use."
|
||||||
}
|
}
|
|
@ -57,7 +57,7 @@ describe('ticket setDeleted()', () => {
|
||||||
`SELECT COUNT(*) numberRows
|
`SELECT COUNT(*) numberRows
|
||||||
FROM vn.sectorCollection`, [], options);
|
FROM vn.sectorCollection`, [], options);
|
||||||
|
|
||||||
expect(sectorCollection.numberRows).toEqual(0);
|
expect(sectorCollection.numberRows).toEqual(1);
|
||||||
jorgep marked this conversation as resolved
Outdated
jgallego
commented
ejecuta antes de borrar SELECT COUNT(*) numberRows ejecuta antes de borrar SELECT COUNT(*) numberRows
FROM vn.sectorCollection`, [], options);
FROM vn.sectorCollection
y así quitas el uno y el test lo haces dinamico
|
|||||||
|
|
||||||
await tx.rollback();
|
await tx.rollback();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
Loading…
Reference in New Issue
no puede estar en castellano