Merge pull request 'Changed logic in pdf controller' (#265) from ranjith-dev into master
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled

Reviewed-on: #265
This commit was merged in pull request #265.
This commit is contained in:
2026-01-28 10:22:47 +00:00

View File

@@ -873,6 +873,15 @@ class PdfController extends Controller
'status_description' => "Rework value should be either 'Yes' or 'No'!", 'status_description' => "Rework value should be either 'Yes' or 'No'!",
], 404); ], 404);
} }
else if ($rework == 'No')
{
if($scrapQty != 0){
return response()->json([
'status_code' => 'ERROR',
'status_description' => "Scrap Quanity value should be '0'!",
], 404);
}
}
try try
{ {