{* +--------------------------------------------------------------------+ | Copyright CiviCRM LLC. All rights reserved. | | | | This work is published under the GNU AGPLv3 license with some | | permitted exceptions and without any warranty. For full license | | and copyright information, see https://civicrm.org/licensing | +--------------------------------------------------------------------+ *} {* Displays contribution/event fees when price set is used. *} {if !$currency && $fee_currency} {assign var=currency value="$fee_currency"} {/if} {foreach from=$lineItem item=value key=priceset} {if $value neq 'skip'} {if $lineItem|@count GT 1} {* Header for multi participant registration cases. *} {if $priceset GT 0}
{/if} {ts}Participant {$priceset+1}{/ts} {$part.$priceset.info} {/if} {if $displayLineItemFinancialType} {/if} {if $context EQ "Membership"} {else} {if !$getTaxDetails} {/if} {/if} {if $getTaxDetails} {/if} {if $pricesetFieldsCount} {/if} {foreach from=$value item=line} {if $displayLineItemFinancialType} {/if} {if $context NEQ "Membership"} {else} {/if} {if !$getTaxDetails && $context NEQ "Membership"} {/if} {if $getTaxDetails} {if $line.tax_rate != "" || $line.tax_amount != ""} {else} {/if} {/if} {if $pricesetFieldsCount} {/if} {/foreach}
{ts}Item{/ts}{ts}Financial Type{/ts}{ts}Fee{/ts}{ts}Qty{/ts} {ts}Unit Price{/ts}{ts}Total Price{/ts}{ts}Subtotal{/ts} {ts}Tax Rate{/ts} {ts}Tax Amount{/ts} {ts}Total Amount{/ts}{ts}Total Participants{/ts}
{if $line.field_title && $line.html_type neq 'Text'}{$line.field_title} – {$line.label}{else}{$line.label}{/if} {if $line.description}
{$line.description}
{/if}
{$line.financial_type}{$line.qty} {$line.unit_price|crmMoney:$currency}{$line.line_total|crmMoney:$currency}{$line.line_total|crmMoney:$currency}{$line.line_total|crmMoney:$currency}{$taxTerm} ({$line.tax_rate}%) {$line.tax_amount|crmMoney:$currency} {$line.line_total+$line.tax_amount|crmMoney:$currency}{$line.participant_count}
{/if} {/foreach}
{if $getTaxDetails && $totalTaxAmount} {ts 1=$taxTerm}Total %1 Amount{/ts}: {$totalTaxAmount|crmMoney:$currency}
{/if} {if $context EQ "Contribution"} {ts}Contribution Total{/ts}: {elseif $context EQ "Event"} {if $totalTaxAmount} {ts}Event SubTotal: {$totalAmount-$totalTaxAmount|crmMoney:$currency}{/ts}
{/if} {ts}Event Total{/ts}: {elseif $context EQ "Membership"} {ts}Membership Fee Total{/ts}: {else} {ts}Total Amount{/ts}: {/if} {$totalAmount|crmMoney:$currency}
{if $pricesetFieldsCount} {ts}Total Participants{/ts}: {foreach from=$lineItem item=pcount} {if $pcount neq 'skip'} {assign var="lineItemCount" value=0} {foreach from=$pcount item=p_count} {assign var="intPCount" value=$p_count.participant_count|intval} {assign var="lineItemCount" value=$lineItemCount+$intPCount} {/foreach} {if $lineItemCount < 1 } {assign var="lineItemCount" value=1} {/if} {assign var="totalcount" value=$totalcount+$lineItemCount} {/if} {/foreach} {$totalcount} {/if}
{if $hookDiscount && $hookDiscount.message}
({$hookDiscount.message})
{/if} {literal} {/literal}