now a claim state is 'resolved' when a refund ticket is created
This commit is contained in:
parent
fdf0c5f1c0
commit
adebf5e0df
|
@ -135,6 +135,10 @@ module.exports = Self => {
|
||||||
newRefundTicket.id, claim.ticketFk
|
newRefundTicket.id, claim.ticketFk
|
||||||
], {transaction: transaction});
|
], {transaction: transaction});
|
||||||
|
|
||||||
|
let claimState = await Self.app.models.ClaimState.findOne({where: {description: 'Resuelto'}});
|
||||||
|
|
||||||
|
await claim.updateAttribute('claimStateFk', claimState.id, {transaction: transaction});
|
||||||
|
|
||||||
await transaction.commit();
|
await transaction.commit();
|
||||||
|
|
||||||
return newRefundTicket;
|
return newRefundTicket;
|
||||||
|
|
Loading…
Reference in New Issue