{*
+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2018 |
+--------------------------------------------------------------------+
| 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 $context EQ "Membership"}{ts}Fee{/ts} | {else}{ts}Qty{/ts} | {ts}Unit Price{/ts} | {ts}Total Price{/ts} | {if $context EQ "Contribution" && $action eq 2}{ts}Paid{/ts} | {ts}Owing{/ts} | {ts}Amount of Current Payment {/ts} |
{/if}
{/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 $context NEQ "Membership"}
{$line.qty} | {$line.unit_price|crmMoney} | {/if}{$line.line_total|crmMoney} | {if $pricesetFieldsCount}{$line.participant_count} | {/if} {if $context EQ "Contribution" && $action eq 2}{$pricefildTotal.LineItems[$line.price_field_value_id]|crmMoney} | {assign var="fildTotal" value=$line.line_total-$pricefildTotal[$pricefildTotal.id][$line.price_field_value_id]} {$fildTotal|crmMoney} | $  | {/if}|
{ts}Contribution Total{/ts}: | {$totalAmount|crmMoney} | {$pricefildTotal.total|crmMoney} | {assign var="total" value= $totalAmount-$pricefildTotal.total}{$total|crmMoney} | {literal} {/literal} | ||||
Unallocated Amount | {$total|crmMoney} |