Changed logic in pdf controller #265

Merged
jothi merged 1 commits from ranjith-dev into master 2026-01-28 10:22:47 +00:00
Showing only changes of commit dee82279c0 - Show all commits

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
{