Merge branch 'test' into dev
This commit is contained in:
commit
89ebd36b9b
|
@ -63,7 +63,7 @@ module.exports = Self => {
|
||||||
warehouseFk: ticket.warehouseFk,
|
warehouseFk: ticket.warehouseFk,
|
||||||
reference: ticket.id,
|
reference: ticket.id,
|
||||||
contentType: 'application/pdf',
|
contentType: 'application/pdf',
|
||||||
hasFile: true
|
hasFile: false
|
||||||
};
|
};
|
||||||
|
|
||||||
const dms = await models.Dms.createFromStream(data, 'pdf', pdfStream, myOptions);
|
const dms = await models.Dms.createFromStream(data, 'pdf', pdfStream, myOptions);
|
||||||
|
|
|
@ -80,7 +80,7 @@ module.exports = Self => {
|
||||||
dmsTypeId: dmsTypeTicket.id,
|
dmsTypeId: dmsTypeTicket.id,
|
||||||
reference: ticket.id,
|
reference: ticket.id,
|
||||||
description: `Firma del cliente - Ruta ${ticket.route().id}`,
|
description: `Firma del cliente - Ruta ${ticket.route().id}`,
|
||||||
hasFile: true
|
hasFile: false
|
||||||
};
|
};
|
||||||
dms = await models.Dms.uploadFile(ctxUploadFile, myOptions);
|
dms = await models.Dms.uploadFile(ctxUploadFile, myOptions);
|
||||||
// Si se ha subido ya la firma, no se vuelve a subir, ya que si no
|
// Si se ha subido ya la firma, no se vuelve a subir, ya que si no
|
||||||
|
|
Loading…
Reference in New Issue