mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-24 23:13:59 +00:00
fix invoice
This commit is contained in:
@@ -107,13 +107,11 @@ class RegenerateInvoice extends Command
|
||||
$existing_invoice_bill_no->forceDelete();
|
||||
}
|
||||
|
||||
$invoiceProcessor = App()->make(CreateInvoiceTransactionProcessorWithInvoiceNo::class);
|
||||
$invoiceProcessor->execute($booking, $bill_no);
|
||||
$this->createInvoiceTransactionProcessorWithInvoiceNo->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 {
|
||||
$invoiceProcessor = App()->make(CreateInvoiceTransactionProcessor::class);
|
||||
$invoiceProcessor->execute($booking);
|
||||
$this->createInvoiceTransactionProcessor->execute($booking);
|
||||
$logMessage = 'Regenerated new invoice. Booking Marking - ' . $booking->marking;
|
||||
$this->printAndLog($logMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user