ranjith-dev #579
@@ -69,12 +69,27 @@ class ProductionOrderController extends Controller
|
||||
}
|
||||
|
||||
public function printpanel($production_order, $plantCode){
|
||||
|
||||
\Log::info('Print Panel Started', [
|
||||
'production_order' => $production_order,
|
||||
'plantCode' => $plantCode,
|
||||
]);
|
||||
|
||||
$order = ProductionOrder::where('production_order', $production_order)->first();
|
||||
|
||||
$wareHouseNo = Plant::where('code', $plantCode)->first();
|
||||
|
||||
$wareNo = $wareHouseNo->warehouse_number;
|
||||
|
||||
\Log::info('Plant Data', [
|
||||
'plant' => $wareHouseNo ? $wareHouseNo->toArray() : null,
|
||||
]);
|
||||
|
||||
\Log::info('Warehouse Number', [
|
||||
'warehouse_number' => $wareNo,
|
||||
'final_code' => $plantCode . $wareNo,
|
||||
]);
|
||||
|
||||
if (!$order) {
|
||||
abort(404, 'Production Order not found');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user