Skip to content

Commit

Permalink
dev/core#1344 Fix logic for displaying BillingName and Credit Card De…
Browse files Browse the repository at this point in the history
…tails in email Receipts
  • Loading branch information
seamuslee001 committed Oct 29, 2019
1 parent 9ee080e commit 05fc34f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@
</tr>
{/if}

{if ! ($contributeMode eq 'notify' OR $contributeMode eq 'directIPN') and $is_monetary}
{if $email}
{if $is_pay_later && !$isBillingAddressRequiredForPayLater}
<tr>
<th {$headerStyle}>
Expand All @@ -323,7 +323,7 @@
{$email}
</td>
</tr>
{elseif $amount GT 0}
{elseif $billingName}
<tr>
<th {$headerStyle}>
{ts}Billing Name and Address{/ts}
Expand All @@ -339,7 +339,7 @@
{/if}
{/if}

{if $contributeMode eq 'direct' AND !$is_pay_later AND $amount GT 0}
{if $credit_card_type}
<tr>
<th {$headerStyle}>
{ts}Credit Card Information{/ts}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@
{/foreach}
{/if}

{if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary}
{if $email}
{if $is_pay_later && !$isBillingAddressRequiredForPayLater}
===========================================================
{ts}Registered Email{/ts}

===========================================================
{$email}
{elseif $amount GT 0}
{elseif $billingName}
===========================================================
{ts}Billing Name and Address{/ts}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@
</tr>
{/if}

{if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
{if $billingName}
<tr>
<th {$headerStyle}>
{ts}Billing Name and Address{/ts}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
{if $checkNumber}
{ts}Check Number{/ts}: {$checkNumber}
{/if}
{if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later and !$isOnWaitlist and !$isRequireApproval}
{if $billingName}

==========================================================={if $pricesetFieldsCount }===================={/if}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
<td>
<table style="border: 1px solid #999; margin: 1em 0em 1em; border-collapse: collapse; width:100%;">

{if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later }
{if $billingName }
<tr>
<th {$headerStyle}>
{ts}Billing Name and Address{/ts}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
{/if}

{if $isPrimary }
{if $contributeMode ne 'notify' and !$isAmountzero and !$is_pay_later }
{if $billingName }

===========================================================
{ts}Billing Name and Address{/ts}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,14 @@
{/foreach}
{/if}

{if !( $contributeMode eq 'notify' OR $contributeMode eq 'directIPN' ) and $is_monetary}
{if $email}
{if $is_pay_later}
===========================================================
{ts}Registered Email{/ts}

===========================================================
{$email}
{elseif $amount GT 0 OR $membership_amount GT 0 }
{elseif $billingName}
===========================================================
{ts}Billing Name and Address{/ts}

Expand All @@ -172,7 +172,7 @@
{$email}
{/if} {* End ! is_pay_later condition. *}
{/if}
{if $contributeMode eq 'direct' AND !$is_pay_later AND ( $amount GT 0 OR $membership_amount GT 0 ) }
{if $credit_card_type}

===========================================================
{ts}Credit Card Information{/ts}
Expand Down

0 comments on commit 05fc34f

Please sign in to comment.