Skip to content

Commit

Permalink
CRM-19621 fix receipts on separate membership payments to not have ex…
Browse files Browse the repository at this point in the history
…traneous line.

The additional line is arguably better in some use-cases, but weird from the point
of view that the line is covered in a separate email as well. It is also technically
more difficult & fragile so I am removing it.
  • Loading branch information
eileenmcnaughton committed Dec 1, 2016
1 parent 85c8c9e commit b5c6c4a
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,25 +101,16 @@
{$amount|crmMoney}
</td>
</tr>
{else}
{/if}
<tr>
<td {$labelStyle}>
{ts}Additional Contribution{/ts}
</td>
<td {$valueStyle}>
{$amount|crmMoney}
</td>
{ts}Total{/ts}
</td>
<td {$valueStyle}>
{$amount+$membership_amount|crmMoney}
</td>
</tr>
{/if}
{/if}
<tr>
<td {$labelStyle}>
{ts}Total{/ts}
</td>
<td {$valueStyle}>
{$amount+$membership_amount|crmMoney}
</td>
</tr>

{elseif !$useForMember && $lineItem and $priceSetID and !$is_quick_config}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@
{if $amount}
{if ! $is_separate_payment }
{ts}Contribution Amount{/ts}: {$amount|crmMoney}
{else}
{ts}Additional Contribution{/ts}: {$amount|crmMoney}
{/if}
{/if}
-------------------------------------------
{ts}Total{/ts}: {$amount+$membership_amount|crmMoney}
{/if}
{/if}
{elseif !$useForMember && $lineItem and $priceSetID & !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
---------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion sql/civicrm_generated.mysql

Large diffs are not rendered by default.

23 changes: 7 additions & 16 deletions xml/templates/message_templates/membership_online_receipt_html.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -101,25 +101,16 @@
{$amount|crmMoney}
</td>
</tr>
{else}
<tr>
<td {$labelStyle}>
{ts}Additional Contribution{/ts}
</td>
<td {$valueStyle}>
{$amount|crmMoney}
</td>
<td {$labelStyle}>
{ts}Total{/ts}
</td>
<td {$valueStyle}>
{$amount+$membership_amount|crmMoney}
</td>
</tr>
{/if}
{/if}
<tr>
<td {$labelStyle}>
{ts}Total{/ts}
</td>
<td {$valueStyle}>
{$amount+$membership_amount|crmMoney}
</td>
</tr>
{/if}

{elseif !$useForMember && $lineItem and $priceSetID and !$is_quick_config}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,10 @@
{if $amount}
{if ! $is_separate_payment }
{ts}Contribution Amount{/ts}: {$amount|crmMoney}
{else}
{ts}Additional Contribution{/ts}: {$amount|crmMoney}
{/if}
{/if}
-------------------------------------------
{ts}Total{/ts}: {$amount+$membership_amount|crmMoney}
{/if}
{/if}
{elseif !$useForMember && $lineItem and $priceSetID & !$is_quick_config}
{foreach from=$lineItem item=value key=priceset}
---------------------------------------------------------
Expand Down

0 comments on commit b5c6c4a

Please sign in to comment.