Merge branch 'fix-regenerate-bulk-invoice' of gitlab.com:CIEFWorldwideSdnBhd/exchange-2.0 into development

This commit is contained in:
edmondlang
2023-09-06 23:39:49 +08:00
+2 -2
View File
@@ -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);
}