1
0
forked from poc/pds

Updated duration for failure messages to 5 seconds

This commit is contained in:
dhanabalan
2025-07-18 19:06:42 +05:30
parent a71864905e
commit c363faa357
9 changed files with 272 additions and 257 deletions

View File

@@ -54,7 +54,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Invoice Number")
->body("Invoice number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -83,7 +83,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Invoice Not Found')
->body("Invoice number '$invoiceNo' doesn't exist in invoice table!<br><br>Scan the valid exist 'Invoice Number' to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -129,7 +129,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Pallet Number")
->body("Pallet number '$palletNo' must be at least 10 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
@@ -154,7 +154,7 @@ class CreateReworkLocatorInvoiceValidation 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', $invoiceNo, '', $plantId, $reworkType);
@@ -179,7 +179,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Serial Number")
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
@@ -252,7 +252,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Completed: Invoice Found')
->body("Press 'Yes' and Press 'Enter' in Scan Invoice No to do rework for entire invoice.<br><br>Press 'No' to do rework against 'Pallet or Serial Number'..!")
->info()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
@@ -278,7 +278,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Invoice Not Completed')
->body("Scanned invoice number '$invoiceNo' doesn't completed the scanning process!<br><br>Has '$notCompletedCount' pending serial number to scan!<br><br>Please, scan the valid completed invoice number to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -304,7 +304,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Choosed: Pallet Rework Type")
->body("Scan valid pallet number to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
return;
}
@@ -313,7 +313,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
Notification::make()
->title("Rework Type Not Found")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -369,7 +369,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Invoice Number")
->body("Invoice number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -398,7 +398,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Invoice Not Found')
->body("Invoice number '$invoiceNo' doesn't exist in invoice table!<br><br>Scan the valid exist 'Invoice Number' to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -444,7 +444,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Pallet Number")
->body("Pallet number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
@@ -470,7 +470,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Pallet Number")
->body("Pallet number '$palletNo' must be at least 10 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
@@ -498,7 +498,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Pallet Not Found')
->body("Pallet number '$palletNo' doesn't exist in scanned invoice number '$invoiceNo'!<br><br>Scan the valid exist 'Pallet Number' to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
@@ -524,7 +524,7 @@ class CreateReworkLocatorInvoiceValidation 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', $invoiceNo, $palletNo, $plantId, $reworkType);
@@ -549,7 +549,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Serial Number")
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', $invoiceNo, $palletNo, $plantId, $reworkType);
@@ -651,7 +651,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Invoice Not Completed')
->body("Scanned invoice number '$invoiceNo' doesn't completed the scanning process!<br><br>Has '$notCompletedCount' pending serial number to scan!<br><br>Please, scan the valid completed invoice number to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -679,7 +679,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Pallet Number")
->body("Pallet number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -705,7 +705,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Pallet Number")
->body("Pallet number '$palletNo' must be at least 10 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -733,7 +733,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Pallet Not Found')
->body("Pallet number '$palletNo' doesn't exist in pallet table!<br><br>Scan the valid exist 'Pallet Number' to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -773,7 +773,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Locator Pallet Found')
->body("Scanned pallet number '$palletNo' exist in locator number '$locatExist'.<br><br>Remove scanned 'Pallet' from 'Locator' to proceed re-master packing..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -800,7 +800,7 @@ class CreateReworkLocatorInvoiceValidation 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', '', $palletNo, $plantId, $reworkType);
@@ -825,7 +825,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Serial Number")
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
@@ -881,7 +881,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Completed: Pallet Found')
->body("Press 'Yes' and Press 'Enter' in Scan Pallet No to do re-master packing for entire pallet.<br><br>Press 'No' to do partial re-master packing against 'Serial Number'..!")
->info()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
@@ -908,7 +908,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Pallet Not Completed')
->body("Scanned pallet number '$palletNo' doesn't completed the master packing!<br><br>Please, scan the valid completed pallet number to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -933,7 +933,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
Notification::make()
->title("Rework Type Not Found")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -989,7 +989,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Invoice Number")
->body("Invoice number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -1018,7 +1018,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Invoice Not Found')
->body("Invoice number '$invoiceNo' doesn't exist in invoice table!<br><br>Scan the valid exist 'Invoice Number' to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -1064,7 +1064,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Pallet Number")
->body("Pallet number '$palletNo' must be at least 10 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
@@ -1089,7 +1089,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Serial Number")
->body("Serial number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
@@ -1115,7 +1115,7 @@ class CreateReworkLocatorInvoiceValidation 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', $invoiceNo, '', $plantId, $reworkType);
@@ -1140,7 +1140,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Serial Number")
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
@@ -1168,7 +1168,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Serial Not Found')
->body("Serial number '$serialNo' doesn't exist in scanned invoice number '$invoiceNo'!<br><br>Scan the valid exist 'Serial Number' to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
@@ -1270,7 +1270,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Invoice Not Completed')
->body("Scanned invoice number '$invoiceNo' doesn't completed the scanning process!<br><br>Has '$notCompletedCount' pending serial number to scan!<br><br>Please, scan the valid completed invoice number to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -1298,7 +1298,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Pallet Number")
->body("Pallet number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -1324,7 +1324,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Pallet Number")
->body("Pallet number '$palletNo' must be at least 10 digits.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -1352,7 +1352,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Pallet Not Found')
->body("Pallet number '$palletNo' doesn't exist in pallet table!<br><br>Scan the valid exist 'Pallet Number' to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);
@@ -1392,7 +1392,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Locator Pallet Found')
->body("Scanned pallet number '$palletNo' exist in locator number '$locatExist'.<br><br>Remove scanned 'Pallet' from 'Locator' to proceed re-master packing..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '' , '', $plantId, $reworkType);
@@ -1419,7 +1419,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Serial Number")
->body("Serial number can't be empty!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
@@ -1445,7 +1445,7 @@ class CreateReworkLocatorInvoiceValidation 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', '', $palletNo, $plantId, $reworkType);
@@ -1470,7 +1470,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title("Invalid: Serial Number")
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
@@ -1498,7 +1498,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Serial Not Found')
->body("Serial number '$serialNo' doesn't exist in pallet number '$palletNo'!<br><br>Scan the valid exist 'Serial Number' to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
@@ -1589,7 +1589,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
->title('Pallet Not Completed')
->body("Pallet number '$palletNo' doesn't completed the master packing for scanned serial number '$serialNo'!<br><br>Please, scan the valid completed pallet number to proceed..!")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '' , '', $plantId, $reworkType);
@@ -1614,7 +1614,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
Notification::make()
->title("Rework Type Not Found")
->danger()
->duration(1200)
->duration(5000)
->send();
$this->dispatch('loadData', '', '', $plantId, $reworkType);