Merge pull request 'Added short description logic in print panel 2' (#1586) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 18s

Reviewed-on: #1586
This commit was merged in pull request #1586.
This commit is contained in:
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();