refs #6915 test_master24_8 #2067

Merged
alexm merged 561 commits from test_master24_8 into master 2024-02-22 07:31:34 +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({