diff --git a/services/loopback/common/methods/claim-beginning/importToNewRefundTicket.js b/services/loopback/common/methods/claim-beginning/importToNewRefundTicket.js index 9cbe7a94e..dbbf94927 100644 --- a/services/loopback/common/methods/claim-beginning/importToNewRefundTicket.js +++ b/services/loopback/common/methods/claim-beginning/importToNewRefundTicket.js @@ -135,6 +135,10 @@ module.exports = Self => { newRefundTicket.id, claim.ticketFk ], {transaction: transaction}); + let claimState = await Self.app.models.ClaimState.findOne({where: {description: 'Resuelto'}}); + + await claim.updateAttribute('claimStateFk', claimState.id, {transaction: transaction}); + await transaction.commit(); return newRefundTicket;