removed validation in checking coil number in rework of process order #1098

Merged
jothi merged 1 commits from ranjith-dev into master 2026-09-25 11:49:24 +00:00

View File

@@ -1053,7 +1053,7 @@ class PdfController extends Controller
->where('process_order', $processOrder)
->where('line_id', $lineNamePlantId)
->where('coil_number', $coilNo)
->where('machine_name', $machineId)
// ->where('machine_name', $machineId)
->update([
// 'order_quantity' => $orderQty,
'received_quantity' => $receivedQty,
@@ -1081,14 +1081,13 @@ class PdfController extends Controller
if ($coilNo && Str::contains($coilNo, '.')) {
return response()->json([
'status_code' => 'ERROR',
'status_description1' => "Rework value should be 'Yes' for rework coil number '{$coilNo}'!",
'status_description' => "Rework value should be 'Yes' for rework coil number '{$coilNo}'!",
], 404);
}
$existing = ProcessOrder::where('plant_id', $plantId)
->where('process_order', $processOrder)
->where('coil_number', $coilNo)
->where('machine_name', $machineId)
->first();
if ($existing) {