1
0
forked from poc/pds

Changed logic in pdf controller

This commit is contained in:
dhanabalan
2026-01-28 15:52:35 +05:30
parent 244500eb74
commit dee82279c0

View File

@@ -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
{