refs #6184 saveCmr #1788

Merged
guillermo merged 58 commits from 6184-saveCmr into dev 2024-02-13 06:47:06 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 1fe6818a0f - Show all commits

View File

@ -75,7 +75,7 @@ module.exports = Self => {
if (ticketDms?.dms()?.id) return true;
}
async function createGestDoc(id) {
async function createGestDoc() {
const ctxUploadFile = Object.assign({}, ctx);
ctxUploadFile.args = {
warehouseId: ticket.warehouseFk,
@ -138,7 +138,7 @@ module.exports = Self => {
if (location) await setLocation(ticketId);
if (!await hasSignDms(ticketId) && !gestDocCreated)
await createGestDoc(ticketId);
await models.TicketDms.create({ticketFk: id, dmsFk: dms[0].id}, myOptions);
await models.TicketDms.create({ticketFk: ticketId, dmsFk: dms[0].id}, myOptions);
await ticket.updateAttribute('isSigned', true, myOptions);
const deliveryState = await models.State.findOne({