Added no of packages serial invoice validation and notification time increased
This commit is contained in:
@@ -823,7 +823,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title("Completed: Serial Invoice")
|
||||
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed.!")
|
||||
->warning()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playNotificationSound');
|
||||
|
||||
@@ -872,7 +872,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Records Not Found')
|
||||
->body("Import the valid updated 'Serial Invoice' file to proceed..!")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -944,7 +944,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invalid Serial Invoice')
|
||||
->danger() // This makes the notification red to indicate an error
|
||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -961,7 +961,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invalid: Item Codes')
|
||||
->body('The following item codes should contain minimum 6 digit alpha numeric values:<br>' . implode(', ', $uniqueInvalidCodes))
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -995,7 +995,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Unknown: Item Codes')
|
||||
->body($message)
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -1027,7 +1027,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Unknown: Item Codes')
|
||||
->body($message)
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -1052,7 +1052,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invalid: Item Codes')
|
||||
->body($message)
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -1077,7 +1077,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invalid: Item Codes')
|
||||
->body($message)
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -1094,7 +1094,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Missing Serial Numbers')
|
||||
->body("The following item codes doesn't have valid serial number:<br>" . implode(', ', $uniqueMissingSerials))
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -1112,7 +1112,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invalid Serial Numbers')
|
||||
->body('The following serial numbers should contain minimum 9 digit alpha numeric values:<br>' . implode(', ', $uniqueInvalidSerCodes))
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -1129,7 +1129,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Duplicate Serial Numbers')
|
||||
->body('The following serial numbers are already exist in invoice excel:<br>' . implode(', ', $uniqueDupSerCodes))
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -1250,7 +1250,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title("Update Failed: Serial Invoice")
|
||||
->body("No new records were inserted for Serial Invoice : '$invoiceNumber'.")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -1278,7 +1278,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Updated Invoice Not Found')
|
||||
->body("Import the updated 'Serial Invoice' file to proceed..!")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -1312,14 +1312,14 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
// Notification::make()
|
||||
// ->title('File exists.')
|
||||
// ->success()
|
||||
// ->seconds(2)
|
||||
// ->seconds(3)
|
||||
// ->send();
|
||||
} else {
|
||||
Notification::make()
|
||||
->title('Invoice Not Found')
|
||||
->body("Import the scanned 'Invoice' file to proceed..!")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
$this->form->fill([
|
||||
@@ -1338,7 +1338,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
Notification::make()
|
||||
->title('Invoice file doesn\'t exist.')
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
return;
|
||||
@@ -1353,7 +1353,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
Notification::make()
|
||||
->title("Uploaded file name does not match the invoice number.")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
return;
|
||||
@@ -1382,7 +1382,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Records Not Found')
|
||||
->body("Import the valid 'Invoice' file to proceed..!")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -1941,7 +1941,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invalid Serial Invoice')
|
||||
->danger() // This makes the notification red to indicate an error
|
||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -1958,7 +1958,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invalid: Item Codes')
|
||||
->body('The following item codes should contain minimum 6 digit alpha numeric values:<br>' . implode(', ', $uniqueInvalidCodes))
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -2001,7 +2001,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Unknown: Item Codes')
|
||||
->body($message)
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -2032,7 +2032,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Unknown: Item Codes')
|
||||
->body($message)
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -2057,7 +2057,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invalid: Item Codes')
|
||||
->body($message)
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -2082,7 +2082,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invalid: Item Codes')
|
||||
->body($message)
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -2099,7 +2099,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Missing Serial Numbers')
|
||||
->body("The following item codes doesn't have valid serial number:<br>" . implode(', ', $uniqueMissingSerials))
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -2116,7 +2116,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invalid Serial Numbers')
|
||||
->body('The following serial numbers should contain minimum 9 digit alpha numeric values:<br>' . implode(', ', $uniqueInvalidSerCodes))
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -2133,7 +2133,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Duplicate Serial Numbers')
|
||||
->body('The following serial numbers are already exist in invoice excel:<br>' . implode(', ', $uniqueDupSerCodes))
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -2151,7 +2151,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Duplicate Serial Numbers')
|
||||
->body('The following serial numbers are already exist in database:<br>' . implode(', ', $existingSerialNumbers))
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -2235,7 +2235,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title("Import Failed: Serial Invoice")
|
||||
->body("No new records were inserted for Serial Invoice : '$invoiceNumber'.")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -2263,7 +2263,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invoice Type Not Found')
|
||||
->body("Import the valid 'Invoice' file to proceed..!")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -2352,7 +2352,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invoice Not Found')
|
||||
->body("Invoice file '$invoiceNumber' doesn't exist.<br>Scan the valid 'Invoice' file to proceed!")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -3174,7 +3174,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Completed: Serial Invoice')
|
||||
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
|
||||
->warning()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playNotificationSound');
|
||||
@@ -3220,7 +3220,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->danger()
|
||||
->title('Invalid Serial QR Format')
|
||||
->body('Scan valid Serial QR code proceed!<br>Sample formats are:<br>123456|1234567890123/M (or)<br>123456|1234567890123/P (or)<br>123456|1234567890123/C (or)<br>123456|1234567890123')
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -3281,7 +3281,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('<b><span style="color:red;">Serial Number Not Found<br>Serial \''.$serialNumber.'\' not found in database for choosed plant.</span></b>')
|
||||
// ->body("Serial '$serialNumber' not found in database for choosed plant.")..........
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('play-warn-sound');
|
||||
@@ -3325,7 +3325,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('<b><span style="color:red;">Unknown: Serial Number<br>Serial \''.$serialNumber.'\' not found in invoice.</span></b>')
|
||||
// ->body("Serial '$serialNumber' not found in invoice.")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -3370,7 +3370,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Unknown: Item Code')
|
||||
->body("Item code '$itemCode' with serial number '$serialNumber' not found.")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -3425,7 +3425,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Invalid: Item Code')
|
||||
->body("Scanned 'Item Code' doesn't have valid package type to proceed!")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -3464,7 +3464,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Unknown: Motor QR')
|
||||
->body("Scanned 'Item Code' doesn't have 'Motor' QR to proceed!")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
$mInvoiceType = 'Serial';
|
||||
@@ -3499,7 +3499,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Duplicate: Motor QR')
|
||||
->body("Scanned 'Motor' serial number already completed the scanning process.")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -3563,7 +3563,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
// ->title('Success: Motor QR')
|
||||
// ->body("'Motor' QR scanned status updated, Scan next QR.")
|
||||
// ->success() // commented
|
||||
// ->seconds(2)
|
||||
// ->seconds(3)
|
||||
// ->send();
|
||||
|
||||
$scannedQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('scanned_status', 'Scanned')->where('plant_id', $plantId)->count();
|
||||
@@ -3582,7 +3582,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Completed: Serial Invoice')
|
||||
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
|
||||
->success()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playNotificationSound');
|
||||
|
||||
@@ -3628,7 +3628,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Unknown: Pump QR')
|
||||
->body("Scanned 'Item Code' doesn't have 'Pump' QR to proceed!")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -3666,7 +3666,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Duplicate: Pump QR')
|
||||
->body("Scanned 'Pump' serial number already completed the scanning process.")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
$this->dispatch('playWarnSound');
|
||||
|
||||
@@ -3728,7 +3728,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
// ->title('Success: Pump QR')
|
||||
// ->body("'Pump' QR scanned status updated, Scan next QR.")
|
||||
// ->success() // commented
|
||||
// ->seconds(2)
|
||||
// ->seconds(3)
|
||||
// ->send();
|
||||
|
||||
$scannedQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('scanned_status', 'Scanned')->where('plant_id', $plantId)->count();
|
||||
@@ -3747,7 +3747,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Completed: Serial Invoice')
|
||||
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
|
||||
->success()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playNotificationSound');
|
||||
@@ -3796,7 +3796,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
// ->body("Panel Box Code is not available for Item Code : '$itemCode'.")
|
||||
->body("Scanned 'Item Code' doesn't have 'Panel Box Code' to proceed!")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -3834,7 +3834,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Duplicate: Capacitor QR')
|
||||
->body("Scanned 'Capacitor' serial number already completed the scanning process.")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -3893,7 +3893,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Unknown: Pump Set QR')
|
||||
->body("Scanned 'Item Code' doesn't have 'Pump Set' QR to proceed!")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -3931,7 +3931,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Duplicate: Pump Set QR')
|
||||
->body("Scanned 'Pump Set' serial number already completed the scanning process.")
|
||||
->danger()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playWarnSound');
|
||||
@@ -3994,7 +3994,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
// ->title('Success: Pump Set QR')
|
||||
// ->body("'Pump Set' QR scanned status updated, Scan next QR.")
|
||||
// ->success() // commented
|
||||
// ->seconds(2)
|
||||
// ->seconds(3)
|
||||
// ->send();
|
||||
|
||||
$scannedQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('scanned_status', 'Scanned')->where('plant_id', $plantId)->count();
|
||||
@@ -4013,7 +4013,7 @@ class CreateInvoiceValidation extends CreateRecord
|
||||
->title('Completed: Serial Invoice')
|
||||
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
|
||||
->success()
|
||||
->seconds(2)
|
||||
->seconds(3)
|
||||
->send();
|
||||
|
||||
$this->dispatch('playNotificationSound');
|
||||
|
||||
Reference in New Issue
Block a user