removed validation in checking coil number in rework of process order
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Laravel Pint / pint (pull_request) Successful in 4m48s
Laravel Larastan / larastan (pull_request) Failing after 7m12s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Laravel Pint / pint (pull_request) Successful in 4m48s
Laravel Larastan / larastan (pull_request) Failing after 7m12s
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user