refs #6915 test_master24_8 #2067
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue