{$show_netto_column = false} {foreach $minibilling as $phone => $mb} {if $show_netto_column} {/if} {$total.time = 0} {$total.count = 0} {$total.brutto = 0} {foreach $mb as $group => $row} {if $show_netto_column} {/if} {$total.time = $total.time + $row.time} {$total.count = $total.count + $row.count} {$total.brutto = $total.brutto + $row.brutto} {if !isset($totals[$group])} {$totals[$group].time = 0} {$totals[$group].count = 0} {$totals[$group].brutto = 0} {/if} {$totals[$group].time = $totals[$group].time + $row.time} {$totals[$group].count = $totals[$group].count + $row.count} {$totals[$group].brutto = $totals[$group].brutto + $row.brutto} {/foreach} {if $show_netto_column} {/if}
{t a=$phone b=$datefrom c=$dateto}Minibilling for number $a (period{if $datefrom} from $b{/if}{if $dateto} to $c{/if}){/t}
{trans("Call type")} {trans("Call time")} {trans("Call count")} {trans("Net value")} {trans("Gross value")}
{$group} {$row.time|duration_format} {t a=$row.count}$a pcs.{/t} {moneyf($row.brutto / 1.23)} {moneyf($row.brutto)}
{trans("Total")} {$total.time|duration_format} {t a=$total.count}$a pcs.{/t} {moneyf($total.brutto / 1.23)} {moneyf($total.brutto)}
{/foreach} {if isset($totals) && count($minibilling) > 1} {if $show_netto_column} {/if} {$total.time = 0} {$total.count = 0} {$total.brutto = 0} {foreach $totals as $group => $row} {if $show_netto_column} {/if} {$total.time = $total.time + $row.time} {$total.count = $total.count + $row.count} {$total.brutto = $total.brutto + $row.brutto} {/foreach} {if $show_netto_column} {/if}
{t a=$datefrom b=$dateto}Minibilling summary (period{if $datefrom} from $a{/if}{if $dateto} to $b{/if}){/t}
{trans("Call type")} {trans("Call time")} {trans("Call count")} {trans("Net value")} {trans("Gross value")}
{$group} {$row.time|duration_format} {t a=$row.count}$a pcs.{/t} {moneyf($row.brutto / 1.23)} {moneyf($row.brutto)}
{trans("Total")} {$total.time|duration_format} {t a=$total.count}$a pcs.{/t} {moneyf($total.brutto / 1.23)} {moneyf($total.brutto)}
{/if}