diff --git a/app/Http/Controllers/PdfController.php b/app/Http/Controllers/PdfController.php index 0454c8c..032c699 100644 --- a/app/Http/Controllers/PdfController.php +++ b/app/Http/Controllers/PdfController.php @@ -873,6 +873,15 @@ class PdfController extends Controller 'status_description' => "Rework value should be either 'Yes' or 'No'!", ], 404); } + else if ($rework == 'No') + { + if($scrapQty != 0){ + return response()->json([ + 'status_code' => 'ERROR', + 'status_description' => "Scrap Quanity value should be '0'!", + ], 404); + } + } try {