Added short description logic in print panel 2
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 21s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 19s
Laravel Larastan / larastan (pull_request) Failing after 7m2s
Laravel Pint / pint (pull_request) Successful in 7m50s
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 15s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 21s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 19s
Laravel Larastan / larastan (pull_request) Failing after 7m2s
Laravel Pint / pint (pull_request) Successful in 7m50s
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user