Merge pull request 'Added clear serial numbers in random serial number livewire' (#1396) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 17s

Reviewed-on: #1396
This commit was merged in pull request #1396.
This commit is contained in:
2026-11-06 11:22:36 +00:00

View File

@@ -232,6 +232,14 @@ class RandomSerialNumberList extends Component
$this->serialNumbers = $serialNumbers ?: [''];
}
#[On('clear-serial-numbers')]
public function clearSerialNumbers(): void
{
$this->serialNumbers = [''];
$this->dispatch('sticker-options-clear', stickerOptions: '');
$this->dispatch('production-order-clear', productionOrder: '');
}
public function clear(){
$this->serialNumbers = [''];
$this->dispatch('sticker-options-clear', stickerOptions: '');