fix(SPG-677) Pada Index tgl invoice belum ada datanya, invoice data = tgl ketika booking di confirm ke status pending
parent
945edbf76d
commit
6632222c4b
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue