Compare commits
10 Commits
c76cf1fb98
...
gha-test
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bfed40f535 | ||
|
|
83f98d9e83 | ||
|
|
3d84661640 | ||
|
|
26ecaf49ef | ||
|
|
5fe2b74174 | ||
|
|
ce901e3b78 | ||
|
|
31ad036d0e | ||
|
|
c363faa357 | ||
|
|
a71864905e | ||
|
|
c75ac4781f |
30
.github/workflows/pint.yaml
vendored
Normal file
30
.github/workflows/pint.yaml
vendored
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
name: Laravel Pint
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
# Reinstall system libraries to ensure compatibility
|
||||||
|
- name: Ensure system libraries are up-to-date
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get install --reinstall --yes git libc6
|
||||||
|
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up PHP
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: "8.3"
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: composer install --no-interaction --prefer-dist --no-progress
|
||||||
|
|
||||||
|
# Run pint in test mode, check only files different from master branch
|
||||||
|
- name: Run Laravel Pint in test mode
|
||||||
|
run: vendor/bin/pint --test --diff=master
|
||||||
@@ -59,17 +59,19 @@ class ItemImporter extends Importer
|
|||||||
public function resolveRecord(): ?Item
|
public function resolveRecord(): ?Item
|
||||||
{
|
{
|
||||||
$warnMsg = [];
|
$warnMsg = [];
|
||||||
|
$iCode = trim($this->data['code']);
|
||||||
|
$description = trim($this->data['description']);
|
||||||
$plant = Plant::where('name', $this->data['plant'])->first();
|
$plant = Plant::where('name', $this->data['plant'])->first();
|
||||||
if (!$plant) {
|
if (!$plant) {
|
||||||
$warnMsg[] = "Plant not found"; // '" . $this->data['plant'] . "'
|
$warnMsg[] = "Plant not found"; // '" . $this->data['plant'] . "'
|
||||||
}
|
}
|
||||||
if (Str::length($this->data['code']) < 6 || !ctype_alnum($this->data['code'])) {
|
if (Str::length($iCode) < 6 || !ctype_alnum($iCode)) {
|
||||||
$warnMsg[] = "Invalid item code found";
|
$warnMsg[] = "Invalid item code found";
|
||||||
}
|
}
|
||||||
// if (Str::length($this->data['uom']) <= 0) {
|
// if (Str::length($this->data['uom']) <= 0) {
|
||||||
// $warnMsg[] = "Invalid unit of measure found";
|
// $warnMsg[] = "Invalid unit of measure found";
|
||||||
// }
|
// }
|
||||||
if (Str::length($this->data['description']) < 5) {
|
if (Str::length($description) < 5) {
|
||||||
$warnMsg[] = "Invalid description found";
|
$warnMsg[] = "Invalid description found";
|
||||||
}
|
}
|
||||||
if (Str::length($this->data['hourly_quantity']) < 0 || !is_numeric($this->data['hourly_quantity']) || $this->data['hourly_quantity'] <= 0) {
|
if (Str::length($this->data['hourly_quantity']) < 0 || !is_numeric($this->data['hourly_quantity']) || $this->data['hourly_quantity'] <= 0) {
|
||||||
@@ -79,14 +81,14 @@ class ItemImporter extends Importer
|
|||||||
throw new RowImportFailedException(implode(', ', $warnMsg));
|
throw new RowImportFailedException(implode(', ', $warnMsg));
|
||||||
}
|
}
|
||||||
return Item::updateOrCreate([
|
return Item::updateOrCreate([
|
||||||
'code' => $this->data['code'],
|
'code' => $iCode,
|
||||||
'plant_id' => $plant->id
|
'plant_id' => $plant->id
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'category' => $this->data['category'],
|
'category' => trim($this->data['category']),
|
||||||
'description' => $this->data['description'],
|
'description' => $description,
|
||||||
'hourly_quantity' => $this->data['hourly_quantity'],
|
'hourly_quantity' => $this->data['hourly_quantity'],
|
||||||
'uom' => $this->data['uom']
|
'uom' => trim($this->data['uom'])
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
// return new Item;
|
// return new Item;
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class InvoiceFinder extends Page implements HasForms
|
|||||||
->readOnly()
|
->readOnly()
|
||||||
->reactive(),
|
->reactive(),
|
||||||
TextInput::make('total_sno_quantity')
|
TextInput::make('total_sno_quantity')
|
||||||
->label('Total SNo. Quantity')
|
->label('Invoice Quantity')
|
||||||
->readOnly()
|
->readOnly()
|
||||||
->reactive(),
|
->reactive(),
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ class InvoiceFinder extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Invoice number '$invoiceNo' can't be empty!")
|
->title("Invoice number '$invoiceNo' can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('loadData', '', [], [], [], [], $plantId);
|
$this->dispatch('loadData', '', [], [], [], [], $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
@@ -101,7 +101,7 @@ class InvoiceFinder extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Invoice number '$invoiceNo' does not exist in locator invoice table!")
|
->title("Invoice number '$invoiceNo' does not exist in locator invoice table!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(2000)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('loadData', '', [], [], [], [], $plantId);
|
$this->dispatch('loadData', '', [], [], [], [], $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
@@ -128,7 +128,7 @@ class InvoiceFinder extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Invoice number '$invoiceNo' already completed the scanning process..!")
|
->title("Invoice number '$invoiceNo' already completed the scanning process..!")
|
||||||
->success()
|
->success()
|
||||||
->duration(2000)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('loadData', '', [], [], [], [], $plantId);
|
$this->dispatch('loadData', '', [], [], [], [], $plantId);
|
||||||
|
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number can't be empty!")
|
->title("Pallet number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -159,7 +159,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNo' must be at least 10 digits.")
|
->title("Pallet number '$palletNo' must be at least 10 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -183,7 +183,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNo' does not found in pallet table.")
|
->title("Pallet number '$palletNo' does not found in pallet table.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -267,7 +267,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '{$palletNo}' does not completed the master packing.")
|
->title("Pallet number '{$palletNo}' does not completed the master packing.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -348,7 +348,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number can't be empty!")
|
->title("Serial number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -369,7 +369,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -390,7 +390,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$serialNo' must contain alpha-numeric values only.")
|
->title("Serial number '$serialNo' must contain alpha-numeric values only.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -419,7 +419,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
|
->title("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -457,7 +457,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Scanned serial number '$serialNo' already exist in pallet number '$palletnumber'!<br>Scan the valid new serial number to proceed...")
|
->title("Scanned serial number '$serialNo' already exist in pallet number '$palletnumber'!<br>Scan the valid new serial number to proceed...")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
// $this->form->fill([
|
// $this->form->fill([
|
||||||
@@ -550,7 +550,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number can't be empty!")
|
->title("Locator number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -571,7 +571,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -597,7 +597,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '{$scanLocator}' does not exist in the master.")
|
->title("Locator number '{$scanLocator}' does not exist in the master.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
// $this->form->fill([
|
// $this->form->fill([
|
||||||
@@ -630,7 +630,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("No space available for locator number '{$scanLocator}'.")
|
->title("No space available for locator number '{$scanLocator}'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -659,7 +659,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNo' must be at least 10 digits.")
|
->title("Pallet number '$palletNo' must be at least 10 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -688,7 +688,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '{$palletNo}' does not completed the master packing.")
|
->title("Pallet number '{$palletNo}' does not completed the master packing.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -714,7 +714,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNo' is already assigned to locator number '{$locatorExist->locator_number}'.")
|
->title("Pallet number '$palletNo' is already assigned to locator number '{$locatorExist->locator_number}'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -755,7 +755,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number is required to add or remove when pallet number is empty.")
|
->title("Serial number is required to add or remove when pallet number is empty.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -776,7 +776,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -797,7 +797,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$serialNo' must contain alpha-numeric values only.")
|
->title("Serial number '$serialNo' must contain alpha-numeric values only.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -826,7 +826,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
|
->title("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -852,7 +852,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$serialNo' is already assigned to locator number '{$serialExist->locator_number}'.")
|
->title("Serial number '$serialNo' is already assigned to locator number '{$serialExist->locator_number}'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -873,7 +873,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$serialNo' already exists in pallet number '{$serialExist->pallet_number}'.")
|
->title("Serial number '$serialNo' already exists in pallet number '{$serialExist->pallet_number}'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -958,7 +958,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number can't be empty!")
|
->title("Locator number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -979,7 +979,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1005,7 +1005,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '{$scanLocator}' does not exist in the master.")
|
->title("Locator number '{$scanLocator}' does not exist in the master.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1030,7 +1030,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("No space available for locator number '{$scanLocator}'.")
|
->title("No space available for locator number '{$scanLocator}'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1054,7 +1054,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNo' must be at least 10 digits.")
|
->title("Pallet number '$palletNo' must be at least 10 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1078,7 +1078,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNo' does not found in pallet table.")
|
->title("Pallet number '$palletNo' does not found in pallet table.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1107,7 +1107,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '{$palletNo}' does not completed the master packing.")
|
->title("Pallet number '{$palletNo}' does not completed the master packing.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1136,7 +1136,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '{$palletNo}' is already added into locator number '{$alreadyAssigned->locator_number}'.")
|
->title("Pallet number '{$palletNo}' is already added into locator number '{$alreadyAssigned->locator_number}'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1204,7 +1204,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("pallet number failed to add into locator number '$scanLocator'")
|
->title("pallet number failed to add into locator number '$scanLocator'")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1227,7 +1227,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number is required to add when pallet number is empty.")
|
->title("Serial number is required to add when pallet number is empty.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1248,7 +1248,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1269,7 +1269,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$serialNo' must contain alpha-numeric values only.")
|
->title("Serial number '$serialNo' must contain alpha-numeric values only.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1298,7 +1298,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
|
->title("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1326,7 +1326,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$serialNo' already exists in pallet number '{$palletexists->pallet_number}'.")
|
->title("Serial number '$serialNo' already exists in pallet number '{$palletexists->pallet_number}'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1354,7 +1354,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$serialNo' already exists in locator number '{$exists->locator_number}'.")
|
->title("Serial number '$serialNo' already exists in locator number '{$exists->locator_number}'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1451,7 +1451,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number can't be empty!")
|
->title("Locator number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1472,7 +1472,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1498,7 +1498,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '{$scanLocator}' does not exist in the master.")
|
->title("Locator number '{$scanLocator}' does not exist in the master.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1522,7 +1522,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNo' must be at least 10 digits.")
|
->title("Pallet number '$palletNo' must be at least 10 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1545,7 +1545,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNo' does not found in pallet table.")
|
->title("Pallet number '$palletNo' does not found in pallet table.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1574,7 +1574,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '{$palletNo}' does not completed the master packing.")
|
->title("Pallet number '{$palletNo}' does not completed the master packing.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1602,7 +1602,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNo' is exists in locator number '$palletValidation->locator_number'<br>Scan the valid locator number to remove pallet number.")
|
->title("Pallet number '$palletNo' is exists in locator number '$palletValidation->locator_number'<br>Scan the valid locator number to remove pallet number.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator', '', $plantId);
|
$this->dispatch('loadLocator', '', $plantId);
|
||||||
@@ -1630,7 +1630,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '{$palletNo}' doesn't exist in locator number.<br>Add locator number to proceed...")
|
->title("Pallet number '{$palletNo}' doesn't exist in locator number.<br>Add locator number to proceed...")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1724,7 +1724,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("No matching pallet found or locator number already empty.")
|
->title("No matching pallet found or locator number already empty.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1749,7 +1749,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number is required to remove when pallet number is empty.")
|
->title("Serial number is required to remove when pallet number is empty.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1770,7 +1770,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1791,7 +1791,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$serialNo' must contain alpha-numeric values only.")
|
->title("Serial number '$serialNo' must contain alpha-numeric values only.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1819,7 +1819,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
|
->title("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1844,7 +1844,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '{$serialNo}' doesn't exist in the pallet table to remove.<br>Add serial number to proceed...")
|
->title("Serial number '{$serialNo}' doesn't exist in the pallet table to remove.<br>Add serial number to proceed...")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1871,7 +1871,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '{$serialNo}' already exists in pallet number '$existsInPallet->pallet_number'.")
|
->title("Serial number '{$serialNo}' already exists in pallet number '$existsInPallet->pallet_number'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1898,7 +1898,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '{$serialNo}' exist in the locator number '$existsInPallet->locator_number'.<br>Scan the valid locator number to remove serial number.")
|
->title("Serial number '{$serialNo}' exist in the locator number '$existsInPallet->locator_number'.<br>Scan the valid locator number to remove serial number.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -1947,7 +1947,7 @@ class LocatorValidation extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number failed to remove from locator number '$scanLocator'.")
|
->title("Serial number failed to remove from locator number '$scanLocator'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Press enter on "Scan Serial Number" field to proceed..!')
|
->title('Press enter on "Scan Serial Number" field to proceed..!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -164,7 +164,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Press enter on "Remove Serial Number" field to proceed..!')
|
->title('Press enter on "Remove Serial Number" field to proceed..!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -185,7 +185,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Invalid: Locator Number')
|
->title('Invalid: Locator Number')
|
||||||
->body("Locator number can't be empty!")
|
->body("Locator number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -205,7 +205,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Invalid: Locator Number')
|
->title('Invalid: Locator Number')
|
||||||
->body("Locator number '$locatorNo' must be at least 7 digits.")
|
->body("Locator number '$locatorNo' must be at least 7 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -230,7 +230,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Unknown: Locator Number')
|
->title('Unknown: Locator Number')
|
||||||
->body("Locator number '$locatorNo' does not exist in the master.")
|
->body("Locator number '$locatorNo' does not exist in the master.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -263,7 +263,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->body("Scanned locator number '$locatorNo' does not have any locator serial numbers to store into the pallet.<br>
|
->body("Scanned locator number '$locatorNo' does not have any locator serial numbers to store into the pallet.<br>
|
||||||
Please scan a valid stored locator number to proceed.")
|
Please scan a valid stored locator number to proceed.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -514,7 +514,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Press enter on "Scan Locator Number" field to proceed..!')
|
->title('Press enter on "Scan Locator Number" field to proceed..!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -533,7 +533,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Press enter on "Remove Serial Number" field to proceed..!')
|
->title('Press enter on "Remove Serial Number" field to proceed..!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -554,7 +554,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Invalid: Serial Number')
|
->title('Invalid: Serial Number')
|
||||||
->body("Serial number can't be empty!")
|
->body("Serial number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -574,7 +574,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Invalid: Serial Number')
|
->title('Invalid: Serial Number')
|
||||||
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -594,7 +594,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Invalid: Serial Number')
|
->title('Invalid: Serial Number')
|
||||||
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
|
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -633,7 +633,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Invalid: Serial Number')
|
->title('Invalid: Serial Number')
|
||||||
->body("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
|
->body("Serial number '$serialNo' already exists in invoice number '$invoiceNo' and completed the scanning process..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -653,7 +653,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Unknown: Serial Number')
|
->title('Unknown: Serial Number')
|
||||||
->body("Scanned serial number: '$serialNo' doesn't exist in pallet table.<br>Scan the valid exist locator-serial number to proceed..!")
|
->body("Scanned serial number: '$serialNo' doesn't exist in pallet table.<br>Scan the valid exist locator-serial number to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -674,7 +674,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Invalid: Serial Number')
|
->title('Invalid: Serial Number')
|
||||||
->body("Scanned serial number: '$serialNo' already exist in pallet number '".$serialLocator->pallet_number."'.<br>Scan the valid locator-serial number to proceed..!")
|
->body("Scanned serial number: '$serialNo' already exist in pallet number '".$serialLocator->pallet_number."'.<br>Scan the valid locator-serial number to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -707,7 +707,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Locator Serials Not Found')
|
->title('Locator Serials Not Found')
|
||||||
->body("Add some locator serial numbers to proceed generate pallet..!")
|
->body("Add some locator serial numbers to proceed generate pallet..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -822,7 +822,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Failed: Pallet Generated')
|
->title('Failed: Pallet Generated')
|
||||||
->body("No locator serial number records found to generate pallet..!")
|
->body("No locator serial number records found to generate pallet..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -882,7 +882,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Press enter on "Scan Locator Number" field to proceed..!')
|
->title('Press enter on "Scan Locator Number" field to proceed..!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -901,7 +901,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Press enter on "Scan Serial Number" field to proceed..!')
|
->title('Press enter on "Scan Serial Number" field to proceed..!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -922,7 +922,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Invalid: Serial Number')
|
->title('Invalid: Serial Number')
|
||||||
->body("Serial number can't be empty!")
|
->body("Serial number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -942,7 +942,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Invalid: Serial Number')
|
->title('Invalid: Serial Number')
|
||||||
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -962,7 +962,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Invalid: Serial Number')
|
->title('Invalid: Serial Number')
|
||||||
->body("Serial number '$removeSno' must contain alpha-numeric values only.")
|
->body("Serial number '$removeSno' must contain alpha-numeric values only.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
@@ -995,7 +995,7 @@ class PalletFromLocator extends Page implements HasForms
|
|||||||
->title('Unknown: Serial Number')
|
->title('Unknown: Serial Number')
|
||||||
->body("Scanned serial number: '$removeSno' doesn't exist in 'PALLET DATA' table.<br>Scan the valid exist locator-serial number to proceed..!")
|
->body("Scanned serial number: '$removeSno' doesn't exist in 'PALLET DATA' table.<br>Scan the valid exist locator-serial number to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $this->records, $plantId);
|
$this->dispatch('loadData', $this->records, $plantId);
|
||||||
|
|||||||
@@ -433,12 +433,6 @@ class ProductionQuantityPage extends Page implements HasForms
|
|||||||
$this->recQr = $itemCode && $serialNumber ? "{$itemCode} | {$serialNumber}" : null;
|
$this->recQr = $itemCode && $serialNumber ? "{$itemCode} | {$serialNumber}" : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
Notification::make()
|
|
||||||
->title("Scanned the valid QR code is $formQRData)")
|
|
||||||
->info()
|
|
||||||
->send();
|
|
||||||
|
|
||||||
|
|
||||||
if (empty($formQRData)) {
|
if (empty($formQRData)) {
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id'=> $this->pId,
|
'plant_id'=> $this->pId,
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ use Filament\Forms\Form;
|
|||||||
use Filament\Forms\Components\Section;
|
use Filament\Forms\Components\Section;
|
||||||
use Filament\Forms\Components\Select;
|
use Filament\Forms\Components\Select;
|
||||||
use Filament\Forms\Components\TextInput;
|
use Filament\Forms\Components\TextInput;
|
||||||
use Filament\Forms\Components\Radio;
|
|
||||||
use Filament\Forms\Get;
|
use Filament\Forms\Get;
|
||||||
use Filament\Notifications\Notification;
|
use Filament\Notifications\Notification;
|
||||||
use Illuminate\Support\Facades\Auth;
|
use Illuminate\Support\Facades\Auth;
|
||||||
@@ -129,7 +128,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please select a plant first.')
|
->title('Please select a plant first.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -151,7 +150,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please upload a file!')
|
->title('Please upload a file!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -175,7 +174,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title('Choose a proper Excel file')
|
->title('Choose a proper Excel file')
|
||||||
->body('The file must be an Excel file (xlsx, xls, csv).')
|
->body('The file must be an Excel file (xlsx, xls, csv).')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -197,7 +196,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('File not found after upload!')
|
->title('File not found after upload!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -255,7 +254,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title('Invalid Serial Numbers Found')
|
->title('Invalid Serial Numbers Found')
|
||||||
->body('The following serial numbers are invalid, length should contain minimum of 9 digits (and maximum 20 digits) alpha numeric values:<br>' . implode(', ', $uniqueInvalidSerial))
|
->body('The following serial numbers are invalid, length should contain minimum of 9 digits (and maximum 20 digits) alpha numeric values:<br>' . implode(', ', $uniqueInvalidSerial))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -275,7 +274,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title('Invalid Locator Numbers Found')
|
->title('Invalid Locator Numbers Found')
|
||||||
->body('The following locator numbers are invalid, length should contain minimum of 7 digits alpha numeric values:<br>' . implode(', ', $uniqueInvalidLocator))
|
->body('The following locator numbers are invalid, length should contain minimum of 7 digits alpha numeric values:<br>' . implode(', ', $uniqueInvalidLocator))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -310,7 +309,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title('Duplicate Serial Numbers in Excel')
|
->title('Duplicate Serial Numbers in Excel')
|
||||||
->body('The following serial numbers are duplicated in the file:<br>' . implode(', ', $duplicates))
|
->body('The following serial numbers are duplicated in the file:<br>' . implode(', ', $duplicates))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -336,7 +335,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title('Locators with Insufficient Space')
|
->title('Locators with Insufficient Space')
|
||||||
->body('The following locators does not have space:<br>' . implode(', ', $locatorsWithQuantityTwo))
|
->body('The following locators does not have space:<br>' . implode(', ', $locatorsWithQuantityTwo))
|
||||||
->warning()
|
->warning()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('open-confirm-modal', locatorNo: $locator, plantId: $plantId);
|
$this->dispatch('open-confirm-modal', locatorNo: $locator, plantId: $plantId);
|
||||||
@@ -356,7 +355,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title('Duplicate Serial Numbers Found')
|
->title('Duplicate Serial Numbers Found')
|
||||||
->body('The following serial numbers already exist and cannot be imported:<br>' . implode(', ', $existingSerials))
|
->body('The following serial numbers already exist and cannot be imported:<br>' . implode(', ', $existingSerials))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('open-confirm-serial', locatorNo: $locator, plantId: $plantId);
|
$this->dispatch('open-confirm-serial', locatorNo: $locator, plantId: $plantId);
|
||||||
@@ -398,7 +397,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
if ($insertedCount > 0) {
|
if ($insertedCount > 0) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial Locators imported successfully!')
|
->title('Serial Locators imported successfully!')
|
||||||
->body("{$insertedCount} locator serial number(s) have been imported.")
|
->body("'{$insertedCount}' locator serial number(s) have been imported.")
|
||||||
->success()
|
->success()
|
||||||
->duration(1000)
|
->duration(1000)
|
||||||
->send();
|
->send();
|
||||||
@@ -419,7 +418,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title('Serial Locators imported Failed!')
|
->title('Serial Locators imported Failed!')
|
||||||
->body('No new serial number(s) found in the uploaded excel file..!')
|
->body('No new serial number(s) found in the uploaded excel file..!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -445,7 +444,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please select a plant first.')
|
->title('Please select a plant first.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -467,7 +466,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please upload a file!')
|
->title('Please upload a file!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -491,7 +490,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title('Choose a proper Excel file')
|
->title('Choose a proper Excel file')
|
||||||
->body('The file must be an Excel file (xlsx, xls, csv).')
|
->body('The file must be an Excel file (xlsx, xls, csv).')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -513,7 +512,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('File not found after upload!')
|
->title('File not found after upload!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -571,7 +570,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title('Duplicate Serial Numbers Found')
|
->title('Duplicate Serial Numbers Found')
|
||||||
->body('The following serial numbers already exist and cannot be imported: ' . implode(', ', $existingSerials))
|
->body('The following serial numbers already exist and cannot be imported: ' . implode(', ', $existingSerials))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('open-confirm-serial', locatorNo: $locator, plantId: $plantId);
|
$this->dispatch('open-confirm-serial', locatorNo: $locator, plantId: $plantId);
|
||||||
@@ -612,7 +611,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
if ($insertedCount > 0) {
|
if ($insertedCount > 0) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial Locators imported successfully!')
|
->title('Serial Locators imported successfully!')
|
||||||
->body("{$insertedCount} locator serial number(s) have been imported.")
|
->body("'{$insertedCount}' locator serial number(s) have been imported.")
|
||||||
->success()
|
->success()
|
||||||
->duration(1000)
|
->duration(1000)
|
||||||
->send();
|
->send();
|
||||||
@@ -633,7 +632,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title('Serial Locators imported Failed!')
|
->title('Serial Locators imported Failed!')
|
||||||
->body('No new serial number(s) found in the uploaded excel file..!')
|
->body('No new serial number(s) found in the uploaded excel file..!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -672,7 +671,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please select a plant first.')
|
->title('Please select a plant first.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -694,7 +693,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please upload a file!')
|
->title('Please upload a file!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -718,7 +717,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title('Choose a proper Excel file')
|
->title('Choose a proper Excel file')
|
||||||
->body('The file must be an Excel file (xlsx, xls, csv).')
|
->body('The file must be an Excel file (xlsx, xls, csv).')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -740,7 +739,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('File not found after upload!')
|
->title('File not found after upload!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -825,7 +824,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
if ($insertedCount > 0) {
|
if ($insertedCount > 0) {
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial Locators imported successfully!')
|
->title('Serial Locators imported successfully!')
|
||||||
->body("{$insertedCount} locator serial number(s) have been imported.")
|
->body("'{$insertedCount}' locator serial number(s) have been imported.")
|
||||||
->success()
|
->success()
|
||||||
->duration(1000)
|
->duration(1000)
|
||||||
->send();
|
->send();
|
||||||
@@ -844,7 +843,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title('Serial Locators imported Failed!')
|
->title('Serial Locators imported Failed!')
|
||||||
->body('No new serial number(s) found in the uploaded excel file..!')
|
->body('No new serial number(s) found in the uploaded excel file..!')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -883,7 +882,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please select a plant first.')
|
->title('Please select a plant first.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -902,7 +901,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please enter serial number and locator number to add data.')
|
->title('Please enter serial number and locator number to add data.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -921,7 +920,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please enter serial number to add data.')
|
->title('Please enter serial number to add data.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -939,7 +938,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -957,7 +956,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial number must contain alpha-numeric values only.')
|
->title('Serial number must contain alpha-numeric values only.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -976,7 +975,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please enter locator number to add data.')
|
->title('Please enter locator number to add data.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -993,7 +992,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1016,7 +1015,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '$scanLocator' does not exist in the master.")
|
->title("Locator number '$scanLocator' does not exist in the master.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1035,7 +1034,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("No space available for locator number '{$scanLocator}'.")
|
->title("No space available for locator number '{$scanLocator}'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1062,7 +1061,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' already exists in locator number '$palletRecord->locator_number'.")
|
->title("Serial number '$scanSno' already exists in locator number '$palletRecord->locator_number'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1080,7 +1079,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' already exists in pallet number '$palletRecord->pallet_number'.")
|
->title("Serial number '$scanSno' already exists in pallet number '$palletRecord->pallet_number'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1098,7 +1097,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' already exists in pallet number '$palletRecord->pallet_number' with locator number '$palletRecord->locator_number'.")
|
->title("Serial number '$scanSno' already exists in pallet number '$palletRecord->pallet_number' with locator number '$palletRecord->locator_number'.")
|
||||||
->warning()
|
->warning()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1126,7 +1125,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' already exists in invoice number '$invoiceNo' and completed the scanning process.")
|
->title("Serial number '$scanSno' already exists in invoice number '$invoiceNo' and completed the scanning process.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1180,7 +1179,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Failed to add serial number '$scanSno' into locator number '$scanLocator'!")
|
->title("Failed to add serial number '$scanSno' into locator number '$scanLocator'!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->form->fill
|
$this->form->fill
|
||||||
@@ -1207,7 +1206,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please select a plant first.')
|
->title('Please select a plant first.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -1226,7 +1225,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please enter atleast a serial number or locator number to view data.')
|
->title('Please enter atleast a serial number or locator number to view data.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1245,7 +1244,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1263,7 +1262,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial number must contain alpha-numeric values only.')
|
->title('Serial number must contain alpha-numeric values only.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1281,7 +1280,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1303,7 +1302,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '$scanLocator' does not exist in the master.")
|
->title("Locator number '$scanLocator' does not exist in the master.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1329,7 +1328,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' exists in invoice number '$invoiceNo' and completed the scanning process.")
|
->title("Serial number '$scanSno' exists in invoice number '$invoiceNo' and completed the scanning process.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1352,7 +1351,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' and locator number '$scanLocator' does not exist in pallet table.")
|
->title("Serial number '$scanSno' and locator number '$scanLocator' does not exist in pallet table.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1372,7 +1371,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' already exists in pallet number '$serialNumberExists->pallet_number' with locator number '$serialNumberExists->locator_number'.")
|
->title("Serial number '$scanSno' already exists in pallet number '$serialNumberExists->pallet_number' with locator number '$serialNumberExists->locator_number'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1411,7 +1410,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1429,7 +1428,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial number must contain alpha-numeric values only.')
|
->title('Serial number must contain alpha-numeric values only.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1473,7 +1472,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' already exists in pallet number '$palletRecord->pallet_number'.")
|
->title("Serial number '$scanSno' already exists in pallet number '$palletRecord->pallet_number'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1491,7 +1490,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' already exists in pallet number '$palletRecord->pallet_number' with locator number '$palletRecord->locator_number'.")
|
->title("Serial number '$scanSno' already exists in pallet number '$palletRecord->pallet_number' with locator number '$palletRecord->locator_number'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1519,7 +1518,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' exists in invoice number '$invoiceNo' and completed the scanning process.")
|
->title("Serial number '$scanSno' exists in invoice number '$invoiceNo' and completed the scanning process.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1537,7 +1536,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' does not exist in pallet table.")
|
->title("Serial number '$scanSno' does not exist in pallet table.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1558,7 +1557,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1580,7 +1579,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '$scanLocator' does not exist in the master.")
|
->title("Locator number '$scanLocator' does not exist in the master.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1601,7 +1600,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '$scanLocator' does not exist in pallet table.")
|
->title("Locator number '$scanLocator' does not exist in pallet table.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1647,7 +1646,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please select a plant first.')
|
->title('Please select a plant first.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', 0);
|
$this->dispatch('loadData', '', '', 0);
|
||||||
@@ -1666,7 +1665,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please enter serial number and locator number to delete data.')
|
->title('Please enter serial number and locator number to delete data.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1684,7 +1683,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please enter serial number to delete data.')
|
->title('Please enter serial number to delete data.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1701,7 +1700,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->title("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1719,7 +1718,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial number must contain alpha-numeric values only.')
|
->title('Serial number must contain alpha-numeric values only.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1737,7 +1736,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Please enter locator number to delete data.')
|
->title('Please enter locator number to delete data.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1755,7 +1754,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
->title("Locator number '$scanLocator' must be at least 7 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1775,7 +1774,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Locator number '$scanLocator' does not exist in the master.")
|
->title("Locator number '$scanLocator' does not exist in the master.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1801,7 +1800,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' exists in invoice number '$invoiceNo' and completed the scanning process.")
|
->title("Serial number '$scanSno' exists in invoice number '$invoiceNo' and completed the scanning process.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1827,7 +1826,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Serial number '$scanSno' already exists in pallet number '$palletExists->pallet_number'!<br>Please enter locator serial number to remove data.")
|
->title("Serial number '$scanSno' already exists in pallet number '$palletExists->pallet_number'!<br>Please enter locator serial number to remove data.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
@@ -1869,7 +1868,7 @@ class UploadSerialLocator extends Page implements HasForms
|
|||||||
->title("Failed to remove serial number '$scanSno' from locator number '$scanLocator'!")
|
->title("Failed to remove serial number '$scanSno' from locator number '$scanLocator'!")
|
||||||
//->title("Serial number '{$scanSno}' and Locator number '{$scanLocator}' does not exist in pallet table.")
|
//->title("Serial number '{$scanSno}' and Locator number '{$scanLocator}' does not exist in pallet table.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
$this->dispatch('loadData', $scanLocator, $scanSno, $plantId);
|
||||||
|
|||||||
@@ -65,7 +65,9 @@ class LocatorInvoiceValidationResource extends Resource
|
|||||||
$set('invoice_number', null);
|
$set('invoice_number', null);
|
||||||
$set('pallet_number', null);
|
$set('pallet_number', null);
|
||||||
$set('serial_number', null);
|
$set('serial_number', null);
|
||||||
$set('sno_quantity', null);
|
$set('sno_quantity', 0);
|
||||||
|
$set('scan_quantity', 0);
|
||||||
|
$set('pend_quantity', 0);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -73,7 +75,9 @@ class LocatorInvoiceValidationResource extends Resource
|
|||||||
$set('invoice_number', null);
|
$set('invoice_number', null);
|
||||||
$set('pallet_number', null);
|
$set('pallet_number', null);
|
||||||
$set('serial_number', null);
|
$set('serial_number', null);
|
||||||
$set('sno_quantity', null);
|
$set('sno_quantity', 0);
|
||||||
|
$set('scan_quantity', 0);
|
||||||
|
$set('pend_quantity', 0);
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|
||||||
@@ -92,14 +96,28 @@ class LocatorInvoiceValidationResource extends Resource
|
|||||||
->readOnly(fn (callable $get) => !$get('plant') || $get('pallet_number') || $get('serial_number'))
|
->readOnly(fn (callable $get) => !$get('plant') || $get('pallet_number') || $get('serial_number'))
|
||||||
->afterStateUpdated(function ($state, callable $set, callable $get) {
|
->afterStateUpdated(function ($state, callable $set, callable $get) {
|
||||||
$plantId = $get('plant');
|
$plantId = $get('plant');
|
||||||
|
$invNo = $get('invoice_number');
|
||||||
|
$snoCount = 0;
|
||||||
|
$pendingCount = 0;
|
||||||
|
$scannedCount = 0;
|
||||||
if (!$plantId) {
|
if (!$plantId) {
|
||||||
$set('invoice_number', null);
|
$set('invoice_number', null);
|
||||||
$set('pallet_number', null);
|
$set('pallet_number', null);
|
||||||
|
}
|
||||||
|
else if ($invNo)
|
||||||
|
{
|
||||||
|
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)->where('invoice_number', $invNo)->count();
|
||||||
|
|
||||||
|
$pendingCount = LocatorInvoiceValidation::where('invoice_number', $invNo)->where('plant_id', $plantId)->whereNull('scanned_status')->orWhere('scanned_status', '=', '')->count();
|
||||||
|
|
||||||
|
$scannedCount = LocatorInvoiceValidation::where('invoice_number', $invNo)->where('plant_id', $plantId)->where('scanned_status', '=', 'Scanned')->count();
|
||||||
}
|
}
|
||||||
$set('update_invoice', null);
|
$set('update_invoice', null);
|
||||||
$set('pallet_number', null);
|
$set('pallet_number', null);
|
||||||
$set('serial_number', null);
|
$set('serial_number', null);
|
||||||
|
$set('sno_quantity', $snoCount);
|
||||||
|
$set('scan_quantity', $scannedCount);
|
||||||
|
$set('pend_quantity', $pendingCount);
|
||||||
}),
|
}),
|
||||||
Forms\Components\TextInput::make('pallet_number')
|
Forms\Components\TextInput::make('pallet_number')
|
||||||
->label('Scan Pallet No')
|
->label('Scan Pallet No')
|
||||||
@@ -180,7 +198,18 @@ class LocatorInvoiceValidationResource extends Resource
|
|||||||
'x-on:keydown.enter.prevent' => '$wire.processSerialNo()',
|
'x-on:keydown.enter.prevent' => '$wire.processSerialNo()',
|
||||||
]),
|
]),
|
||||||
Forms\Components\TextInput::make('sno_quantity')
|
Forms\Components\TextInput::make('sno_quantity')
|
||||||
->label('SNo. Quantity')
|
->label('Invoice Quantity')
|
||||||
|
->default(0)
|
||||||
|
->readOnly(),
|
||||||
|
|
||||||
|
Forms\Components\TextInput::make('scan_quantity')
|
||||||
|
->label('Scanned Quantity')
|
||||||
|
->default(0)
|
||||||
|
->readOnly(),
|
||||||
|
|
||||||
|
Forms\Components\TextInput::make('pend_quantity')
|
||||||
|
->label('Pending Quantity')
|
||||||
|
->default(0)
|
||||||
->readOnly(),
|
->readOnly(),
|
||||||
|
|
||||||
//Forms\Components\View::make('forms.components.update-invoice-button'),
|
//Forms\Components\View::make('forms.components.update-invoice-button'),
|
||||||
@@ -268,7 +297,7 @@ class LocatorInvoiceValidationResource extends Resource
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '{$palletNumber}' does not exist.")
|
->title("Pallet number '{$palletNumber}' does not exist.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -290,7 +319,7 @@ class LocatorInvoiceValidationResource extends Resource
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '{$palletNumber}' is not completed in masters")
|
->title("Pallet number '{$palletNumber}' is not completed in masters")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -528,7 +557,7 @@ class LocatorInvoiceValidationResource extends Resource
|
|||||||
->title('Invalid Locator Invoice Found')
|
->title('Invalid Locator Invoice Found')
|
||||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($path)) {
|
if ($disk->exists($path)) {
|
||||||
@@ -579,7 +608,7 @@ class LocatorInvoiceValidationResource extends Resource
|
|||||||
->title('Invalid Serial Numbers Found')
|
->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))
|
->body('The following serial numbers should contain minimum 9 digit (and maximum 20 digit) alpha numeric values:<br>' . implode(', ', $uniqueSerialCodes))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($path)) {
|
if ($disk->exists($path)) {
|
||||||
@@ -595,7 +624,7 @@ class LocatorInvoiceValidationResource extends Resource
|
|||||||
->title('Duplicate Serial Numbers Found')
|
->title('Duplicate Serial Numbers Found')
|
||||||
->body('The following serial numbers are already exist in imported excel:<br>' . implode(', ', $duplicateSerialCodes))
|
->body('The following serial numbers are already exist in imported excel:<br>' . implode(', ', $duplicateSerialCodes))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($path)) {
|
if ($disk->exists($path)) {
|
||||||
@@ -609,7 +638,7 @@ class LocatorInvoiceValidationResource extends Resource
|
|||||||
->title('Invalid Locator Invoice Found')
|
->title('Invalid Locator Invoice Found')
|
||||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($path)) {
|
if ($disk->exists($path)) {
|
||||||
@@ -631,7 +660,7 @@ class LocatorInvoiceValidationResource extends Resource
|
|||||||
->title('Duplicate Serial Numbers Found')
|
->title('Duplicate Serial Numbers Found')
|
||||||
->body('The following serial numbers already exist with a different invoice number:<br>' . implode(', ', $existingSerials))
|
->body('The following serial numbers already exist with a different invoice number:<br>' . implode(', ', $existingSerials))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($path)) {
|
if ($disk->exists($path)) {
|
||||||
|
|||||||
@@ -62,8 +62,9 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Plant Not Found')
|
->title('Plant Not Found')
|
||||||
->body("Plant can't be empty!")
|
->body("Plant can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $plantId);
|
$this->dispatch('loadData', '', $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
@@ -71,7 +72,9 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => $invoiceNumber,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -104,16 +107,19 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Completed: Locator Invoice')
|
->title('Completed: Locator Invoice')
|
||||||
->body("Locator invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Locator Invoice' to proceed..!")
|
->body("Locator invoice '$invoiceNumber' completed the scanning process.<br>Scan the next 'Locator Invoice' to proceed..!")
|
||||||
->info()
|
->info()
|
||||||
->duration(1000)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $plantId);
|
$this->dispatch('loadData', '', $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => null,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -149,15 +155,18 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invoice File Not Found')
|
->title('Invoice File Not Found')
|
||||||
->body("Import the scanned 'Invoice' file to proceed..!")
|
->body("Import the scanned 'Invoice' file to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => null,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => 0,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -177,7 +186,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid Locator Invoice Found')
|
->title('Invalid Locator Invoice Found')
|
||||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($filePath))
|
if ($disk->exists($filePath))
|
||||||
@@ -188,10 +197,12 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => null,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -240,58 +251,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid Serial Numbers Found')
|
->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))
|
->body('The following serial numbers should contain minimum 9 digit (and maximum 20 digit) alpha numeric values:<br>' . implode(', ', $uniqueSerialCodes))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
|
||||||
|
|
||||||
if ($disk->exists($filePath)) {
|
|
||||||
$disk->delete($filePath);
|
|
||||||
}
|
|
||||||
$this->dispatch('loadData', '', $plantId);
|
|
||||||
$this->form->fill([
|
|
||||||
'plant_id' => $plantId,
|
|
||||||
'plant' => $plantId,
|
|
||||||
'invoice_number' => $invoiceNumber,
|
|
||||||
'pallet_number' => null,
|
|
||||||
'serial_number' => null,
|
|
||||||
'sno_quantity' => null,
|
|
||||||
'created_by' => $operatorName,
|
|
||||||
'scanned_by' => $operatorName,
|
|
||||||
]);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$duplicateSerialCodes = array_unique($duplicateSerials);
|
|
||||||
|
|
||||||
if (!empty($duplicateSerialCodes)) {
|
|
||||||
Notification::make()
|
|
||||||
->title('Duplicate Serial Numbers Found')
|
|
||||||
->body('The following serial numbers are already exist in imported excel:<br>' . implode(', ', $duplicateSerialCodes))
|
|
||||||
->danger()
|
|
||||||
->duration(1200)
|
|
||||||
->send();
|
|
||||||
|
|
||||||
if ($disk->exists($filePath)) {
|
|
||||||
$disk->delete($filePath);
|
|
||||||
}
|
|
||||||
$this->dispatch('loadData', '', $plantId);
|
|
||||||
$this->form->fill([
|
|
||||||
'plant_id' => $plantId,
|
|
||||||
'invoice_number' => $invoiceNumber,
|
|
||||||
'pallet_number' => null,
|
|
||||||
'serial_number' => null,
|
|
||||||
'sno_quantity' => null,
|
|
||||||
'created_by' => $operatorName,
|
|
||||||
'scanned_by' => $operatorName,
|
|
||||||
]);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!$validRowsFound) {
|
|
||||||
Notification::make()
|
|
||||||
->title('Invalid Locator Invoice Found')
|
|
||||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
|
||||||
->danger()
|
|
||||||
->duration(1200)
|
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($filePath)) {
|
if ($disk->exists($filePath)) {
|
||||||
@@ -305,6 +265,63 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => 0,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
|
'created_by' => $operatorName,
|
||||||
|
'scanned_by' => $operatorName,
|
||||||
|
]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$duplicateSerialCodes = array_unique($duplicateSerials);
|
||||||
|
|
||||||
|
if (!empty($duplicateSerialCodes)) {
|
||||||
|
Notification::make()
|
||||||
|
->title('Duplicate Serial Numbers Found')
|
||||||
|
->body('The following serial numbers are already exist in imported excel:<br>' . implode(', ', $duplicateSerialCodes))
|
||||||
|
->danger()
|
||||||
|
->duration(5000)
|
||||||
|
->send();
|
||||||
|
|
||||||
|
if ($disk->exists($filePath)) {
|
||||||
|
$disk->delete($filePath);
|
||||||
|
}
|
||||||
|
$this->dispatch('loadData', '', $plantId);
|
||||||
|
$this->form->fill([
|
||||||
|
'plant_id' => $plantId,
|
||||||
|
'invoice_number' => $invoiceNumber,
|
||||||
|
'pallet_number' => null,
|
||||||
|
'serial_number' => null,
|
||||||
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
|
'created_by' => $operatorName,
|
||||||
|
'scanned_by' => $operatorName,
|
||||||
|
]);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$validRowsFound) {
|
||||||
|
Notification::make()
|
||||||
|
->title('Invalid Locator Invoice Found')
|
||||||
|
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||||
|
->danger()
|
||||||
|
->duration(5000)
|
||||||
|
->send();
|
||||||
|
|
||||||
|
if ($disk->exists($filePath)) {
|
||||||
|
$disk->delete($filePath);
|
||||||
|
}
|
||||||
|
$this->dispatch('loadData', '', $plantId);
|
||||||
|
$this->form->fill([
|
||||||
|
'plant_id' => $plantId,
|
||||||
|
'plant' => $plantId,
|
||||||
|
'invoice_number' => null,
|
||||||
|
'pallet_number' => null,
|
||||||
|
'serial_number' => null,
|
||||||
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -324,7 +341,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Duplicate Serial Numbers Found')
|
->title('Duplicate Serial Numbers Found')
|
||||||
->body('The following serial numbers already exist with a different invoice number:<br>' . implode(', ', $existingSerials))
|
->body('The following serial numbers already exist with a different invoice number:<br>' . implode(', ', $existingSerials))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($filePath))
|
if ($disk->exists($filePath))
|
||||||
@@ -339,6 +356,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => 0,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -405,22 +424,28 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->info()
|
->info()
|
||||||
->duration(800)
|
->duration(800)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($filePath))
|
if ($disk->exists($filePath))
|
||||||
{
|
{
|
||||||
$disk->delete($filePath);
|
$disk->delete($filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)
|
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)->where('invoice_number', $invoiceNumber)->count();
|
||||||
->where('invoice_number', $invoiceNumber)
|
|
||||||
->count();
|
$pendingCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->whereNull('scanned_status')->orWhere('scanned_status', '=', '')->count();
|
||||||
|
|
||||||
|
$scannedCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->where('scanned_status', '=', 'Scanned')->count();
|
||||||
|
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => $invoiceNumber,
|
||||||
|
'update_invoice' => 0,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -454,23 +479,19 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Updated Invoice File Not Found')
|
->title('Updated Invoice File Not Found')
|
||||||
->body("Import the updated 'Invoice' file to proceed..!")
|
->body("Import the updated 'Invoice' file to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->form->fill([
|
|
||||||
'plant_id' => $plantId,
|
|
||||||
'plant' => $plantId,
|
|
||||||
'invoice_number' => $invoiceNumber,
|
|
||||||
'serial_number' => null,
|
|
||||||
]);
|
|
||||||
$this->dispatch('loadData', '', $plantId);
|
$this->dispatch('loadData', '', $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => null,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -489,7 +510,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid Updated Locator Invoice Found')
|
->title('Invalid Updated Locator Invoice Found')
|
||||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($filePath))
|
if ($disk->exists($filePath))
|
||||||
@@ -500,10 +521,12 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => null,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -552,7 +575,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid Serial Numbers Found')
|
->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))
|
->body('The following serial numbers should contain minimum 9 digit (and maximum 20 digit) alpha numeric values:<br>' . implode(', ', $uniqueSerialCodes))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($filePath)) {
|
if ($disk->exists($filePath)) {
|
||||||
@@ -565,7 +588,9 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => $invoiceNumber,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -579,7 +604,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Duplicate Serial Numbers Found')
|
->title('Duplicate Serial Numbers Found')
|
||||||
->body('The following serial numbers are already exist in imported excel:<br>' . implode(', ', $duplicateSerialCodes))
|
->body('The following serial numbers are already exist in imported excel:<br>' . implode(', ', $duplicateSerialCodes))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($filePath))
|
if ($disk->exists($filePath))
|
||||||
@@ -593,7 +618,9 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => $invoiceNumber,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -605,7 +632,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invalid Updated Locator Invoice Found')
|
->title('Invalid Updated Locator Invoice Found')
|
||||||
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
->body('Uploaded excel sheet is empty or<br>contains no valid data.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($filePath)) {
|
if ($disk->exists($filePath)) {
|
||||||
@@ -615,10 +642,12 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => null,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -638,7 +667,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Duplicate Serial Numbers Found')
|
->title('Duplicate Serial Numbers Found')
|
||||||
->body('The following serial numbers already exist with a different invoice number:<br>' . implode(', ', $existingSerials))
|
->body('The following serial numbers already exist with a different invoice number:<br>' . implode(', ', $existingSerials))
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($filePath)) {
|
if ($disk->exists($filePath)) {
|
||||||
@@ -651,7 +680,9 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => $invoiceNumber,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -697,22 +728,28 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->info()
|
->info()
|
||||||
->duration(800)
|
->duration(800)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
if ($disk->exists($filePath))
|
if ($disk->exists($filePath))
|
||||||
{
|
{
|
||||||
$disk->delete($filePath);
|
$disk->delete($filePath);
|
||||||
}
|
}
|
||||||
|
|
||||||
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)
|
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)->where('invoice_number', $invoiceNumber)->count();
|
||||||
->where('invoice_number', $invoiceNumber)
|
|
||||||
->count();
|
$pendingCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->whereNull('scanned_status')->orWhere('scanned_status', '=', '')->count();
|
||||||
|
|
||||||
|
$scannedCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->where('scanned_status', '=', 'Scanned')->count();
|
||||||
|
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => $invoiceNumber,
|
||||||
|
'update_invoice' => 0,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -730,9 +767,11 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->duration(1000)
|
->duration(1000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)
|
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)->where('invoice_number', $invoiceNumber)->count();
|
||||||
->where('invoice_number', $invoiceNumber)
|
|
||||||
->count();
|
$pendingCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->whereNull('scanned_status')->orWhere('scanned_status', '=', '')->count();
|
||||||
|
|
||||||
|
$scannedCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->where('scanned_status', '=', 'Scanned')->count();
|
||||||
|
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
@@ -741,6 +780,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -755,13 +796,16 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Error: Locator invoice insertion (or updation).')
|
->title('Error: Locator invoice insertion (or updation).')
|
||||||
->body($e->getMessage())
|
->body($e->getMessage())
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
|
||||||
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)
|
|
||||||
->where('invoice_number', $invoiceNumber)
|
|
||||||
->count();
|
|
||||||
|
|
||||||
|
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)->where('invoice_number', $invoiceNumber)->count();
|
||||||
|
|
||||||
|
$pendingCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->whereNull('scanned_status')->orWhere('scanned_status', '=', '')->count();
|
||||||
|
|
||||||
|
$scannedCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->where('scanned_status', '=', 'Scanned')->count();
|
||||||
|
|
||||||
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
@@ -769,6 +813,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -812,17 +858,19 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invoice Not Found')
|
->title('Invoice Not Found')
|
||||||
->body("Scanned invoice number '$invoiceNumber' does not exist in invoice table!<br>Import the scanned 'Invoice' file to proceed..!")
|
->body("Scanned invoice number '$invoiceNumber' does not exist in invoice table!<br>Import the scanned 'Invoice' file to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => null,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -856,10 +904,12 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => null,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -867,16 +917,20 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)->where('invoice_number', $invoiceNumber)->count();
|
||||||
|
|
||||||
|
$pendingCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->whereNull('scanned_status')->orWhere('scanned_status', '=', '')->count();
|
||||||
|
|
||||||
|
$scannedCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->where('scanned_status', '=', 'Scanned')->count();
|
||||||
|
|
||||||
if ($palletNumber == '' || $palletNumber == null)
|
if ($palletNumber == '' || $palletNumber == null)
|
||||||
{
|
{
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number can't be empty!")
|
->title("Pallet number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)->where('invoice_number', $invoiceNumber)
|
|
||||||
->count();
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
@@ -886,19 +940,20 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'update_invoice' => 0,
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)->where('invoice_number', $invoiceNumber)->count();
|
|
||||||
if (strlen($palletNumber) < 10)
|
if (strlen($palletNumber) < 10)
|
||||||
{
|
{
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNumber' must be at least 10 digits.")
|
->title("Pallet number '$palletNumber' must be at least 10 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -910,6 +965,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'update_invoice' => 0,
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -925,7 +982,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '{$palletNumber}' does not exist in pallet table.")
|
->title("Pallet number '{$palletNumber}' does not exist in pallet table.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -937,6 +994,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'update_invoice' => 0,
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -960,7 +1019,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '{$palletNumber}' does not completed the master packing!")
|
->title("Pallet number '{$palletNumber}' does not completed the master packing!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -972,6 +1031,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'update_invoice' => 0,
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1002,7 +1063,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
Notification::make()
|
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..!")
|
->title("Scanned pallet number '$palletNumber' does not have invoice serial numbers.<br>Scan the valid exist pallet number to start the scanning process..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -1014,6 +1075,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'update_invoice' => 0,
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1043,7 +1106,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Partial Pallet Serial Numbers Found")
|
->title("Partial Pallet Serial Numbers Found")
|
||||||
->body($missingSerialsString)
|
->body($missingSerialsString)
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -1055,6 +1118,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'update_invoice' => 0,
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1138,11 +1203,13 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => null,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'update_invoice' => 0,
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1150,6 +1217,10 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$pendingCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->whereNull('scanned_status')->orWhere('scanned_status', '=', '')->count();
|
||||||
|
|
||||||
|
$scannedCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->where('scanned_status', '=', 'Scanned')->count();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
@@ -1159,6 +1230,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'update_invoice' => 0,
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1228,11 +1301,13 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => null,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'update_invoice' => 0,
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1240,6 +1315,10 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$pendingCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->whereNull('scanned_status')->orWhere('scanned_status', '=', '')->count();
|
||||||
|
|
||||||
|
$scannedCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->where('scanned_status', '=', 'Scanned')->count();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
@@ -1249,6 +1328,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'update_invoice' => 0,
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1295,7 +1376,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invoice Not Found')
|
->title('Invoice Not Found')
|
||||||
->body("Scanned invoice number '$invoiceNumber' does not exist in invoice table!<br>Import the scanned 'Invoice' file to proceed..!")
|
->body("Scanned invoice number '$invoiceNumber' does not exist in invoice table!<br>Import the scanned 'Invoice' file to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
@@ -1304,7 +1385,9 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => $invoiceNumber,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1338,10 +1421,12 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => null,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1350,13 +1435,18 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
}
|
}
|
||||||
|
|
||||||
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)->where('invoice_number', $invoiceNumber)->count();
|
$snoCount = LocatorInvoiceValidation::where('plant_id', $plantId)->where('invoice_number', $invoiceNumber)->count();
|
||||||
|
|
||||||
|
$pendingCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->whereNull('scanned_status')->orWhere('scanned_status', '=', '')->count();
|
||||||
|
|
||||||
|
$scannedCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->where('scanned_status', '=', 'Scanned')->count();
|
||||||
|
|
||||||
if ($serialNumber == '' || $serialNumber == null)
|
if ($serialNumber == '' || $serialNumber == null)
|
||||||
{
|
{
|
||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number can't be empty!")
|
->body("Serial number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -1368,6 +1458,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'update_invoice' => 0,
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1379,7 +1471,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body('Serial number should contain minimum 9 digits and maximum 20 digits.')
|
->body('Serial number should contain minimum 9 digits and maximum 20 digits.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -1390,6 +1482,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1401,7 +1495,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body('Serial number must contain alpha-numeric values only.')
|
->body('Serial number must contain alpha-numeric values only.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -1412,6 +1506,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1426,7 +1522,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Unknown: Serial Number")
|
->title("Unknown: Serial Number")
|
||||||
->body("Serial number '{$serialNumber}' does not exist in invoice number '$invoiceNumber'.")
|
->body("Serial number '{$serialNumber}' does not exist in invoice number '$invoiceNumber'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -1437,6 +1533,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1448,7 +1546,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Completed: Serial Number")
|
->title("Completed: Serial Number")
|
||||||
->body("Serial number '{$serialNumber}' already completed the scanning process for the invoice number '$invoiceNumber'.")
|
->body("Serial number '{$serialNumber}' already completed the scanning process for the invoice number '$invoiceNumber'.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -1459,6 +1557,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1480,7 +1580,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Unknown: Serial Number")
|
->title("Unknown: Serial Number")
|
||||||
->body("Serial number '{$serialNumber}' does not exist in pallet table.")
|
->body("Serial number '{$serialNumber}' does not exist in pallet table.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -1491,6 +1591,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1513,7 +1615,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Incompleted Pallet: Serial Number")//Pallet number '{$existPallNum}' does not completed the master packing!
|
->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!")
|
->body("Serial number '{$serialNumber}' exist in pallet number '$existPallNum' and it does not completed the master packing!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -1524,6 +1626,8 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1609,11 +1713,13 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => null,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
'update_invoice' => 0,
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => null,
|
'sno_quantity' => 0,
|
||||||
|
'scan_quantity' => 0,
|
||||||
|
'pend_quantity' => 0,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1621,14 +1727,21 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
$pendingCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->whereNull('scanned_status')->orWhere('scanned_status', '=', '')->count();
|
||||||
|
|
||||||
|
$scannedCount = LocatorInvoiceValidation::where('invoice_number', $invoiceNumber)->where('plant_id', $plantId)->where('scanned_status', '=', 'Scanned')->count();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'plant_id' => $plantId,
|
'plant_id' => $plantId,
|
||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => $invoiceNumber,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
@@ -1640,7 +1753,7 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Failed to check Serial number '{$serialNumber}' existence.<br>Scan the valid serial number to proceed...")
|
->title("Failed to check Serial number '{$serialNumber}' existence.<br>Scan the valid serial number to proceed...")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
$this->dispatch('loadData', $invoiceNumber, $plantId);
|
||||||
@@ -1649,8 +1762,11 @@ class CreateLocatorInvoiceValidation extends CreateRecord
|
|||||||
'plant' => $plantId,
|
'plant' => $plantId,
|
||||||
'invoice_number' => $invoiceNumber,
|
'invoice_number' => $invoiceNumber,
|
||||||
'pallet_number' => null,
|
'pallet_number' => null,
|
||||||
|
'update_invoice' => 0,
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
'sno_quantity' => $snoCount,
|
'sno_quantity' => $snoCount,
|
||||||
|
'scan_quantity' => $scannedCount,
|
||||||
|
'pend_quantity' => $pendingCount,
|
||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ use Filament\Tables\Table;
|
|||||||
use Illuminate\Database\Eloquent\Builder;
|
use Illuminate\Database\Eloquent\Builder;
|
||||||
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
use Illuminate\Database\Eloquent\SoftDeletingScope;
|
||||||
use Filament\Forms\Components\Actions;
|
use Filament\Forms\Components\Actions;
|
||||||
use Filament\Notifications\Notification;
|
|
||||||
use Filament\Tables\Actions\ExportAction;
|
use Filament\Tables\Actions\ExportAction;
|
||||||
use Filament\Tables\Actions\ImportAction;
|
use Filament\Tables\Actions\ImportAction;
|
||||||
use Log;
|
use Log;
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number can't be empty")
|
->title("Pallet number can't be empty")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
@@ -85,7 +85,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial number is required to add.')
|
->title('Serial number is required to add.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -105,7 +105,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial number should contain minimum 9 digits and maximum 20 digits.')
|
->title('Serial number should contain minimum 9 digits and maximum 20 digits.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -125,7 +125,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial number must contain alpha-numeric values only.')
|
->title('Serial number must contain alpha-numeric values only.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -152,7 +152,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Scanned serial number '{$serialNumber}' already completed the scanning process and exist in invoice number : {$invoiceNumber}.<br>Scan the new serial number to add!")
|
->title("Scanned serial number '{$serialNumber}' already completed the scanning process and exist in invoice number : {$invoiceNumber}.<br>Scan the new serial number to add!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -179,7 +179,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
// Notification::make()
|
// Notification::make()
|
||||||
// ->title("Scanned serial number '{$serialNumber}' exists in pallet table .<br>scan the valid serial number to proceed...")
|
// ->title("Scanned serial number '{$serialNumber}' exists in pallet table .<br>scan the valid serial number to proceed...")
|
||||||
// ->danger()
|
// ->danger()
|
||||||
// ->duration(1200)
|
// ->duration(5000)
|
||||||
// ->send();
|
// ->send();
|
||||||
// $this->form->fill([
|
// $this->form->fill([
|
||||||
// 'serial_number' => null,
|
// 'serial_number' => null,
|
||||||
@@ -198,7 +198,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Scanned serial number '{$serialNumber}' is already exists in pallet number '{$palletNumber}'.<br>Scan the new serial number to proceed...")
|
->title("Scanned serial number '{$serialNumber}' is already exists in pallet number '{$palletNumber}'.<br>Scan the new serial number to proceed...")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
}
|
}
|
||||||
else if ($existingRecord && $existingRecord->pallet_number && $existingRecord->pallet_number != $palletNumber)
|
else if ($existingRecord && $existingRecord->pallet_number && $existingRecord->pallet_number != $palletNumber)
|
||||||
@@ -206,7 +206,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Scanned serial number '{$serialNumber}' already exists in pallet number '{$existingRecord->pallet_number}'.<br>Scan the new serial number to proceed...")
|
->title("Scanned serial number '{$serialNumber}' already exists in pallet number '{$existingRecord->pallet_number}'.<br>Scan the new serial number to proceed...")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
}
|
}
|
||||||
else if ($existingRecord && $existingRecord->locator_number)
|
else if ($existingRecord && $existingRecord->locator_number)
|
||||||
@@ -214,7 +214,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Scanned serial number '{$serialNumber}' is already exists in locator number '{$existingRecord->locator_number}'.<br>Scan the new serial number to proceed...")
|
->title("Scanned serial number '{$serialNumber}' is already exists in locator number '{$existingRecord->locator_number}'.<br>Scan the new serial number to proceed...")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
}
|
}
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -284,7 +284,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Failed to insert scanned serial number '$serialNumber' into pallet table!")
|
->title("Failed to insert scanned serial number '$serialNumber' into pallet table!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -305,7 +305,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
->title('Error: Serial not inserted.')
|
->title('Error: Serial not inserted.')
|
||||||
->body("Something went wrong while inserting serial number '{$serialNumber}' into pallet table!\nScan the new serial number to proceed...")
|
->body("Something went wrong while inserting serial number '{$serialNumber}' into pallet table!\nScan the new serial number to proceed...")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -381,7 +381,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNumber' does not have serial numbers to save!<br>Add the valid serial number into pallet number to proceed...")
|
->title("Pallet number '$palletNumber' does not have serial numbers to save!<br>Add the valid serial number into pallet number to proceed...")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -407,7 +407,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNumber' already completed the master packing!<br>Generate the new pallet number or choose from pending pallet list!")
|
->title("Pallet number '$palletNumber' already completed the master packing!<br>Generate the new pallet number or choose from pending pallet list!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $plantId);
|
$this->dispatch('loadData', '', $plantId);
|
||||||
@@ -438,7 +438,11 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
|
|
||||||
if ($updated > 0)
|
if ($updated > 0)
|
||||||
{
|
{
|
||||||
Notification::make()->title("Pallet number '$palletNumber' records saved successfully!")->success()->duration(800)->send();
|
Notification::make()
|
||||||
|
->title("Pallet number '$palletNumber' records saved successfully!")
|
||||||
|
->success()
|
||||||
|
->duration(800)
|
||||||
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $plantId);
|
$this->dispatch('loadData', '', $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
@@ -465,7 +469,11 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
|
|
||||||
if ($updated > 0)
|
if ($updated > 0)
|
||||||
{
|
{
|
||||||
Notification::make()->title("Pallet number '$palletNumber' completed the master packing successfully!")->success()->duration(800)->send();
|
Notification::make()
|
||||||
|
->title("Pallet number '$palletNumber' completed the master packing successfully!")
|
||||||
|
->success()
|
||||||
|
->duration(800)
|
||||||
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $plantId);
|
$this->dispatch('loadData', '', $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
@@ -507,7 +515,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Pallet number is required to remove.')
|
->title('Pallet number is required to remove.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -522,7 +530,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial number is required to remove.')
|
->title('Serial number is required to remove.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -542,7 +550,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial number should contain minimum 9 digits and maximum 20 digits.')
|
->title('Serial number should contain minimum 9 digits and maximum 20 digits.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -562,7 +570,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial number must contain alpha-numeric values only.')
|
->title('Serial number must contain alpha-numeric values only.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -588,7 +596,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Scanned serial number '{$serialNumber}' already completed the scanning process and exist in invoice number '{$invoiceExist->invoice_number}'.<br>Scan the valid exist serial number to remove!")
|
->title("Scanned serial number '{$serialNumber}' already completed the scanning process and exist in invoice number '{$invoiceExist->invoice_number}'.<br>Scan the valid exist serial number to remove!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -612,7 +620,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Serial number not exists in pallet table.')
|
->title('Serial number not exists in pallet table.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -639,8 +647,9 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Scanned serial number exist in pallet number '$palletExist->pallet_number'.<br>Scan the valid exist serial number to remove!")
|
->title("Scanned serial number exist in pallet number '$palletExist->pallet_number'.<br>Scan the valid exist serial number to remove!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
@@ -665,8 +674,9 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Scanned serial number exist in locator number '$locatorExist->locator_number'.<br>Scan the valid exist serial number to remove!")
|
->title("Scanned serial number exist in locator number '$locatorExist->locator_number'.<br>Scan the valid exist serial number to remove!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
$this->form->fill([
|
$this->form->fill([
|
||||||
'serial_number' => null,
|
'serial_number' => null,
|
||||||
@@ -715,7 +725,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Failed to remove scanned serial number '$serialNumber' from pallet table!")
|
->title("Failed to remove scanned serial number '$serialNumber' from pallet table!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
@@ -728,7 +738,6 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
'created_by' => $operatorName,
|
'created_by' => $operatorName,
|
||||||
'scanned_by' => $operatorName,
|
'scanned_by' => $operatorName,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//$this->dispatch('removeSno', $serialNumber, $palletNumber, $plantId);
|
//$this->dispatch('removeSno', $serialNumber, $palletNumber, $plantId);
|
||||||
@@ -770,7 +779,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title('Pallet number is required.')
|
->title('Pallet number is required.')
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $plantId);
|
$this->dispatch('loadData', '', $plantId);
|
||||||
@@ -791,7 +800,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Pallet number '$palletNumber' must be at least 10 digits.")
|
->title("Pallet number '$palletNumber' must be at least 10 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadLocator' ,'',$plantId);
|
$this->dispatch('loadLocator' ,'',$plantId);
|
||||||
@@ -823,7 +832,7 @@ class CreatePalletValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Already completed for pallet number $palletNumber!")
|
->title("Already completed for pallet number $palletNumber!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $palletNumber, $plantId);
|
$this->dispatch('loadData', $palletNumber, $plantId);
|
||||||
|
|||||||
@@ -1050,7 +1050,7 @@ class CreateProductionQuantity extends CreateRecord
|
|||||||
->body("Valid QR code scanned:<br>{$this->qrData}")
|
->body("Valid QR code scanned:<br>{$this->qrData}")
|
||||||
->success()
|
->success()
|
||||||
// ->persistent()
|
// ->persistent()
|
||||||
->seconds(2)
|
->duration(600)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$formQRData = null;
|
$formQRData = null;
|
||||||
|
|||||||
@@ -172,8 +172,9 @@ class ReworkLocatorInvoiceValidationResource extends Resource
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Scanned invoice number: '$invoiceNumber' does not completed the scanning process!<br>Has '$notCompletedCount' pending serial number to scan!<br>Please, scan the valid completed invoice number to proceed...")
|
->title("Scanned invoice number: '$invoiceNumber' does not completed the scanning process!<br>Has '$notCompletedCount' pending serial number to scan!<br>Please, scan the valid completed invoice number to proceed...")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$set('invoice_number', null);
|
$set('invoice_number', null);
|
||||||
$set('update_invoice', null);
|
$set('update_invoice', null);
|
||||||
return;
|
return;
|
||||||
@@ -209,8 +210,9 @@ class ReworkLocatorInvoiceValidationResource extends Resource
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Scanned pallet number '$palletNumber' does not completed the master packing!<br>Please, scan the valid completed pallet number to proceed...")
|
->title("Scanned pallet number '$palletNumber' does not completed the master packing!<br>Please, scan the valid completed pallet number to proceed...")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$set('scan_pallet_no', null);
|
$set('scan_pallet_no', null);
|
||||||
$set('update_pallet', null);
|
$set('update_pallet', null);
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Invoice Number")
|
->title("Invalid: Invoice Number")
|
||||||
->body("Invoice number can't be empty!")
|
->body("Invoice number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -83,7 +83,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invoice Not Found')
|
->title('Invoice Not Found')
|
||||||
->body("Invoice number '$invoiceNo' doesn't exist in invoice table!<br><br>Scan the valid exist 'Invoice Number' to proceed..!")
|
->body("Invoice number '$invoiceNo' doesn't exist in invoice table!<br><br>Scan the valid exist 'Invoice Number' to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -129,7 +129,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Pallet Number")
|
->title("Invalid: Pallet Number")
|
||||||
->body("Pallet number '$palletNo' must be at least 10 digits.")
|
->body("Pallet number '$palletNo' must be at least 10 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
||||||
@@ -154,7 +154,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
||||||
@@ -179,7 +179,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
|
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
||||||
@@ -252,7 +252,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Completed: Invoice Found')
|
->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'..!")
|
->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()
|
->info()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
||||||
@@ -278,7 +278,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invoice Not Completed')
|
->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..!")
|
->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()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -304,7 +304,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Choosed: Pallet Rework Type")
|
->title("Choosed: Pallet Rework Type")
|
||||||
->body("Scan valid pallet number to proceed..!")
|
->body("Scan valid pallet number to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -313,7 +313,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Rework Type Not Found")
|
->title("Rework Type Not Found")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -369,7 +369,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Invoice Number")
|
->title("Invalid: Invoice Number")
|
||||||
->body("Invoice number can't be empty!")
|
->body("Invoice number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -398,7 +398,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invoice Not Found')
|
->title('Invoice Not Found')
|
||||||
->body("Invoice number '$invoiceNo' doesn't exist in invoice table!<br><br>Scan the valid exist 'Invoice Number' to proceed..!")
|
->body("Invoice number '$invoiceNo' doesn't exist in invoice table!<br><br>Scan the valid exist 'Invoice Number' to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -444,7 +444,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Pallet Number")
|
->title("Invalid: Pallet Number")
|
||||||
->body("Pallet number can't be empty!")
|
->body("Pallet number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
||||||
@@ -470,7 +470,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Pallet Number")
|
->title("Invalid: Pallet Number")
|
||||||
->body("Pallet number '$palletNo' must be at least 10 digits.")
|
->body("Pallet number '$palletNo' must be at least 10 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
||||||
@@ -498,7 +498,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Pallet Not Found')
|
->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..!")
|
->body("Pallet number '$palletNo' doesn't exist in scanned invoice number '$invoiceNo'!<br><br>Scan the valid exist 'Pallet Number' to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
||||||
@@ -524,7 +524,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, $palletNo, $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, $palletNo, $plantId, $reworkType);
|
||||||
@@ -549,7 +549,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
|
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, $palletNo, $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, $palletNo, $plantId, $reworkType);
|
||||||
@@ -651,7 +651,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invoice Not Completed')
|
->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..!")
|
->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()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -679,7 +679,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Pallet Number")
|
->title("Invalid: Pallet Number")
|
||||||
->body("Pallet number can't be empty!")
|
->body("Pallet number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -705,7 +705,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Pallet Number")
|
->title("Invalid: Pallet Number")
|
||||||
->body("Pallet number '$palletNo' must be at least 10 digits.")
|
->body("Pallet number '$palletNo' must be at least 10 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -733,7 +733,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Pallet Not Found')
|
->title('Pallet Not Found')
|
||||||
->body("Pallet number '$palletNo' doesn't exist in pallet table!<br><br>Scan the valid exist 'Pallet Number' to proceed..!")
|
->body("Pallet number '$palletNo' doesn't exist in pallet table!<br><br>Scan the valid exist 'Pallet Number' to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -773,7 +773,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Locator Pallet Found')
|
->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..!")
|
->body("Scanned pallet number '$palletNo' exist in locator number '$locatExist'.<br><br>Remove scanned 'Pallet' from 'Locator' to proceed re-master packing..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -800,7 +800,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
||||||
@@ -825,7 +825,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
|
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
||||||
@@ -881,7 +881,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Completed: Pallet Found')
|
->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'..!")
|
->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()
|
->info()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
||||||
@@ -908,7 +908,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Pallet Not Completed')
|
->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..!")
|
->body("Scanned pallet number '$palletNo' doesn't completed the master packing!<br><br>Please, scan the valid completed pallet number to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -933,7 +933,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Rework Type Not Found")
|
->title("Rework Type Not Found")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -989,7 +989,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Invoice Number")
|
->title("Invalid: Invoice Number")
|
||||||
->body("Invoice number can't be empty!")
|
->body("Invoice number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -1018,7 +1018,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invoice Not Found')
|
->title('Invoice Not Found')
|
||||||
->body("Invoice number '$invoiceNo' doesn't exist in invoice table!<br><br>Scan the valid exist 'Invoice Number' to proceed..!")
|
->body("Invoice number '$invoiceNo' doesn't exist in invoice table!<br><br>Scan the valid exist 'Invoice Number' to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -1064,7 +1064,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Pallet Number")
|
->title("Invalid: Pallet Number")
|
||||||
->body("Pallet number '$palletNo' must be at least 10 digits.")
|
->body("Pallet number '$palletNo' must be at least 10 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
||||||
@@ -1089,7 +1089,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number can't be empty!")
|
->body("Serial number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
||||||
@@ -1115,7 +1115,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
||||||
@@ -1140,7 +1140,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
|
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
||||||
@@ -1168,7 +1168,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Serial Not Found')
|
->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..!")
|
->body("Serial number '$serialNo' doesn't exist in scanned invoice number '$invoiceNo'!<br><br>Scan the valid exist 'Serial Number' to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
$this->dispatch('loadData', $invoiceNo, '', $plantId, $reworkType);
|
||||||
@@ -1270,7 +1270,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Invoice Not Completed')
|
->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..!")
|
->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()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -1298,7 +1298,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Pallet Number")
|
->title("Invalid: Pallet Number")
|
||||||
->body("Pallet number can't be empty!")
|
->body("Pallet number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -1324,7 +1324,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Pallet Number")
|
->title("Invalid: Pallet Number")
|
||||||
->body("Pallet number '$palletNo' must be at least 10 digits.")
|
->body("Pallet number '$palletNo' must be at least 10 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -1352,7 +1352,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Pallet Not Found')
|
->title('Pallet Not Found')
|
||||||
->body("Pallet number '$palletNo' doesn't exist in pallet table!<br><br>Scan the valid exist 'Pallet Number' to proceed..!")
|
->body("Pallet number '$palletNo' doesn't exist in pallet table!<br><br>Scan the valid exist 'Pallet Number' to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
@@ -1392,7 +1392,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Locator Pallet Found')
|
->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..!")
|
->body("Scanned pallet number '$palletNo' exist in locator number '$locatExist'.<br><br>Remove scanned 'Pallet' from 'Locator' to proceed re-master packing..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '' , '', $plantId, $reworkType);
|
$this->dispatch('loadData', '' , '', $plantId, $reworkType);
|
||||||
@@ -1419,7 +1419,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number can't be empty!")
|
->body("Serial number can't be empty!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
||||||
@@ -1445,7 +1445,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
->body("Serial number should contain minimum 9 digits and maximum 20 digits.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
||||||
@@ -1470,7 +1470,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title("Invalid: Serial Number")
|
->title("Invalid: Serial Number")
|
||||||
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
|
->body("Serial number '$serialNo' must contain alpha-numeric values only.")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
||||||
@@ -1498,7 +1498,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Serial Not Found')
|
->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..!")
|
->body("Serial number '$serialNo' doesn't exist in pallet number '$palletNo'!<br><br>Scan the valid exist 'Serial Number' to proceed..!")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
$this->dispatch('loadData', '', $palletNo, $plantId, $reworkType);
|
||||||
@@ -1589,7 +1589,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
->title('Pallet Not Completed')
|
->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..!")
|
->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()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '' , '', $plantId, $reworkType);
|
$this->dispatch('loadData', '' , '', $plantId, $reworkType);
|
||||||
@@ -1614,7 +1614,7 @@ class CreateReworkLocatorInvoiceValidation extends CreateRecord
|
|||||||
Notification::make()
|
Notification::make()
|
||||||
->title("Rework Type Not Found")
|
->title("Rework Type Not Found")
|
||||||
->danger()
|
->danger()
|
||||||
->duration(1200)
|
->duration(5000)
|
||||||
->send();
|
->send();
|
||||||
|
|
||||||
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
$this->dispatch('loadData', '', '', $plantId, $reworkType);
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
namespace App\Http\Controllers;
|
namespace App\Http\Controllers;
|
||||||
|
|
||||||
use App\Models\InvoiceValidation;
|
use App\Models\InvoiceValidation;
|
||||||
|
use App\Models\ModuleList;
|
||||||
use App\Models\Plant;
|
use App\Models\Plant;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
@@ -16,6 +17,62 @@ class ModuleInvoiceTypeController extends Controller
|
|||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function get_invoiceFilter(Request $request)
|
||||||
|
{
|
||||||
|
$expectedUser = env('API_AUTH_USER');
|
||||||
|
$expectedPw = env('API_AUTH_PW');
|
||||||
|
|
||||||
|
$header_auth = $request->header('Authorization');
|
||||||
|
$expectedToken = $expectedUser . ':' . $expectedPw;
|
||||||
|
|
||||||
|
if ("Bearer " . $expectedToken != $header_auth)
|
||||||
|
{
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => 'Invalid authorization token!'
|
||||||
|
], 403);
|
||||||
|
}
|
||||||
|
|
||||||
|
$filterName = $request->header('filter-name');
|
||||||
|
|
||||||
|
if (empty($filterName))
|
||||||
|
{
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => "Filter Name can't be empty!"
|
||||||
|
], 404);
|
||||||
|
}
|
||||||
|
|
||||||
|
$headerValue = $request->header('filter-name');
|
||||||
|
|
||||||
|
if ($headerValue != 'Filter List') {
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => "Invalid value for 'module-name' header!"
|
||||||
|
], 404);
|
||||||
|
}
|
||||||
|
|
||||||
|
$uniqueModules = ModuleList::select('filter_name', 'created_at')
|
||||||
|
->orderBy('created_at', 'asc')
|
||||||
|
->get()
|
||||||
|
->unique('filter_name')
|
||||||
|
->pluck('filter_name')
|
||||||
|
->values();
|
||||||
|
|
||||||
|
if ($uniqueModules->isEmpty()) {
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => 'Filter names not found'
|
||||||
|
], 404);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'SUCCESS',
|
||||||
|
'status_description' => $uniqueModules
|
||||||
|
], 200);
|
||||||
|
}
|
||||||
|
|
||||||
// public function get_invoiceCountData(Request $request)
|
// public function get_invoiceCountData(Request $request)
|
||||||
// {
|
// {
|
||||||
// $expectedUser = env('API_AUTH_USER');
|
// $expectedUser = env('API_AUTH_USER');
|
||||||
|
|||||||
@@ -27,6 +27,126 @@ class StickerMasterController extends Controller
|
|||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function get_master_type(Request $request)
|
||||||
|
{
|
||||||
|
$expectedUser = env('API_AUTH_USER');
|
||||||
|
$expectedPw = env('API_AUTH_PW');
|
||||||
|
$header_auth = $request->header('Authorization');
|
||||||
|
$expectedToken = $expectedUser . ':' . $expectedPw;
|
||||||
|
|
||||||
|
if ("Bearer " . $expectedToken != $header_auth)
|
||||||
|
{
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => 'Invalid authorization token!'
|
||||||
|
], 403);
|
||||||
|
}
|
||||||
|
|
||||||
|
$plantCode = $request->header('plant-code');
|
||||||
|
$itemCode = $request->header('item-code');
|
||||||
|
|
||||||
|
if ($plantCode == null || $plantCode == '')
|
||||||
|
{
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => "Plant code can't be empty!"
|
||||||
|
], 400);
|
||||||
|
}
|
||||||
|
else if (Str::length($plantCode) < 4 || !is_numeric($plantCode) || !preg_match('/^[1-9]\d{3,}$/', $plantCode))
|
||||||
|
{
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => "Invalid plant code found!"
|
||||||
|
], 400);
|
||||||
|
}
|
||||||
|
else if ($itemCode == null || $itemCode == '')
|
||||||
|
{
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => "Item Code can't be empty!"
|
||||||
|
], 400);
|
||||||
|
}
|
||||||
|
else if (Str::length($itemCode) < 6 || !ctype_alnum($itemCode))
|
||||||
|
{
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => "Invalid item code found!"
|
||||||
|
], 400);
|
||||||
|
}
|
||||||
|
|
||||||
|
$plant = Plant::where('code', $plantCode)->first();
|
||||||
|
|
||||||
|
if (!$plant) {
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => "Plant not found!"
|
||||||
|
], 400);
|
||||||
|
}
|
||||||
|
|
||||||
|
$plantId = $plant->id;
|
||||||
|
|
||||||
|
$item = Item::where('code', $itemCode)->first();
|
||||||
|
|
||||||
|
if (!$item)
|
||||||
|
{
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => "Item Code not found in item table!"
|
||||||
|
], 404);
|
||||||
|
}
|
||||||
|
|
||||||
|
$item = Item::where('plant_id', $plantId)->where('code', $itemCode)->first();
|
||||||
|
|
||||||
|
if (!$item)
|
||||||
|
{
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => "Item Code not found in item table for the plant : '$plant->name'!"
|
||||||
|
], 404);
|
||||||
|
}
|
||||||
|
|
||||||
|
$stickerMaster = StickerMaster::where('plant_id', $plantId)->where('item_id', $item->id)->first();
|
||||||
|
|
||||||
|
if (!$stickerMaster)
|
||||||
|
{
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => "Item Code not found in sticker master table for the plant : '$plant->name'!"
|
||||||
|
], 404);
|
||||||
|
}
|
||||||
|
$serial_number_motor = $stickerMaster->serial_number_motor ?? null;
|
||||||
|
$serial_number_pump = $stickerMaster->serial_number_pump ?? null;
|
||||||
|
|
||||||
|
if ($serial_number_motor != 1 && $serial_number_pump != 1) {
|
||||||
|
return response()->json([
|
||||||
|
'status_code' => 'ERROR',
|
||||||
|
'status_description' => "The Item Code '$itemCode' does not have serial pump or serial motor selected!"
|
||||||
|
], 400);
|
||||||
|
}
|
||||||
|
|
||||||
|
$serialInfo = [];
|
||||||
|
|
||||||
|
if ($serial_number_motor == 1 && $serial_number_pump == 1)
|
||||||
|
{
|
||||||
|
$serialInfo[] = 'Serial Pump';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if ($serial_number_motor == 1) {
|
||||||
|
$serialInfo[] = 'Serial Motor';
|
||||||
|
}
|
||||||
|
if ($serial_number_pump == 1) {
|
||||||
|
$serialInfo[] = 'Serial Pump';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$output = [
|
||||||
|
'status_code' => 'SUCCESS',
|
||||||
|
'status_description' => implode(', ', $serialInfo),
|
||||||
|
];
|
||||||
|
return response()->json($output, 200);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display the specified resource.
|
* Display the specified resource.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -127,6 +127,9 @@ class PermissionSeeder extends Seeder
|
|||||||
Permission::updateOrCreate(['name' => 'view import mfm parameter']);
|
Permission::updateOrCreate(['name' => 'view import mfm parameter']);
|
||||||
Permission::updateOrCreate(['name' => 'view export mfm parameter']);
|
Permission::updateOrCreate(['name' => 'view export mfm parameter']);
|
||||||
|
|
||||||
|
Permission::updateOrCreate(['name' => 'view import mfm meter']);
|
||||||
|
Permission::updateOrCreate(['name' => 'view export mfm meter']);
|
||||||
|
|
||||||
//Dashboard Permissions
|
//Dashboard Permissions
|
||||||
Permission::updateOrCreate(['name' => 'view invoice dashboard']); //invoice dashboard
|
Permission::updateOrCreate(['name' => 'view invoice dashboard']); //invoice dashboard
|
||||||
Permission::updateOrCreate(['name' => 'view production hourly count dashboard']); //hourly production
|
Permission::updateOrCreate(['name' => 'view production hourly count dashboard']); //hourly production
|
||||||
@@ -137,6 +140,8 @@ class PermissionSeeder extends Seeder
|
|||||||
Permission::updateOrCreate(['name' => 'view guard patrol day count dashboard']);
|
Permission::updateOrCreate(['name' => 'view guard patrol day count dashboard']);
|
||||||
Permission::updateOrCreate(['name' => 'view guard patrol hourly count dashboard']);
|
Permission::updateOrCreate(['name' => 'view guard patrol hourly count dashboard']);
|
||||||
Permission::updateOrCreate(['name' => 'view invoice serial quantity dashboard']);
|
Permission::updateOrCreate(['name' => 'view invoice serial quantity dashboard']);
|
||||||
|
Permission::updateOrCreate(['name' => 'create production sticker reprint page']);
|
||||||
|
|
||||||
|
|
||||||
//Send To Sap Permissions
|
//Send To Sap Permissions
|
||||||
Permission::updateOrCreate(['name' => 'view quality data send to sap']);
|
Permission::updateOrCreate(['name' => 'view quality data send to sap']);
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ use App\Http\Controllers\ModuleProductionOrderDataController;
|
|||||||
use App\Http\Controllers\ObdController;
|
use App\Http\Controllers\ObdController;
|
||||||
use App\Http\Controllers\PalletController;
|
use App\Http\Controllers\PalletController;
|
||||||
use App\Http\Controllers\PlantController;
|
use App\Http\Controllers\PlantController;
|
||||||
|
use App\Http\Controllers\ProductionStickerReprintController;
|
||||||
use App\Http\Controllers\StickerMasterController;
|
use App\Http\Controllers\StickerMasterController;
|
||||||
use App\Http\Controllers\TestingPanelController;
|
use App\Http\Controllers\TestingPanelController;
|
||||||
use App\Http\Controllers\UserController;
|
use App\Http\Controllers\UserController;
|
||||||
@@ -77,8 +78,12 @@ Route::get('machine/get-all-data', [MachineController::class, 'get_all_data']);
|
|||||||
|
|
||||||
Route::get('laser/item/get-master-data', [StickerMasterController::class, 'get_master']);
|
Route::get('laser/item/get-master-data', [StickerMasterController::class, 'get_master']);
|
||||||
|
|
||||||
|
Route::get('sticker/get-master-type-data', [StickerMasterController::class, 'get_master_type']);
|
||||||
|
|
||||||
Route::get('/download-qr-pdf/{palletNo}', [PalletController::class, 'downloadQrPdf'])->name('download-qr-pdf');
|
Route::get('/download-qr-pdf/{palletNo}', [PalletController::class, 'downloadQrPdf'])->name('download-qr-pdf');
|
||||||
|
|
||||||
|
Route::get('/download-qr1-pdf/{palletNo}', [ProductionStickerReprintController::class, 'downloadQrPdf'])->name('download-qr1-pdf');
|
||||||
|
|
||||||
//Production Dashboard Controller
|
//Production Dashboard Controller
|
||||||
|
|
||||||
Route::get('get/module-name/data', [ModuleController::class, 'get_module']);
|
Route::get('get/module-name/data', [ModuleController::class, 'get_module']);
|
||||||
@@ -105,6 +110,8 @@ Route::get('get/module-production-linestop/data', [ModuleProductionLineStopContr
|
|||||||
|
|
||||||
Route::get('get/module-invoice-type/data', [ModuleInvoiceDataController::class, 'get_invoiceData']);
|
Route::get('get/module-invoice-type/data', [ModuleInvoiceDataController::class, 'get_invoiceData']);
|
||||||
|
|
||||||
|
Route::get('get/module-invoice-filter/data', [ModuleInvoiceTypeController::class, 'get_invoiceFilter']);
|
||||||
|
|
||||||
Route::get('get/module-invoice-count/data', [ModuleInvoiceTypeController::class, 'get_invoiceCountData']);
|
Route::get('get/module-invoice-count/data', [ModuleInvoiceTypeController::class, 'get_invoiceCountData']);
|
||||||
|
|
||||||
Route::get('get/module-invoice-quantity/data', [ModuleInvoiceQuantityController::class, 'get_invoiceQuantityData']);
|
Route::get('get/module-invoice-quantity/data', [ModuleInvoiceQuantityController::class, 'get_invoiceQuantityData']);
|
||||||
|
|||||||
Reference in New Issue
Block a user