Merge pull request 'Added serila number in method confirm serila update in stock data livewire page' (#473) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #473
This commit was merged in pull request #473.
This commit is contained in:
2026-03-11 07:35:45 +00:00

View File

@@ -209,12 +209,13 @@ class StockDataTable extends Component
} }
} }
public function confirmSerialFGUpdate($plantId, $location, $bin, $sNo, $stickerMasterId) public function confirmSerialFGUpdate($plantId, $location, $bin, $serial_number, $stickerMasterId)
{ {
$sNo = $serial_number;
$record = NotInStock::where('plant_id', $plantId) $record = NotInStock::where('plant_id', $plantId)
->where('location', $location) ->where('location', $location)
->where('sticker_master_id', $stickerMasterId) ->where('sticker_master_id', $stickerMasterId)
->where('serial_number', $sNo)
->where('bin', $bin) ->where('bin', $bin)
->first(); ->first();
@@ -225,7 +226,7 @@ class StockDataTable extends Component
'location' => $location, 'location' => $location,
'bin' => $bin, 'bin' => $bin,
'sticker_master_id' => $stickerMasterId, 'sticker_master_id' => $stickerMasterId,
'type' => '1', 'type' => '0',
'serial_number' => $sNo ?? null, 'serial_number' => $sNo ?? null,
'batch' => $batch ?? null, 'batch' => $batch ?? null,
'doc_no' => $docNo ?? null, 'doc_no' => $docNo ?? null,