Refactored alignment PalletPrintController page
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 11s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 18s
Laravel Pint / pint (pull_request) Successful in 2m33s
Laravel Larastan / larastan (pull_request) Failing after 3m44s

This commit is contained in:
dhanabalan
2026-03-06 09:53:06 +05:30
parent 0e3f680eea
commit e01dc71417

View File

@@ -105,10 +105,9 @@ class PalletPrintController extends Controller
->pluck('wire_packing_number')
->values();
$index = $completedPallets->search($pallet);
$currentPalletNo = ($index !== false) ? $index + 1 : 0;
$currentPalletNo = ($index != false) ? $index + 1 : 0;
$boxLabel = $currentPalletNo.'/'.$totalBoxes;
@@ -178,7 +177,6 @@ class PalletPrintController extends Controller
* Store a newly created resource in storage.
*/
// public function print(Request $request, $pallet, $plant)
// {
// $customerId = $request->query('customer');
@@ -205,7 +203,6 @@ class PalletPrintController extends Controller
// $customerCode = $customer->customer_po ?? '';
// $customerName = $customer->customer_name ?? '';
// $totalBoxes = WireMasterPacking::where('plant_id', $plant)
// ->where('customer_po_master_id', $customerId)
// ->distinct('wire_packing_number')
@@ -223,7 +220,6 @@ class PalletPrintController extends Controller
// ->pluck('wire_packing_number')
// ->values();
// $index = $completedPallets->search($pallet);
// $currentPalletNo = ($index !== false) ? $index + 1 : 0;