feat(SPG-833): add key refund_type on get index

pull/59/head
Firman Ramdhani 2024-08-08 15:24:35 +07:00
parent 990d73bdb1
commit 63152ec90e
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ export class IndexTransactionManager extends BaseIndexManager<TransactionEntity>
);
Object.assign(item, {
refund_type: activeRefund?.type ?? null,
refund_code: activeRefund?.code ?? null,
refund_date: activeRefund?.refund_date ?? null,
});
@ -86,6 +87,7 @@ export class IndexTransactionManager extends BaseIndexManager<TransactionEntity>
`refunds.code`,
`refunds.refund_date`,
`refunds.request_date`,
`refunds.type`,
];
}