mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
fix invoice
This commit is contained in:
+1
-1
@@ -528,7 +528,7 @@ Route::get('/invoice/fix', function(){
|
||||
$deletedInvoice->bill_no = $bill_no . '-deleted';
|
||||
$deletedInvoice->save();
|
||||
|
||||
$existing_invoice_bill_no = Transaction::where('bill_no', $bill_no)->first();
|
||||
$existing_invoice_bill_no = Transaction::withTrashed()->where('bill_no', $bill_no)->first();
|
||||
|
||||
if ($existing_invoice_bill_no) {
|
||||
Log::channel('regenerateInvoice')->info('Delete existing bill_no');
|
||||
|
||||
Reference in New Issue
Block a user