{*
+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| CiviCRM is free software; you can copy, modify, and distribute it |
| under the terms of the GNU Affero General Public License |
| Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
| |
| CiviCRM is distributed in the hope that it will be useful, but |
| WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| See the GNU Affero General Public License for more details. |
| |
| You should have received a copy of the GNU Affero General Public |
| License and the CiviCRM Licensing Exception along |
| with this program; if not, contact CiviCRM LLC |
| at info[AT]civicrm[DOT]org. If you have questions about the |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
*}
{* Displays contribution/event fees when price set is used. *}
{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} | {else}{$line.line_total|crmMoney} | {/if} {if !$getTaxDetails && $context NEQ "Membership"}{$line.line_total|crmMoney} | {/if} {if $getTaxDetails}{$line.line_total|crmMoney} | {if $line.tax_rate != "" || $line.tax_amount != ""}{$taxTerm} ({$line.tax_rate}%) | {$line.tax_amount|crmMoney} | {else}{/if} | {$line.line_total+$line.tax_amount|crmMoney} | {/if} {if $pricesetFieldsCount}{$line.participant_count} | {/if}