{include file="header.html"}
 Rok:      Miesiąc:      Połączenie:      Zrealizowane:       Widok rozszerzony |   |  Zamknij okno

 Konto VoIP: {$cusname} | Terminal : {$terminal} | Abonament : {$subscription|money_format}{if $lmscustomer} | Klient : {$lmscustomer.lastname} {$lmscustomer.name} {$lmscustomer.address} {$lmscustomer.zip} {$lmscustomer.city}{/if}

{if $extends} {/if} {if $extends} {/if} {cycle values="lucid,light" 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+d" x=$sumduration d=$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  Plat. AB.zowane
{$billing[l].start_time}  {$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"}