New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use tokens in offline contribution receipt (new installs) #22560
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,12 +45,12 @@ | |
</td> | ||
</tr> | ||
<tr> | ||
{if !empty($formValues.contributionType_name)} | ||
{if '{contribution.financial_type_id}'} | ||
<td {$labelStyle}> | ||
{ts}Financial Type{/ts} | ||
</td> | ||
<td {$valueStyle}> | ||
{$formValues.contributionType_name} | ||
{contribution.financial_type_id:label} | ||
</td> | ||
{/if} | ||
</tr> | ||
|
@@ -131,13 +131,13 @@ | |
{/foreach} | ||
{/if} | ||
|
||
{if isset($totalTaxAmount) && $totalTaxAmount !== 'null'} | ||
{if $isShowTax} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is a little weird that it now always shows $0 if there's no tax, but I don't think it's a big deal.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh wait it did before too if you have the tax setting turned on. But now it's adding a time component to the dates whereas it didn't before. I don't personally have a strong opinion on that. |
||
<tr> | ||
<td {$labelStyle}> | ||
{ts}Total Tax Amount{/ts} | ||
</td> | ||
<td {$valueStyle}> | ||
{$totalTaxAmount|crmMoney:$currency} | ||
{contribution.tax_amount} | ||
</td> | ||
</tr> | ||
{/if} | ||
|
@@ -147,60 +147,60 @@ | |
{ts}Total Amount{/ts} | ||
</td> | ||
<td {$valueStyle}> | ||
{$formValues.total_amount|crmMoney:$currency} | ||
{contribution.total_amount} | ||
</td> | ||
</tr> | ||
|
||
{if !empty($receive_date)} | ||
<tr> | ||
{if '{contribution.receive_date}'} | ||
<tr> | ||
<td {$labelStyle}> | ||
{ts}Date Received{/ts} | ||
</td> | ||
<td {$valueStyle}> | ||
{$receive_date|truncate:10:''|crmDate} | ||
{contribution.receive_date} | ||
</td> | ||
</tr> | ||
{/if} | ||
|
||
{if !empty($receipt_date)} | ||
{if '{contribution.receipt_date}'} | ||
<tr> | ||
<td {$labelStyle}> | ||
{ts}Receipt Date{/ts} | ||
</td> | ||
<td {$valueStyle}> | ||
{$receipt_date|truncate:10:''|crmDate} | ||
{contribution.receipt_date} | ||
</td> | ||
</tr> | ||
{/if} | ||
|
||
{if !empty($formValues.paidBy) and empty($formValues.hidden_CreditCard)} | ||
{if '{contribution.payment_instrument_id}' and empty($formValues.hidden_CreditCard)} | ||
<tr> | ||
<td {$labelStyle}> | ||
{ts}Paid By{/ts} | ||
</td> | ||
<td {$valueStyle}> | ||
{$formValues.paidBy} | ||
{contribution.payment_instrument_id:label} | ||
</td> | ||
</tr> | ||
{if !empty($formValues.check_number)} | ||
{if '{contribution.check_number}'} | ||
<tr> | ||
<td {$labelStyle}> | ||
{ts}Check Number{/ts} | ||
</td> | ||
<td {$valueStyle}> | ||
{$formValues.check_number} | ||
{contribution.check_number} | ||
</td> | ||
</tr> | ||
{/if} | ||
{/if} | ||
|
||
{if !empty($formValues.trxn_id)} | ||
{if '{contribution.trxn_id}'} | ||
<tr> | ||
<td {$labelStyle}> | ||
{ts}Transaction ID{/ts} | ||
</td> | ||
<td {$valueStyle}> | ||
{$formValues.trxn_id} | ||
{contribution.trxn_id} | ||
</td> | ||
</tr> | ||
{/if} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not blocking but I'm wondering if there's some way to phpdoc these to avoid somebody going "I grepped and couldn't find anywhere it's used so let's remove it". You have to hunt to find that there's reflection being used to find functions starting with
exportExtra
.