Skip to content

Commit

Permalink
Add Contributor Name to Offline Contribution Receipts
Browse files Browse the repository at this point in the history
  • Loading branch information
alifrumin committed Jan 13, 2020
1 parent df76a93 commit 0e0ed6b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CRM/Upgrade/Incremental/MessageTemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ protected function getTemplateUpdates() {
['name' => 'membership_online_receipt', 'type' => 'html'],
],
],
[
'version' => '5.23.alpha1',
'upgrade_descriptor' => ts('Add Contributor Name to Offline Contribution receipts'),
'templates' => [
['name' => 'contribution_offline_receipt', 'type' => 'text'],
['name' => 'contribution_offline_receipt', 'type' => 'html'],
],
],

];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@
{$formValues.contributionType_name}
</td>
</tr>
<tr>
<td {$labelStyle}>
{ts}Contributor Name{/ts}
</td>
<td {$valueStyle}>
{contact.display_name}
</td>
</tr>

{if $lineItem and !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

===========================================================
{ts}Financial Type{/ts}: {$formValues.contributionType_name}
{ts}Contributor{/ts}: {contact.display_name}
{if $lineItem}
{foreach from=$lineItem item=value key=priceset}
---------------------------------------------------------
Expand Down

0 comments on commit 0e0ed6b

Please sign in to comment.