fix invoice

This commit is contained in:
edmondlang
2023-09-07 00:39:21 +08:00
parent d0d901d7ab
commit b854fd5bdc
+1 -1
View File
@@ -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');