diff --git a/app/Http/Controllers/PdfController.php b/app/Http/Controllers/PdfController.php index b2d30d6..7ba6148 100644 --- a/app/Http/Controllers/PdfController.php +++ b/app/Http/Controllers/PdfController.php @@ -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) {