refs #5542 "importar reclamacion" crea un registro en ticketRefund
gitea/salix/pipeline/head There was a failure building this commit Details

This commit is contained in:
Vicent Llopis 2023-04-21 14:00:28 +02:00
parent 38e5660e61
commit 9f04581862
1 changed files with 5 additions and 0 deletions

View File

@ -109,6 +109,11 @@ module.exports = Self => {
zoneFk: zone.id zoneFk: zone.id
}, myOptions); }, myOptions);
await models.TicketRefund.create({
refundTicketFk: newRefundTicket.id,
originalTicketFk: claim.ticket().id
}, myOptions);
await saveObservation({ await saveObservation({
description: `Reclama ticket: ${claim.ticketFk}`, description: `Reclama ticket: ${claim.ticketFk}`,
ticketFk: newRefundTicket.id, ticketFk: newRefundTicket.id,