Updated focus invoice and serial number logic in throughout invoice validation related pages (resource, create, livewire, blade)
This commit is contained in:
@@ -65,6 +65,7 @@ class InvoiceDataTable extends Component
|
||||
$this->materialInvoice = false;
|
||||
$this->packageCount = 0;
|
||||
// $this->showCapacitorInput = false;
|
||||
$this->dispatch('focus-invoice-number');
|
||||
}
|
||||
|
||||
public function loadEmptyData($invoiceNumber, $plantId)
|
||||
@@ -178,7 +179,7 @@ class InvoiceDataTable extends Component
|
||||
|
||||
$this->packageCount += $stickCount - $scannedCount;
|
||||
}
|
||||
|
||||
$this->dispatch('focus-serial-number');
|
||||
}
|
||||
|
||||
public function loadMaterialData($invoiceNumber, $plantId)
|
||||
@@ -230,6 +231,7 @@ class InvoiceDataTable extends Component
|
||||
$row['material_type'] = 'N/A';
|
||||
}
|
||||
}
|
||||
$this->dispatch('focus-serial-number');
|
||||
}
|
||||
|
||||
// public function showCapacitorInputBox()
|
||||
@@ -255,6 +257,7 @@ class InvoiceDataTable extends Component
|
||||
public function cancelCapacitorInput()
|
||||
{
|
||||
$this->showCapacitorInput = false;
|
||||
$this->dispatch('focus-serial-number');
|
||||
}
|
||||
|
||||
public function processCapacitorInput()
|
||||
|
||||
Reference in New Issue
Block a user