diff --git a/app/Filament/Resources/InvoiceValidationResource/Pages/CreateInvoiceValidation.php b/app/Filament/Resources/InvoiceValidationResource/Pages/CreateInvoiceValidation.php index f0cd68b..e2c8887 100644 --- a/app/Filament/Resources/InvoiceValidationResource/Pages/CreateInvoiceValidation.php +++ b/app/Filament/Resources/InvoiceValidationResource/Pages/CreateInvoiceValidation.php @@ -2899,7 +2899,7 @@ class CreateInvoiceValidation extends CreateRecord if ($dupRecord) { Notification::make() ->title('Duplicate: Material QR') - ->body("Scanned 'Material QR' already completed the scanning process.") + ->body("Scanned Material QR : '{$serialNumber}' already completed the scanning process..!") ->danger() ->seconds(2) ->send(); @@ -2998,19 +2998,19 @@ class CreateInvoiceValidation extends CreateRecord } } else { if (str_contains($serialNumber, '|')) { + Notification::make() + ->title('Duplicate: Material QR') + ->body("Scanned Material QR : '{$serialNumber}' already completed the scanning process..!") + ->danger() + ->seconds(2) + ->send(); + $itemCode = null; $this->currentItemCode = ''; $batchNumber = null; $serNo = null; $serialNumber = null; - Notification::make() - ->title('Duplicate: Material QR') - ->body("Scanned 'Material QR' already completed the scanning process.") - ->danger() - ->seconds(2) - ->send(); - $this->dispatch('playWarnSound'); $this->form->fill([ @@ -3359,7 +3359,7 @@ class CreateInvoiceValidation extends CreateRecord } elseif ($hadMotorQr == $hasMotorQr) { Notification::make() ->title('Duplicate: Motor QR') - ->body("Scanned 'Motor' serial number already completed the scanning process.") + ->body("Scanned Motor Serial Number : '{$serialNumber}' already completed the scanning process.") ->danger() ->seconds(3) ->send(); @@ -3476,7 +3476,7 @@ class CreateInvoiceValidation extends CreateRecord } elseif ($hadPumpQr == $hasPumpQr) { Notification::make() ->title('Duplicate: Pump QR') - ->body("Scanned 'Pump' serial number already completed the scanning process.") + ->body("Scanned Pump Serial Number : '{$serialNumber}' already completed the scanning process.") ->danger() ->seconds(3) ->send(); @@ -3595,7 +3595,7 @@ class CreateInvoiceValidation extends CreateRecord } elseif ($hadCapacitorQr == '1' && $hasCapacitorQr) { Notification::make() ->title('Duplicate: Capacitor QR') - ->body("Scanned 'Capacitor' serial number already completed the scanning process.") + ->body("Scanned Capacitor Serial Number : '{$serialNumber}' already completed the scanning process.") ->danger() ->seconds(3) ->send(); @@ -3657,7 +3657,7 @@ class CreateInvoiceValidation extends CreateRecord } elseif ($hadPumpSetQr == $hasPumpSetQr) { Notification::make() ->title('Duplicate: Pump Set QR') - ->body("Scanned 'Pump Set' serial number already completed the scanning process.") + ->body("Scanned Pump Set Serial Number : '{$serialNumber}' already completed the scanning process.") ->danger() ->seconds(3) ->send();