Commented unused code
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
This commit is contained in:
@@ -808,4 +808,29 @@ class InvoiceValidationController extends Controller
|
|||||||
{
|
{
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// public function handle(Request $request)
|
||||||
|
// {
|
||||||
|
// $invoice = InvoiceValidation::withCount([
|
||||||
|
// 'serialNumbers as scanned_count' => function ($q) {
|
||||||
|
// $q->where('is_scanned', 1);
|
||||||
|
// }
|
||||||
|
// ])->find($request->invoice_id);
|
||||||
|
|
||||||
|
// if (!$invoice) {
|
||||||
|
// return response()->json(['error' => 'Invoice not found'], 404);
|
||||||
|
// }
|
||||||
|
|
||||||
|
// if ($invoice->scanned_count < $invoice->total_serials) {
|
||||||
|
|
||||||
|
// Mail::to('alerts@example.com')->send(
|
||||||
|
// new \App\Mail\IncompleteInvoiceMail(
|
||||||
|
// $invoice,
|
||||||
|
// $invoice->scanned_count,
|
||||||
|
// $invoice->total_serials
|
||||||
|
// )
|
||||||
|
// );
|
||||||
|
// }
|
||||||
|
// return response()->json(['status' => 'ok']);
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user