mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-30 01:43:59 +00:00
Merge branch 'fix-regenerate-bulk-invoice' of gitlab.com:CIEFWorldwideSdnBhd/exchange-2.0 into development
This commit is contained in:
@@ -107,11 +107,11 @@ class RegenerateInvoice extends Command
|
||||
$existing_invoice_bill_no->forceDelete();
|
||||
}
|
||||
|
||||
$this->createInvoiceTransactionProcessorWithInvoiceNo->execute($booking, $bill_no);
|
||||
(App()->make(CreateInvoiceTransactionProcessorWithInvoiceNo::class))->execute($booking, $bill_no);
|
||||
$logMessage = 'Regenerated invoice. Booking Marking - ' . $booking->marking . '. Bill_no - ' . $bill_no . '. Old bill_no - ' . $deletedInvoice->bill_no;
|
||||
$this->printAndLog($logMessage);
|
||||
} else {
|
||||
$this->createInvoiceTransactionProcessor->execute($booking);
|
||||
(App()->make(CreateInvoiceTransactionProcessor::class))->execute($booking);
|
||||
$logMessage = 'Regenerated new invoice. Booking Marking - ' . $booking->marking;
|
||||
$this->printAndLog($logMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user