{*
+--------------------------------------------------------------------+
| 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}
{ts}Item{/ts} | {if $displayLineItemFinancialType}{ts}Financial Type{/ts} | {/if} {if $context EQ "Membership"}{ts}Fee{/ts} | {else}{ts}Qty{/ts} | {ts}Unit Price{/ts} | {if !$getTaxDetails}{ts}Total Price{/ts} | {/if} {/if} {if $getTaxDetails}{ts}Subtotal{/ts} | {ts}Tax Rate{/ts} | {ts}Tax Amount{/ts} | {ts}Total Amount{/ts} | {/if} {if $pricesetFieldsCount}{ts}Total Participants{/ts} | {/if}||
---|---|---|---|---|---|---|---|---|---|---|---|---|
{if $line.field_title && $line.html_type neq 'Text'}{$line.field_title} – {$line.label}{else}{$line.label}{/if} {if $line.description} {$line.description} {/if} |
{if $displayLineItemFinancialType}
{$line.financial_type} | {/if} {if $context NEQ "Membership"}{$line.qty} | {$line.unit_price|crmMoney:$currency} | {else}{$line.line_total|crmMoney:$currency} | {/if} {if !$getTaxDetails && $context NEQ "Membership"}{$line.line_total|crmMoney:$currency} | {/if} {if $getTaxDetails}{$line.line_total|crmMoney:$currency} | {if $line.tax_rate != "" || $line.tax_amount != ""}{$taxTerm} ({$line.tax_rate}%) | {$line.tax_amount|crmMoney:$currency} | {else}{/if} | {$line.line_total+$line.tax_amount|crmMoney:$currency} | {/if} {if $pricesetFieldsCount}{$line.participant_count} | {/if}