Commit 05e92f54 authored by dpradeep's avatar dpradeep

Removed notice and added images for invoice pdf.

parent 823af290
......@@ -2964,6 +2964,7 @@ WHERE contribution_id = %1 ";
if ($params['contribution']->currency) {
$currency = $params['contribution']->currency;
}
$diff = 1;
if (!empty($params['is_quick_config'])) {
$amount = $itemAmount;
if (!$amount) {
......@@ -2971,7 +2972,6 @@ WHERE contribution_id = %1 ";
}
}
else {
$diff = 1;
if ($context == 'changeFinancialType' || $params['contribution']->contribution_status_id == array_search('Cancelled', $contributionStatus)
|| $params['contribution']->contribution_status_id == array_search('Refunded', $contributionStatus)) {
$diff = -1;
......
......@@ -424,7 +424,7 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task {
'id' => $contribution->id,
'source' => $source,
'invoice_id' => $invoiceId,
'imageUploadURL' => $config->imageUploadURL,
'resourceBase' => $config->resourceBase,
'defaultCurrency' => $config->defaultCurrency,
'amount' => $contribution->total_amount,
'amountDue' => $amountDue,
......
......@@ -7,7 +7,7 @@
<body>
<table style = "margin-top:2px;padding-left:7px;">
<tr>
<td><img src = "{$imageUploadURL}/logo.png" height = "60" width = "108"></td>
<td><img src = "{$resourceBase}/i/civi99.png" height = "34px" width = "99px"></td>
</tr>
</table>
<center>
......@@ -170,7 +170,7 @@
</table>
<table style = "margin-top:5px;padding-right:45px;">
<tr>
<td><img src = "{$imageUploadURL}/img.png" height = "15" width = "630"></td>
<td><img src = "{$resourceBase}/i/contribute/cut_line.png" height = "15" width = "630"></td>
</tr>
</table>
<table style = "margin-top:6px;padding-right:20px;font-family: Arial, Verdana, sans-serif" width = "480" border = "0"cellpadding = "-5" cellspacing="19" id = "desc">
......@@ -228,7 +228,7 @@
{if $contribution_status_id == $refundedStatusId}
<table style = "margin-top:2px;padding-left:7px;page-break-before: always;">
<tr>
<td><img src = "{$imageUploadURL}/logo.png" height = "60" width = "108"></td>
<td><img src = "{$resourceBase}/i/civi99.png" height = "34px" width = "99px"></td>
</tr>
</table>
<center>
......@@ -398,7 +398,7 @@
<table style = "margin-top:5px;padding-right:45px;">
<tr>
<td><img src = "{$imageUploadURL}/img.png" height = "15" width = "630"></td>
<td><img src = "{$resourceBase}/i/contribute/cut_line.png" height = "15" width = "630"></td>
</tr>
</table>
......
......@@ -7,7 +7,7 @@
<body>
<table style = "margin-top:2px;padding-left:7px;">
<tr>
<td><img src = "{$imageUploadURL}/logo.png" height = "60" width = "108"></td>
<td><img src = "{$resourceBase}/i/civi99.png" height = "34px" width = "99px"></td>
</tr>
</table>
<center>
......@@ -170,7 +170,7 @@
</table>
<table style = "margin-top:5px;padding-right:45px;">
<tr>
<td><img src = "{$imageUploadURL}/img.png" height = "15" width = "630"></td>
<td><img src = "{$resourceBase}/i/contribute/cut_line.png" height = "15" width = "630"></td>
</tr>
</table>
<table style = "margin-top:6px;padding-right:20px;font-family: Arial, Verdana, sans-serif" width = "480" border = "0"cellpadding = "-5" cellspacing="19" id = "desc">
......@@ -228,7 +228,7 @@
{if $contribution_status_id == $refundedStatusId}
<table style = "margin-top:2px;padding-left:7px;page-break-before: always;">
<tr>
<td><img src = "{$imageUploadURL}/logo.png" height = "60" width = "108"></td>
<td><img src = "{$resourceBase}/i/civi99.png" height = "34px" width = "99px"></td>
</tr>
</table>
<center>
......@@ -398,7 +398,7 @@
<table style = "margin-top:5px;padding-right:45px;">
<tr>
<td><img src = "{$imageUploadURL}/img.png" height = "15" width = "630"></td>
<td><img src = "{$resourceBase}/i/contribute/cut_line.png" height = "15" width = "630"></td>
</tr>
</table>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment