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")
|
->title("Completed: Serial Invoice")
|
||||||
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed.!")
|
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed.!")
|
||||||
->warning()
|
->warning()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playNotificationSound');
|
$this->dispatch('playNotificationSound');
|
||||||
|
|
||||||
@@ -872,7 +872,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Records Not Found')
|
->title('Records Not Found')
|
||||||
->body("Import the valid updated 'Serial Invoice' file to proceed..!")
|
->body("Import the valid updated 'Serial Invoice' file to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -944,7 +944,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid Serial Invoice')
|
->title('Invalid Serial Invoice')
|
||||||
->danger() // This makes the notification red to indicate an error
|
->danger() // This makes the notification red to indicate an error
|
||||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -961,7 +961,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid: Item Codes')
|
->title('Invalid: Item Codes')
|
||||||
->body('The following item codes should contain minimum 6 digit alpha numeric values:<br>' . implode(', ', $uniqueInvalidCodes))
|
->body('The following item codes should contain minimum 6 digit alpha numeric values:<br>' . implode(', ', $uniqueInvalidCodes))
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -995,7 +995,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Unknown: Item Codes')
|
->title('Unknown: Item Codes')
|
||||||
->body($message)
|
->body($message)
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -1027,7 +1027,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Unknown: Item Codes')
|
->title('Unknown: Item Codes')
|
||||||
->body($message)
|
->body($message)
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -1052,7 +1052,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid: Item Codes')
|
->title('Invalid: Item Codes')
|
||||||
->body($message)
|
->body($message)
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -1077,7 +1077,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid: Item Codes')
|
->title('Invalid: Item Codes')
|
||||||
->body($message)
|
->body($message)
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -1094,7 +1094,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Missing Serial Numbers')
|
->title('Missing Serial Numbers')
|
||||||
->body("The following item codes doesn't have valid serial number:<br>" . implode(', ', $uniqueMissingSerials))
|
->body("The following item codes doesn't have valid serial number:<br>" . implode(', ', $uniqueMissingSerials))
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -1112,7 +1112,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid Serial Numbers')
|
->title('Invalid Serial Numbers')
|
||||||
->body('The following serial numbers should contain minimum 9 digit alpha numeric values:<br>' . implode(', ', $uniqueInvalidSerCodes))
|
->body('The following serial numbers should contain minimum 9 digit alpha numeric values:<br>' . implode(', ', $uniqueInvalidSerCodes))
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -1129,7 +1129,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Duplicate Serial Numbers')
|
->title('Duplicate Serial Numbers')
|
||||||
->body('The following serial numbers are already exist in invoice excel:<br>' . implode(', ', $uniqueDupSerCodes))
|
->body('The following serial numbers are already exist in invoice excel:<br>' . implode(', ', $uniqueDupSerCodes))
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -1250,7 +1250,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title("Update Failed: Serial Invoice")
|
->title("Update Failed: Serial Invoice")
|
||||||
->body("No new records were inserted for Serial Invoice : '$invoiceNumber'.")
|
->body("No new records were inserted for Serial Invoice : '$invoiceNumber'.")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -1278,7 +1278,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Updated Invoice Not Found')
|
->title('Updated Invoice Not Found')
|
||||||
->body("Import the updated 'Serial Invoice' file to proceed..!")
|
->body("Import the updated 'Serial Invoice' file to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -1312,14 +1312,14 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
// Notification::make()
|
// Notification::make()
|
||||||
// ->title('File exists.')
|
// ->title('File exists.')
|
||||||
// ->success()
|
// ->success()
|
||||||
// ->seconds(2)
|
// ->seconds(3)
|
||||||
// ->send();
|
// ->send();
|
||||||
} else {
|
} else {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Invoice Not Found')
|
->title('Invoice Not Found')
|
||||||
->body("Import the scanned 'Invoice' file to proceed..!")
|
->body("Import the scanned 'Invoice' file to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
@@ -1338,7 +1338,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Invoice file doesn\'t exist.')
|
->title('Invoice file doesn\'t exist.')
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
return;
|
return;
|
||||||
@@ -1353,7 +1353,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Uploaded file name does not match the invoice number.")
|
->title("Uploaded file name does not match the invoice number.")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
return;
|
return;
|
||||||
@@ -1382,7 +1382,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Records Not Found')
|
->title('Records Not Found')
|
||||||
->body("Import the valid 'Invoice' file to proceed..!")
|
->body("Import the valid 'Invoice' file to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -1941,7 +1941,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid Serial Invoice')
|
->title('Invalid Serial Invoice')
|
||||||
->danger() // This makes the notification red to indicate an error
|
->danger() // This makes the notification red to indicate an error
|
||||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -1958,7 +1958,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid: Item Codes')
|
->title('Invalid: Item Codes')
|
||||||
->body('The following item codes should contain minimum 6 digit alpha numeric values:<br>' . implode(', ', $uniqueInvalidCodes))
|
->body('The following item codes should contain minimum 6 digit alpha numeric values:<br>' . implode(', ', $uniqueInvalidCodes))
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -2001,7 +2001,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Unknown: Item Codes')
|
->title('Unknown: Item Codes')
|
||||||
->body($message)
|
->body($message)
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -2032,7 +2032,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Unknown: Item Codes')
|
->title('Unknown: Item Codes')
|
||||||
->body($message)
|
->body($message)
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -2057,7 +2057,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid: Item Codes')
|
->title('Invalid: Item Codes')
|
||||||
->body($message)
|
->body($message)
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -2082,7 +2082,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid: Item Codes')
|
->title('Invalid: Item Codes')
|
||||||
->body($message)
|
->body($message)
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -2099,7 +2099,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Missing Serial Numbers')
|
->title('Missing Serial Numbers')
|
||||||
->body("The following item codes doesn't have valid serial number:<br>" . implode(', ', $uniqueMissingSerials))
|
->body("The following item codes doesn't have valid serial number:<br>" . implode(', ', $uniqueMissingSerials))
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -2116,7 +2116,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid Serial Numbers')
|
->title('Invalid Serial Numbers')
|
||||||
->body('The following serial numbers should contain minimum 9 digit alpha numeric values:<br>' . implode(', ', $uniqueInvalidSerCodes))
|
->body('The following serial numbers should contain minimum 9 digit alpha numeric values:<br>' . implode(', ', $uniqueInvalidSerCodes))
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -2133,7 +2133,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Duplicate Serial Numbers')
|
->title('Duplicate Serial Numbers')
|
||||||
->body('The following serial numbers are already exist in invoice excel:<br>' . implode(', ', $uniqueDupSerCodes))
|
->body('The following serial numbers are already exist in invoice excel:<br>' . implode(', ', $uniqueDupSerCodes))
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -2151,7 +2151,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Duplicate Serial Numbers')
|
->title('Duplicate Serial Numbers')
|
||||||
->body('The following serial numbers are already exist in database:<br>' . implode(', ', $existingSerialNumbers))
|
->body('The following serial numbers are already exist in database:<br>' . implode(', ', $existingSerialNumbers))
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -2235,7 +2235,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title("Import Failed: Serial Invoice")
|
->title("Import Failed: Serial Invoice")
|
||||||
->body("No new records were inserted for Serial Invoice : '$invoiceNumber'.")
|
->body("No new records were inserted for Serial Invoice : '$invoiceNumber'.")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -2263,7 +2263,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invoice Type Not Found')
|
->title('Invoice Type Not Found')
|
||||||
->body("Import the valid 'Invoice' file to proceed..!")
|
->body("Import the valid 'Invoice' file to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -2352,7 +2352,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invoice Not Found')
|
->title('Invoice Not Found')
|
||||||
->body("Invoice file '$invoiceNumber' doesn't exist.<br>Scan the valid 'Invoice' file to proceed!")
|
->body("Invoice file '$invoiceNumber' doesn't exist.<br>Scan the valid 'Invoice' file to proceed!")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -3174,7 +3174,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Completed: Serial Invoice')
|
->title('Completed: Serial Invoice')
|
||||||
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
|
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
|
||||||
->warning()
|
->warning()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playNotificationSound');
|
$this->dispatch('playNotificationSound');
|
||||||
@@ -3220,7 +3220,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->danger()
|
->danger()
|
||||||
->title('Invalid Serial QR Format')
|
->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')
|
->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();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$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>')
|
->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.")..........
|
// ->body("Serial '$serialNumber' not found in database for choosed plant.")..........
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('play-warn-sound');
|
$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>')
|
->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.")
|
// ->body("Serial '$serialNumber' not found in invoice.")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -3370,7 +3370,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Unknown: Item Code')
|
->title('Unknown: Item Code')
|
||||||
->body("Item code '$itemCode' with serial number '$serialNumber' not found.")
|
->body("Item code '$itemCode' with serial number '$serialNumber' not found.")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -3425,7 +3425,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid: Item Code')
|
->title('Invalid: Item Code')
|
||||||
->body("Scanned 'Item Code' doesn't have valid package type to proceed!")
|
->body("Scanned 'Item Code' doesn't have valid package type to proceed!")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -3464,7 +3464,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Unknown: Motor QR')
|
->title('Unknown: Motor QR')
|
||||||
->body("Scanned 'Item Code' doesn't have 'Motor' QR to proceed!")
|
->body("Scanned 'Item Code' doesn't have 'Motor' QR to proceed!")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
$mInvoiceType = 'Serial';
|
$mInvoiceType = 'Serial';
|
||||||
@@ -3499,7 +3499,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Duplicate: Motor QR')
|
->title('Duplicate: Motor QR')
|
||||||
->body("Scanned 'Motor' serial number already completed the scanning process.")
|
->body("Scanned 'Motor' serial number already completed the scanning process.")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -3563,7 +3563,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
// ->title('Success: Motor QR')
|
// ->title('Success: Motor QR')
|
||||||
// ->body("'Motor' QR scanned status updated, Scan next QR.")
|
// ->body("'Motor' QR scanned status updated, Scan next QR.")
|
||||||
// ->success() // commented
|
// ->success() // commented
|
||||||
// ->seconds(2)
|
// ->seconds(3)
|
||||||
// ->send();
|
// ->send();
|
||||||
|
|
||||||
$scannedQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('scanned_status', 'Scanned')->where('plant_id', $plantId)->count();
|
$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')
|
->title('Completed: Serial Invoice')
|
||||||
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
|
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
|
||||||
->success()
|
->success()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playNotificationSound');
|
$this->dispatch('playNotificationSound');
|
||||||
|
|
||||||
@@ -3628,7 +3628,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Unknown: Pump QR')
|
->title('Unknown: Pump QR')
|
||||||
->body("Scanned 'Item Code' doesn't have 'Pump' QR to proceed!")
|
->body("Scanned 'Item Code' doesn't have 'Pump' QR to proceed!")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -3666,7 +3666,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Duplicate: Pump QR')
|
->title('Duplicate: Pump QR')
|
||||||
->body("Scanned 'Pump' serial number already completed the scanning process.")
|
->body("Scanned 'Pump' serial number already completed the scanning process.")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
|
|
||||||
@@ -3728,7 +3728,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
// ->title('Success: Pump QR')
|
// ->title('Success: Pump QR')
|
||||||
// ->body("'Pump' QR scanned status updated, Scan next QR.")
|
// ->body("'Pump' QR scanned status updated, Scan next QR.")
|
||||||
// ->success() // commented
|
// ->success() // commented
|
||||||
// ->seconds(2)
|
// ->seconds(3)
|
||||||
// ->send();
|
// ->send();
|
||||||
|
|
||||||
$scannedQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('scanned_status', 'Scanned')->where('plant_id', $plantId)->count();
|
$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')
|
->title('Completed: Serial Invoice')
|
||||||
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
|
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
|
||||||
->success()
|
->success()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playNotificationSound');
|
$this->dispatch('playNotificationSound');
|
||||||
@@ -3796,7 +3796,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
// ->body("Panel Box Code is not available for Item Code : '$itemCode'.")
|
// ->body("Panel Box Code is not available for Item Code : '$itemCode'.")
|
||||||
->body("Scanned 'Item Code' doesn't have 'Panel Box Code' to proceed!")
|
->body("Scanned 'Item Code' doesn't have 'Panel Box Code' to proceed!")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -3834,7 +3834,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Duplicate: Capacitor QR')
|
->title('Duplicate: Capacitor QR')
|
||||||
->body("Scanned 'Capacitor' serial number already completed the scanning process.")
|
->body("Scanned 'Capacitor' serial number already completed the scanning process.")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -3893,7 +3893,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Unknown: Pump Set QR')
|
->title('Unknown: Pump Set QR')
|
||||||
->body("Scanned 'Item Code' doesn't have 'Pump Set' QR to proceed!")
|
->body("Scanned 'Item Code' doesn't have 'Pump Set' QR to proceed!")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -3931,7 +3931,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
->title('Duplicate: Pump Set QR')
|
->title('Duplicate: Pump Set QR')
|
||||||
->body("Scanned 'Pump Set' serial number already completed the scanning process.")
|
->body("Scanned 'Pump Set' serial number already completed the scanning process.")
|
||||||
->danger()
|
->danger()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playWarnSound');
|
$this->dispatch('playWarnSound');
|
||||||
@@ -3994,7 +3994,7 @@ class CreateInvoiceValidation extends CreateRecord
|
|||||||
// ->title('Success: Pump Set QR')
|
// ->title('Success: Pump Set QR')
|
||||||
// ->body("'Pump Set' QR scanned status updated, Scan next QR.")
|
// ->body("'Pump Set' QR scanned status updated, Scan next QR.")
|
||||||
// ->success() // commented
|
// ->success() // commented
|
||||||
// ->seconds(2)
|
// ->seconds(3)
|
||||||
// ->send();
|
// ->send();
|
||||||
|
|
||||||
$scannedQuantity = InvoiceValidation::where('invoice_number', $invoiceNumber)->where('scanned_status', 'Scanned')->where('plant_id', $plantId)->count();
|
$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')
|
->title('Completed: Serial Invoice')
|
||||||
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
|
->body("Serial invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Serial Invoice' to proceed!")
|
||||||
->success()
|
->success()
|
||||||
->seconds(2)
|
->seconds(3)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('playNotificationSound');
|
$this->dispatch('playNotificationSound');
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ use App\Models\StickerMaster;
|
|||||||
use Filament\Facades\Filament;
|
use Filament\Facades\Filament;
|
||||||
use Filament\Notifications\Notification;
|
use Filament\Notifications\Notification;
|
||||||
use Livewire\Component;
|
use Livewire\Component;
|
||||||
|
use Str;
|
||||||
|
|
||||||
class InvoiceDataTable extends Component
|
class InvoiceDataTable extends Component
|
||||||
{
|
{
|
||||||
@@ -15,6 +16,8 @@ class InvoiceDataTable extends Component
|
|||||||
|
|
||||||
public $plantId = 0;
|
public $plantId = 0;
|
||||||
|
|
||||||
|
public $packageCount = 0;
|
||||||
|
|
||||||
public string $invoiceNumber = '';
|
public string $invoiceNumber = '';
|
||||||
|
|
||||||
public bool $completedInvoice = false;
|
public bool $completedInvoice = false;
|
||||||
@@ -60,6 +63,7 @@ class InvoiceDataTable extends Component
|
|||||||
$this->emptyInvoice = false;
|
$this->emptyInvoice = false;
|
||||||
$this->hasSearched = false;
|
$this->hasSearched = false;
|
||||||
$this->materialInvoice = false;
|
$this->materialInvoice = false;
|
||||||
|
$this->packageCount = 0;
|
||||||
// $this->showCapacitorInput = false;
|
// $this->showCapacitorInput = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -71,6 +75,7 @@ class InvoiceDataTable extends Component
|
|||||||
$this->emptyInvoice = true;
|
$this->emptyInvoice = true;
|
||||||
$this->hasSearched = false;
|
$this->hasSearched = false;
|
||||||
$this->materialInvoice = false;
|
$this->materialInvoice = false;
|
||||||
|
$this->packageCount = 0;
|
||||||
// $this->showCapacitorInput = false;
|
// $this->showCapacitorInput = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -106,11 +111,75 @@ class InvoiceDataTable extends Component
|
|||||||
})
|
})
|
||||||
->toArray();
|
->toArray();
|
||||||
|
|
||||||
|
$this->packageCount = 0;
|
||||||
|
|
||||||
//Loop through and replace 'code' using related StickerMaster > Item > code
|
//Loop through and replace 'code' using related StickerMaster > Item > code
|
||||||
foreach ($this->invoiceData as &$row) {
|
foreach ($this->invoiceData as &$row) {
|
||||||
|
$stickCount = 0;
|
||||||
|
$scannedCount = 0;
|
||||||
|
|
||||||
// $stickerMaster = \App\Models\StickerMaster::with('item')->find($row['sticker_master_id'] ?? null);
|
// $stickerMaster = \App\Models\StickerMaster::with('item')->find($row['sticker_master_id'] ?? null);
|
||||||
$row['code'] = StickerMaster::with('item')->find($row['sticker_master_id'] ?? null)?->item?->code ?? 'N/A';
|
$row['code'] = StickerMaster::with('item')->find($row['sticker_master_id'] ?? null)?->item?->code ?? 'N/A';
|
||||||
|
$curStick = StickerMaster::where('id', $row['sticker_master_id'])->first();
|
||||||
|
if ($curStick)
|
||||||
|
{
|
||||||
|
if ($curStick->tube_sticker_motor == 1 || $curStick->tube_sticker_pump == 1 || $curStick->tube_sticker_pumpset == 1 || Str::length($curStick->panel_box_code) > 0)
|
||||||
|
{
|
||||||
|
if ($curStick->tube_sticker_motor == 1)
|
||||||
|
{
|
||||||
|
$stickCount++;
|
||||||
}
|
}
|
||||||
|
if ($curStick->tube_sticker_pump == 1)
|
||||||
|
{
|
||||||
|
$stickCount++;
|
||||||
|
}
|
||||||
|
if ($curStick->tube_sticker_pumpset == 1)
|
||||||
|
{
|
||||||
|
$stickCount++;
|
||||||
|
}
|
||||||
|
if (Str::length($curStick->panel_box_code) > 0)
|
||||||
|
{
|
||||||
|
$stickCount++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else if ($curStick->pack_slip_motor == 1 || $curStick->pack_slip_pump == 1 || $curStick->pack_slip_pumpset == 1)
|
||||||
|
{
|
||||||
|
if ($curStick->pack_slip_motor == 1)
|
||||||
|
{
|
||||||
|
$stickCount++;
|
||||||
|
}
|
||||||
|
if ($curStick->pack_slip_pump == 1)
|
||||||
|
{
|
||||||
|
$stickCount++;
|
||||||
|
}
|
||||||
|
if ($curStick->pack_slip_pumpset == 1)
|
||||||
|
{
|
||||||
|
$stickCount++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($row['motor_scanned_status'] == 1)
|
||||||
|
{
|
||||||
|
$scannedCount++;
|
||||||
|
}
|
||||||
|
if ($row['pump_scanned_status'] == 1)
|
||||||
|
{
|
||||||
|
$scannedCount++;
|
||||||
|
}
|
||||||
|
if ($row['capacitor_scanned_status'] == 1)
|
||||||
|
{
|
||||||
|
$scannedCount++;
|
||||||
|
}
|
||||||
|
if ($row['scanned_status_set'] == 1)
|
||||||
|
{
|
||||||
|
$scannedCount++;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->packageCount += $stickCount - $scannedCount;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function loadMaterialData($invoiceNumber, $plantId)
|
public function loadMaterialData($invoiceNumber, $plantId)
|
||||||
|
|||||||
@@ -3,18 +3,18 @@
|
|||||||
<div class="mb-4">
|
<div class="mb-4">
|
||||||
<h2 class="text-lg font-bold text-gray-800">
|
<h2 class="text-lg font-bold text-gray-800">
|
||||||
@if ($hasSearched)
|
@if ($hasSearched)
|
||||||
SERIAL INVOICE DATA TABLE
|
SERIAL INVOICE DATA TABLE ( No of Packages to scan : <strong>{{ $packageCount }}</strong> )
|
||||||
@elseif ($materialInvoice)
|
@elseif ($materialInvoice)
|
||||||
MATERIAL INVOICE DATA TABLE
|
MATERIAL INVOICE DATA TABLE
|
||||||
@else
|
@else
|
||||||
@if ($completedInvoice)
|
@if ($completedInvoice)
|
||||||
@if ($isSerial)
|
@if ($isSerial)
|
||||||
SERIAL INVOICE DATA TABLE
|
SERIAL INVOICE DATA TABLE ( No of Packages to scan : <strong>{{ $packageCount }}</strong> )
|
||||||
@else
|
@else
|
||||||
MATERIAL INVOICE DATA TABLE
|
MATERIAL INVOICE DATA TABLE
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
INVOICE DATA TABLE
|
INVOICE DATA TABLE ( No of Packages to scan : <strong>{{ $packageCount }}</strong> )
|
||||||
@endif
|
@endif
|
||||||
@endif
|
@endif
|
||||||
</h2>
|
</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user