fix(SPG-677) Pada Index tgl invoice belum ada datanya, invoice data = tgl ketika booking di confirm ke status pending

pull/42/head
Aswin Ashar Abdullah 2024-07-30 13:54:00 +07:00
parent 945edbf76d
commit 6632222c4b
2 changed files with 2 additions and 0 deletions

View File

@ -51,6 +51,7 @@ export class BatchConfirmTransactionManager extends BaseBatchUpdateStatusManager
Object.assign(data, {
invoice_code: await generateInvoiceCodeHelper(this.dataService, 'INV'),
status: freeTransaction ? STATUS.ACTIVE : STATUS.PENDING,
invoice_date: new Date(),
});
return;
}

View File

@ -61,6 +61,7 @@ export class ConfirmTransactionManager extends BaseUpdateStatusManager<Transacti
? null
: await generateInvoiceCodeHelper(this.dataService, 'INV'),
status: freeTransaction ? STATUS.ACTIVE : STATUS.PENDING,
invoice_date: new Date(),
});
return;
}