Added short description logic in print panel 2 #1586

Merged
jothi merged 1 commits from ranjith-dev into master 2026-12-01 09:29:03 +00:00

View File

@@ -268,7 +268,8 @@ class ProductionOrderController extends Controller
$toSerial = (int) $order->to_serial_number;
$itemCode = $order->item->code ?? '';
$itemDes = $order->item->description ?? '';
// $itemDes = $order->item->description ?? '';
$itemDes = $order->item->short_description ?? $order->item->description ?? '';
$stickers = [];
@@ -295,7 +296,16 @@ class ProductionOrderController extends Controller
$serialCount = substr($currentSerial, -6);
// QR format: PlantCode/ItemCode/YearMonth/Serial
$qrData = $plantCode . '/' .
// $qrData = $plantCode . '/' .
// $itemCode . '/' .
// $year . $month . '/' .
// $serialCount;
$wareHouseNo = Plant::where('code', $plantCode)->first();
$wareNo = $wareHouseNo->warehouse_number ?? '';
$qrData = $plantCode . $wareNo . '/' .
$itemCode . '/' .
$year . $month . '/' .
$serialCount;
@@ -328,9 +338,6 @@ class ProductionOrderController extends Controller
return $pdf->stream('stickers.pdf');
}
public function printitemserial($production_order, $plantCode)
{
$order = ProductionOrder::where('production_order', $production_order)->first();