From fdc0aed31c6b228032098118b9e702515d03fcb4 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Thu, 16 Jul 2026 15:39:29 +0530 Subject: [PATCH] added logic in cycle count --- app/Filament/Pages/CycleCount.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Filament/Pages/CycleCount.php b/app/Filament/Pages/CycleCount.php index d22f210..0feb666 100644 --- a/app/Filament/Pages/CycleCount.php +++ b/app/Filament/Pages/CycleCount.php @@ -1431,7 +1431,7 @@ class CycleCount extends Page $serial->update([ 'bin' => $bin ?? null, - 'batch' => $this->batch ?? null, + 'batch' => count($parts) !== 2 ? $this->batch : $serial->batch, // 'doc_no' => $this->docNo ?? null, 'scanned_status' => 'Scanned', 'scanned_quantity' => '1',