Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
justinfreeman (Agileware)
Core
Commits
bfef5ad5
Commit
bfef5ad5
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Plain Diff
Merge pull request #1159 from kurund/CRM-12965
more fixes for barcode layout CRM-12967
parents
f9dff04b
d3b0bbe1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CRM/Badge/BAO/Badge.php
+8
-8
8 additions, 8 deletions
CRM/Badge/BAO/Badge.php
with
8 additions
and
8 deletions
CRM/Badge/BAO/Badge.php
+
8
−
8
View file @
bfef5ad5
...
...
@@ -208,13 +208,13 @@ class CRM_Badge_BAO_Badge {
switch
(
$formattedRow
[
'barcode'
][
'alignment'
])
{
case
'L'
:
$xAlign
+=
-
1
2
;
$xAlign
+=
-
1
4
;
break
;
case
'R'
:
$xAlign
+=
3
0
;
$xAlign
+=
3
2
;
break
;
case
'C'
:
$xAlign
+=
15
;
$xAlign
+=
9
;
break
;
}
...
...
@@ -235,7 +235,7 @@ class CRM_Badge_BAO_Badge {
'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'
);
}
else
{
...
...
@@ -244,10 +244,10 @@ class CRM_Badge_BAO_Badge {
switch
(
$formattedRow
[
'barcode'
][
'alignment'
])
{
case
'L'
:
$xAlign
+=
-
4
;
$xAlign
+=
-
5
;
break
;
case
'R'
:
$xAlign
+=
6
3
;
$xAlign
+=
6
1
;
break
;
case
'C'
:
$xAlign
+=
29
;
...
...
@@ -263,8 +263,8 @@ class CRM_Badge_BAO_Badge {
'position'
=>
''
,
);
$this
->
pdf
->
write2DBarcode
(
$data
[
'current_value'
],
'QRCODE,H'
,
$xAlign
,
$y
+
$this
->
pdf
->
height
-
2
0
,
2
3
,
2
3
,
$style
,
'B'
);
$this
->
pdf
->
write2DBarcode
(
$data
[
'current_value'
],
'QRCODE,H'
,
$xAlign
,
$y
+
$this
->
pdf
->
height
-
2
6
,
3
0
,
3
0
,
$style
,
'B'
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment