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, {
|
Object.assign(data, {
|
||||||
invoice_code: await generateInvoiceCodeHelper(this.dataService, 'INV'),
|
invoice_code: await generateInvoiceCodeHelper(this.dataService, 'INV'),
|
||||||
status: freeTransaction ? STATUS.ACTIVE : STATUS.PENDING,
|
status: freeTransaction ? STATUS.ACTIVE : STATUS.PENDING,
|
||||||
|
invoice_date: new Date(),
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,6 +61,7 @@ export class ConfirmTransactionManager extends BaseUpdateStatusManager<Transacti
|
||||||
? null
|
? null
|
||||||
: await generateInvoiceCodeHelper(this.dataService, 'INV'),
|
: await generateInvoiceCodeHelper(this.dataService, 'INV'),
|
||||||
status: freeTransaction ? STATUS.ACTIVE : STATUS.PENDING,
|
status: freeTransaction ? STATUS.ACTIVE : STATUS.PENDING,
|
||||||
|
invoice_date: new Date(),
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue