{literal} {/literal}
{if $lmscustomer}{$lmscustomer.lastname} {$lmscustomer.name} {$lmscustomer.address} {$lmscustomer.zip} {$lmscustomer.city},    ID : {$lmscustomer.id}
{/if}Wykaz połączeń telefonicznych za {$miesiace[$msc]} {$rok} rok
konto VoIP: {$cusname} , Terminal : {$terminal}
{if $divisions}{$divisions.name}
{$divisions.address}
{$divisions.zip} {$divisions.city}{/if}
{if $extends} {/if} {if $extends} {/if} {cycle values="grey,white" print=false} {assign var='sumduration' value=0} {assign var='sumcost' value=0} {assign var='suminit_charge' value=0} {assign var='sumreseller_cost' value=0} {assign var='sumreseller_init_charge' value=0} {assign var='summargin' value=0} {section name=l loop=$billing} {math assign='sumduration' equation="x+y" x=$sumduration y=$billing[l].duration} {math assign='sumcost' equation="x+y" x=$sumcost y=$billing[l].cost} {math assign='suminit_charge' equation="x+y" x=$suminit_charge y=$billing[l].init_charge} {math assign='sumreseller_cost' equation="x+y" x=$sumreseller_cost y=$billing[l].reseller_cost} {math assign='sumreseller_init_charge' equation="x+y" x=$sumreseller_init_charge y=$billing[l].reseller_init_charge} {math assign='summargin' equation="x+y" x=$summargin y=$billing[l].margin} {assign var='ctn' value=$billing[l].calltype} {if $extends} {/if} {/section} {if $billing|@count ne 0} {if $extends} {/if} {/if}
czas   Numer Numer   Koszty KlientaKoszt Resellera Zreali-
data rozmowy kieru. Inicjujcy Odbiorcy kraj kierunek-operator rozmowy połączenia cena/min rozmowy połączenie cena/min marża  zowane
{$billing[l].start_time|regex_replace:"/ /":" "}  {$billing[l].duration|seconds_to_hours}   {$ctypename[$ctn]}  {if $billing[l].caller=='unknown'}nieznany{else}{$billing[l].caller}{/if} {$billing[l].bill_cpb} {$billing[l].country} {$billing[l].description} {$billing[l].operator} {$billing[l].type} {math assign='tempek' equation="x*y" x=$stvat y=$billing[l].cost}  {$tempek|string_format:"%.02f"} {math assign='tempek' equation="x*y" x=$stvat y=$billing[l].init_charge}  {$tempek|string_format:"%.02f"} {math assign='tempek' equation="x*y" x=$stvat y=$billing[l].price}  {$tempek|string_format:"%.02f"}  {math assign='tempek' equation="x*y" x=$stvat y=$billing[l].reseller_cost}  {$tempek|string_format:"%.02f"} {math assign='tempek' equation="x*y" x=$stvat y=$billing[l].reseller_init_charge}  {$tempek|string_format:"%.02f"} {math assign='tempek' equation="x*y" x=$stvat y=$billing[l].reseller_price}  {$tempek|string_format:"%.02f"} {math assign='tempek' equation="x*y" x=$stvat y=$billing[l].margin} {$tempek|string_format:"%.02f"}   {$billing[l].platform_type}  {if $billing[l].subscription_used=='t'}A{else}P{/if} {if $billing[l].success_call=='t'}Tak{else}Nie{/if}
ŁĄCZNIE:  {$sumduration|seconds_to_hours}    {math assign='tempek' equation="x*y" x=$stvat y=$sumcost} {$tempek|string_format:"%.02f"} {math assign='tempek' equation="x*y" x=$stvat y=$suminit_charge} {$tempek|string_format:"%.02f"}  {math assign='tempek' equation="x*y" x=$stvat y=$sumreseller_cost} {$tempek|string_format:"%.02f"} {math assign='tempek' equation="x*y" x=$stvat y=$sumreseller_init_charge} {$tempek|string_format:"%.02f"}   {math assign='tempek' equation="x*y" x=$stvat y=$summargin} {$tempek|string_format:"%.02f"}     
{if $billing|@count ne 0} {math assign='allcost' equation="x+y" x=$sumcost y=$suminit_charge} {math assign='allkasa' equation="x+y" x=$allcost y=$subscription}
Całkowity koszt rozmów poza abonamentem {math assign='tempek' equation="x*y" x=$stvat y=$allcost}{$tempek|money_format}   
Wartość abonamentu {math assign='tempek' equation="x*y" x=$stvat y=$subscription}{$tempek|money_format}   
Łączna kwota do zapłaty {math assign='tempek' equation="x*y" x=$stvat y=$allkasa}{$tempek|money_format}   
{/if}