ranjith-dev #397

Merged
jothi merged 2 commits from ranjith-dev into master 2026-02-25 05:50:08 +00:00
Showing only changes of commit e2ffde623d - Show all commits

View File

@@ -38,7 +38,7 @@
// Total fixed space
$fixedSpace = $titleHeight +
(5 * $headerRowHeight) + // 6 header rows
(5 * $headerRowHeight) +
$itemHeaderHeight +
$grossWeightHeight +
$netWeightHeight +
@@ -51,7 +51,7 @@
$itemRowHeight = floor(($spaceForItemsOnly / $numItems) * 10) / 10;
// $itemRowHeight -= 0.5;
$itemRowHeight -= 0.5;
if ($numItems == 1) {
$itemRowHeight -= 0.5;
}
@@ -79,24 +79,26 @@
$compensatedNetHeight = $netWeightHeight - 0.6;
$compensatedLicenseHeight = $licenseHeight - 0.6;
$compensatedCompanyHeight = $companyInfoHeight - 0.6;
// $qrBase64 = 'data:image/png;base64,' . base64_encode(
// QrCode::format('png')
// ->size(120) // 12mm ~ 120px
// ->margin(0)
// ->generate($pallet)
// $qrBase64 = 'data:image/png;base64,' . base64_encode(
// QrCode::format('png')
// ->size(120)
// ->margin(0)
// ->errorCorrection('H')
// ->generate($pallet)
// );
$qrBase64 = 'data:image/png;base64,' . base64_encode(
\SimpleSoftwareIO\QrCode\Facades\QrCode::format('png')
->size(120)
->margin(0)
->errorCorrection('H')
->generate($pallet)
);
@endphp
<style>
@page {
size: 85mm 100mm;
margin: 0;
/* margin: 0; */
margin: 0.5mm;
}
* {