Skip to content
Snippets Groups Projects
Commit d3b0bbe1 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

more fixes for barcode layout CRM-12967

parent 6d4a64c8
No related branches found
No related tags found
No related merge requests found
...@@ -208,13 +208,13 @@ class CRM_Badge_BAO_Badge { ...@@ -208,13 +208,13 @@ class CRM_Badge_BAO_Badge {
switch ($formattedRow['barcode']['alignment']) { switch ($formattedRow['barcode']['alignment']) {
case 'L': case 'L':
$xAlign += -12; $xAlign += -14;
break; break;
case 'R': case 'R':
$xAlign += 30; $xAlign += 32;
break; break;
case 'C': case 'C':
$xAlign += 15; $xAlign += 9;
break; break;
} }
...@@ -235,7 +235,7 @@ class CRM_Badge_BAO_Badge { ...@@ -235,7 +235,7 @@ class CRM_Badge_BAO_Badge {
'stretchtext' => 0, 'stretchtext' => 0,
); );
$this->pdf->write1DBarcode($data['current_value'], 'C128', $xAlign, $y + $this->pdf->height - 10, '65', $this->pdf->write1DBarcode($data['current_value'], 'C128', $xAlign, $y + $this->pdf->height - 10, '70',
12, 0.4, $style, 'B'); 12, 0.4, $style, 'B');
} }
else { else {
...@@ -244,10 +244,10 @@ class CRM_Badge_BAO_Badge { ...@@ -244,10 +244,10 @@ class CRM_Badge_BAO_Badge {
switch ($formattedRow['barcode']['alignment']) { switch ($formattedRow['barcode']['alignment']) {
case 'L': case 'L':
$xAlign += -4; $xAlign += -5;
break; break;
case 'R': case 'R':
$xAlign += 63; $xAlign += 61;
break; break;
case 'C': case 'C':
$xAlign += 29; $xAlign += 29;
...@@ -263,8 +263,8 @@ class CRM_Badge_BAO_Badge { ...@@ -263,8 +263,8 @@ class CRM_Badge_BAO_Badge {
'position' => '', 'position' => '',
); );
$this->pdf->write2DBarcode($data['current_value'], 'QRCODE,H', $xAlign, $y + $this->pdf->height - 20, 23, $this->pdf->write2DBarcode($data['current_value'], 'QRCODE,H', $xAlign, $y + $this->pdf->height - 26, 30,
23, $style, 'B'); 30, $style, 'B');
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment