{*
+--------------------------------------------------------------------+
| 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. *}
{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} | ||||
{ts}Unallocated Amount{/ts} | {$total|crmMoney} |