Updated duration for failure messages to 5 seconds
This commit is contained in:
@@ -62,8 +62,9 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Plant Not Found')
|
||||
->body("Plant can't be empty!")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', '', $plantId);
|
||||
$this->form->fill([
|
||||
'plant_id' => $plantId,
|
||||
@@ -104,8 +105,9 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Completed: Locator Invoice')
|
||||
->body("Locator invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Locator Invoice' to proceed..!")
|
||||
->info()
|
||||
->duration(1000)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', '', $plantId);
|
||||
$this->form->fill([
|
||||
'plant_id' => $plantId,
|
||||
@@ -149,8 +151,9 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Invoice File Not Found')
|
||||
->body("Import the scanned 'Invoice' file to proceed..!")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->form->fill([
|
||||
'plant_id' => $plantId,
|
||||
'plant' => $plantId,
|
||||
@@ -177,7 +180,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Invalid Locator Invoice Found')
|
||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
if ($disk->exists($filePath))
|
||||
@@ -240,7 +243,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Invalid Serial Numbers Found')
|
||||
->body('The following serial numbers should contain minimum 9 digit (and maximum 20 digit) alpha numeric values:<br>' . implode(', ', $uniqueSerialCodes))
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
if ($disk->exists($filePath)) {
|
||||
@@ -267,7 +270,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Duplicate Serial Numbers Found')
|
||||
->body('The following serial numbers are already exist in imported excel:<br>' . implode(', ', $duplicateSerialCodes))
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
if ($disk->exists($filePath)) {
|
||||
@@ -291,7 +294,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Invalid Locator Invoice Found')
|
||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
if ($disk->exists($filePath)) {
|
||||
@@ -324,7 +327,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Duplicate Serial Numbers Found')
|
||||
->body('The following serial numbers already exist with a different invoice number:<br>' . implode(', ', $existingSerials))
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
if ($disk->exists($filePath))
|
||||
@@ -405,6 +408,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->info()
|
||||
->duration(800)
|
||||
->send();
|
||||
|
||||
if ($disk->exists($filePath))
|
||||
{
|
||||
$disk->delete($filePath);
|
||||
@@ -454,7 +458,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Updated Invoice File Not Found')
|
||||
->body("Import the updated 'Invoice' file to proceed..!")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->form->fill([
|
||||
@@ -489,7 +493,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Invalid Updated Locator Invoice Found')
|
||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
if ($disk->exists($filePath))
|
||||
@@ -552,7 +556,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Invalid Serial Numbers Found')
|
||||
->body('The following serial numbers should contain minimum 9 digit (and maximum 20 digit) alpha numeric values:<br>' . implode(', ', $uniqueSerialCodes))
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
if ($disk->exists($filePath)) {
|
||||
@@ -579,7 +583,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Duplicate Serial Numbers Found')
|
||||
->body('The following serial numbers are already exist in imported excel:<br>' . implode(', ', $duplicateSerialCodes))
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
if ($disk->exists($filePath))
|
||||
@@ -605,7 +609,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Invalid Updated Locator Invoice Found')
|
||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
if ($disk->exists($filePath)) {
|
||||
@@ -638,7 +642,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Duplicate Serial Numbers Found')
|
||||
->body('The following serial numbers already exist with a different invoice number:<br>' . implode(', ', $existingSerials))
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
if ($disk->exists($filePath)) {
|
||||
@@ -697,6 +701,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->info()
|
||||
->duration(800)
|
||||
->send();
|
||||
|
||||
if ($disk->exists($filePath))
|
||||
{
|
||||
$disk->delete($filePath);
|
||||
@@ -755,8 +760,9 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Error: Locator invoice insertion (or updation).')
|
||||
->body($e->getMessage())
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)
|
||||
->where('invoice_number', $invoiceNumber)
|
||||
@@ -812,7 +818,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Invoice Not Found')
|
||||
->body("Scanned invoice number '$invoiceNumber' does not exist in invoice table!<br>Import the scanned 'Invoice' file to proceed..!")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -872,7 +878,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
Notification::make()
|
||||
->title("Pallet number can't be empty!")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)->where('invoice_number', $invoiceNumber)
|
||||
@@ -898,7 +904,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
Notification::make()
|
||||
->title("Pallet number '$palletNumber' must be at least 10 digits.")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -925,7 +931,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
Notification::make()
|
||||
->title("Pallet number '{$palletNumber}' does not exist in pallet table.")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -960,7 +966,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
Notification::make()
|
||||
->title("Pallet number '{$palletNumber}' does not completed the master packing!")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -1002,7 +1008,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
Notification::make()
|
||||
->title("Scanned pallet number '$palletNumber' does not have invoice serial numbers.<br>Scan the valid exist pallet number to start the scanning process..!")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -1043,7 +1049,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title("Partial Pallet Serial Numbers Found")
|
||||
->body($missingSerialsString)
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -1295,7 +1301,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title('Invoice Not Found')
|
||||
->body("Scanned invoice number '$invoiceNumber' does not exist in invoice table!<br>Import the scanned 'Invoice' file to proceed..!")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->form->fill([
|
||||
@@ -1356,7 +1362,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title("Invalid: Serial Number")
|
||||
->body("Serial number can't be empty!")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -1379,7 +1385,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title("Invalid: Serial Number")
|
||||
->body('Serial number should contain minimum 9 digits and maximum 20 digits.')
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -1401,7 +1407,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title("Invalid: Serial Number")
|
||||
->body('Serial number must contain alpha-numeric values only.')
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -1426,7 +1432,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title("Unknown: Serial Number")
|
||||
->body("Serial number '{$serialNumber}' does not exist in invoice number '$invoiceNumber'.")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -1448,7 +1454,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title("Completed: Serial Number")
|
||||
->body("Serial number '{$serialNumber}' already completed the scanning process for the invoice number '$invoiceNumber'.")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -1480,7 +1486,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title("Unknown: Serial Number")
|
||||
->body("Serial number '{$serialNumber}' does not exist in pallet table.")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -1513,7 +1519,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
->title("Incompleted Pallet: Serial Number")//Pallet number '{$existPallNum}' does not completed the master packing!
|
||||
->body("Serial number '{$serialNumber}' exist in pallet number '$existPallNum' and it does not completed the master packing!")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
@@ -1640,7 +1646,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
||||
Notification::make()
|
||||
->title("Failed to check Serial number '{$serialNumber}' existence.<br>Scan the valid serial number to proceed...")
|
||||
->danger()
|
||||
->duration(1200)
|
||||
->duration(5000)
|
||||
->send();
|
||||
|
||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||
|
||||
Reference in New Issue
Block a user