{$show_netto_column = false}
{foreach $minibilling as $phone => $types}{t a=$phone b=$datefrom c=$dateto}Minibilling for number $a (period{if $datefrom} from $b{/if}{if $dateto} to $c{/if}){/t}
{foreach $types as $type => $mb}| {if $type == $smarty.const.BILLING_RECORD_TYPE_VOICE_CALL} {trans("Call type")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_SMS} {trans("SMS type")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_MMS} {trans("MMS type")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_DATA_TRANSFER} {trans("Data transfer type")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_VIDEO_CALL} {trans("Video call type")} {/if} | {if $type != $smarty.const.BILLING_RECORD_TYPE_SMS && $type != $smarty.const.BILLING_RECORD_TYPE_MMS}{if $type == $smarty.const.BILLING_RECORD_TYPE_VOICE_CALL} {trans("Call time")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_SMS} {trans("Count")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_MMS} {trans("Count")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_DATA_TRANSFER} {trans("Volume")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_VIDEO_CALL} {trans("Video call time")} {/if} | {/if}{trans("Count")} | {if $show_netto_column}{trans("Net value")} | {/if}{trans("Gross value")} |
| {$group} | {if $type != $smarty.const.BILLING_RECORD_TYPE_SMS && $type != $smarty.const.BILLING_RECORD_TYPE_MMS}{if $type == $smarty.const.BILLING_RECORD_TYPE_VOICE_CALL} {$row.billed|duration_format} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_SMS} {$row.billed} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_MMS} {$row.billed} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_DATA_TRANSFER} {$row.billed|size_format} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_VIDEO_CALL} {$row.billed|duration_format} {/if} | {/if}{t a=$row.count}$a pcs.{/t} | {if $show_netto_column}{moneyf($row.brutto / 1.23)} | {/if}{moneyf($row.brutto)} |
| {trans("Total")} | {if $type != $smarty.const.BILLING_RECORD_TYPE_SMS && $type != $smarty.const.BILLING_RECORD_TYPE_MMS}{if $type == $smarty.const.BILLING_RECORD_TYPE_VOICE_CALL} {$summary.billed|duration_format} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_SMS} {$summary.billed} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_MMS} {$summary.billed} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_DATA_TRANSFER} {$summary.billed|size_format} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_VIDEO_CALL} {$summary.billed|duration_format} {/if} | {/if}{t a=$summary.count}$a pcs.{/t} | {if $show_netto_column}{moneyf($summary.brutto / 1.23)} | {/if}{moneyf($summary.brutto)} |
{t a=$datefrom b=$dateto}Minibilling summary (period{if $datefrom} from $a{/if}{if $dateto} to $b{/if}){/t}
{foreach $summaries as $type => $summarygroups}| {if $type == $smarty.const.BILLING_RECORD_TYPE_VOICE_CALL} {trans("Call type")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_SMS} {trans("SMS type")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_MMS} {trans("MMS type")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_DATA_TRANSFER} {trans("Data transfer type")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_VIDEO_CALL} {trans("Video call type")} {/if} | {if $type != $smarty.const.BILLING_RECORD_TYPE_SMS && $type != $smarty.const.BILLING_RECORD_TYPE_MMS}{if $type == $smarty.const.BILLING_RECORD_TYPE_VOICE_CALL} {trans("Call time")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_SMS} {trans("Count")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_MMS} {trans("Count")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_DATA_TRANSFER} {trans("Volume")} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_VIDEO_CALL} {trans("Video call time")} {/if} | {/if}{trans("Count")} | {if $show_netto_column}{trans("Net value")} | {/if}{trans("Gross value")} |
| {$group} | {if $type != $smarty.const.BILLING_RECORD_TYPE_SMS && $type != $smarty.const.BILLING_RECORD_TYPE_MMS}{if $type == $smarty.const.BILLING_RECORD_TYPE_VOICE_CALL} {$row.billed|duration_format} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_SMS} {$row.billed} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_MMS} {$row.billed} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_DATA_TRANSFER} {$row.billed|size_format} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_VIDEO_CALL} {$row.billed|duration_format} {/if} | {/if}{t a=$row.count}$a pcs.{/t} | {if $show_netto_column}{moneyf($row.brutto / 1.23)} | {/if}{moneyf($row.brutto)} |
| {trans("Total")} | {if $type != $smarty.const.BILLING_RECORD_TYPE_SMS && $type != $smarty.const.BILLING_RECORD_TYPE_MMS}{if $type == $smarty.const.BILLING_RECORD_TYPE_VOICE_CALL} {$summary.billed|duration_format} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_SMS} {$summary.billed} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_MMS} {$summary.billed} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_DATA_TRANSFER} {$summary.billed|size_format} {elseif $type == $smarty.const.BILLING_RECORD_TYPE_VIDEO_CALL} {$summary.billed|duration_format} {/if} | {/if}{t a=$summary.count}$a pcs.{/t} | {if $show_netto_column}{moneyf($summary.brutto / 1.23)} | {/if}{moneyf($summary.brutto)} |