{box title="Your subscriptions"} {$show_speeds = ConfigHelper::checkConfig('userpanel.show_speeds')} {$speed_unit_type = ConfigHelper::getConfig('userpanel.speed_unit_type')} {$speed_unit_aggregation_threshold = ConfigHelper::getConfig('userpanel.speed_unit_aggregation_threshold')} {if $show_speeds} {/if} {foreach from=$assignments item=assignment} {if ($assignment.tariffid || $assignment.liabilityid) && !($assignment.suspended || ($assignment.dateto < $smarty.now && $assignment.dateto) || ($assignment.datefrom > $smarty.now && $assignment.datefrom))} {if $show_speeds} {/if} {/if} {foreachelse} {/foreach} {if $show_speeds} {/if}
{trans("Subscription:")} {trans("Value:")} {trans("Discount:")} {trans("Accounting day:")}{trans("Downrate (ceil):")} {trans("Uprate (ceil):")}{trans("Invoice:")} {trans("Period:")}
{if ConfigHelper::checkConfig('userpanel.show_tariffname')}{$assignment.name}{/if} {$assignment.value|money_format} {if $assignment.pdiscount > 0}{$assignment.pdiscount}%{else}{if $assignment.vdiscount > 0}{$assignment.vdiscount|money_format}{else}-{/if}{/if} {$assignment.payday} {if empty($assignment.downrate)}-{else}{convert_to_units($assignment.downrate * 1000, $speed_unit_aggregation_threshold, $speed_unit_type)}/s{/if} ({if empty($assignment.downceil)}-{else}{convert_to_units($assignment.downceil * 1000, $speed_unit_aggregation_threshold, $speed_unit_type)}/s{/if}) {if empty($assignment.uprate)}-{else}{convert_to_units($assignment.uprate * 1000, $speed_unit_aggregation_threshold, $speed_unit_type)}/s{/if} ({if empty($assignment.upceil)}-{else}{convert_to_units($assignment.upceil * 1000, $speed_unit_aggregation_threshold, $speed_unit_type)}/s{/if}) {if $assignment.invoice}{trans("yes")}{else} {/if} {if $assignment.datefrom}{trans("from")} {$assignment.datefrom|date_format:"%Y/%m/%d"}{/if} {if $assignment.dateto}{trans("to")} {$assignment.dateto|date_format:"%Y/%m/%d"}{/if}

 

{trans("You haven't got any assigned subscriptions.")}

 

{trans("Total:")} {sum array=$assignments column="real_value" string_format=$LANGDEFS.$_language.money_format} ({sum array=$assignments column="real_disc_value" string_format=$LANGDEFS.$_language.money_format})   {sum array=$assignments column="real_downrate" default="-" assign="real_downrate"} {sum array=$assignments column="real_downceil" default="-" assign="real_downceil"} {if $real_downrate}{convert_to_units($real_downrate * 1000, $speed_unit_aggregation_threshold, $speed_unit_type)}/s{else}-{/if} ({if $real_downceil}{convert_to_units($real_downceil * 1000, $speed_unit_aggregation_threshold, $speed_unit_type)}/s{else}-{/if}) {sum array=$assignments column="real_uprate" default="-" assign="real_uprate"} {sum array=$assignments column="real_upceil" default="-" assign="real_upceil"} {if $real_uprate}{convert_to_units($real_uprate * 1000, $speed_unit_aggregation_threshold, $speed_unit_type)}/s{else}-{/if} ({if $real_upceil}{convert_to_units($real_upceil * 1000, $speed_unit_aggregation_threshold, $speed_unit_type)}/s{else}-{/if})    
{/box}