fix invoice

This commit is contained in:
edmondlang
2023-09-06 16:09:59 +08:00
parent 53489726e0
commit 6dac580add
+2 -1
View File
@@ -523,7 +523,8 @@ Route::get('/invoice/fix', function(){
$existing_invoice_bill_no = Transaction::where('bill_no', $bill_no)->first();
if ($existing_invoice_bill_no) {
Log::channel('regenerateInvoice')->info('Delete existing bill_no: ' . json_encode($existing_invoice_bill_no));
Log::channel('regenerateInvoice')->info('Delete existing bill_no');
Log::channel('regenerateInvoice')->info(json_encode($existing_invoice_bill_no));
$existing_invoice_bill_no->forceDelete();
}