Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Extensions
CDNTaxReceipts
Commits
d08d9927
Commit
d08d9927
authored
Feb 09, 2016
by
AlanDixon
Browse files
better positioning on the receipt
parent
e6cd6caf
Changes
1
Hide whitespace changes
Inline
Side-by-side
cdntaxreceipts.functions.inc
View file @
d08d9927
...
...
@@ -318,15 +318,15 @@ function cdntaxreceipts_createPDF(&$pdf, $pdf_variables) {
$pdf
->
SetXY
(
$mymargin_left
+
$x_detailscolumn
,
$mymargin_top
+
$y_detailscolumnstart
+
6
);
$pdf
->
SetFont
(
'Helvetica'
,
'B'
,
8
);
$pdf
->
Write
(
10
,
"Issue Date: "
.
$issued_on
);
$pdf
->
SetXY
(
$mymargin_left
+
$x_detailscolumn
,
$mymargin_top
+
$y_detailscolumnstart
+
1
2
);
$pdf
->
SetXY
(
$mymargin_left
+
$x_detailscolumn
,
$mymargin_top
+
$y_detailscolumnstart
+
1
0
);
$pdf
->
Write
(
10
,
"Received on: "
.
$display_date
);
$pdf
->
SetXY
(
$mymargin_left
+
$x_detailscolumn
,
$mymargin_top
+
$y_detailscolumnstart
+
18
);
$pdf
->
Write
(
10
,
"Eligible Amount: $"
.
number_format
(
$amount
,
2
));
$pdf
->
SetXY
(
$mymargin_left
+
$x_detailscolumn
,
$mymargin_top
+
$y_detailscolumnstart
+
14
);
$location_issued
=
trim
(
CRM_Core_BAO_Setting
::
getItem
(
CDNTAX_SETTINGS
,
'org_location_issued'
));
if
(
$location_issued
)
{
$pdf
->
SetXY
(
$mymargin_left
+
$x_detailscolumn
,
$mymargin_top
+
$y_detailscolumnstart
+
24
);
$pdf
->
Write
(
10
,
"Location receipt issued: "
.
$location_issued
);
$pdf
->
SetXY
(
$mymargin_left
+
$x_detailscolumn
,
$mymargin_top
+
$y_detailscolumnstart
+
18
);
}
$pdf
->
Write
(
10
,
"Eligible Amount: $"
.
number_format
(
$amount
,
2
));
$pdf
->
SetXY
(
$mymargin_left
+
$x_detailscolumn
,
$mymargin_top
+
$y_detailscolumnstart
+
34
);
if
(
$issue_type
==
'annual'
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment