Added logs in production order controller
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Has been cancelled
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Has been cancelled
Laravel Larastan / larastan (pull_request) Has been cancelled
Laravel Pint / pint (pull_request) Has been cancelled
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Has been cancelled
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Has been cancelled
Laravel Larastan / larastan (pull_request) Has been cancelled
Laravel Pint / pint (pull_request) Has been cancelled
This commit is contained in:
@@ -69,12 +69,27 @@ class ProductionOrderController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function printpanel($production_order, $plantCode){
|
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();
|
$order = ProductionOrder::where('production_order', $production_order)->first();
|
||||||
|
|
||||||
$wareHouseNo = Plant::where('code', $plantCode)->first();
|
$wareHouseNo = Plant::where('code', $plantCode)->first();
|
||||||
|
|
||||||
$wareNo = $wareHouseNo->warehouse_number;
|
$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) {
|
if (!$order) {
|
||||||
abort(404, 'Production Order not found');
|
abort(404, 'Production Order not found');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user