Changed logic in pdf controller #265
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user