Updated focus invoice and serial number logic in throughout invoice validation related pages (resource, create, livewire, blade)

This commit is contained in:
dhanabalan
2025-11-20 19:45:04 +05:30
parent c7391b113f
commit 21ff5fa21f
4 changed files with 55 additions and 21 deletions

View File

@@ -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()