{include file="plug:hv_js.html"}
Zestawienie Bilingów
{cycle values="lucid,light" print=false} {assign var='lb' value=$info.billing} {assign var='sumcuscost' value=0} {assign var='sumcusinit' value=0} {assign var='sumrescost' value=0} {assign var='sumresinit' value=0} {assign var='sumsubscription' value=0} {assign var='sumprzychod' value=0} {section name=lb loop=$lb} {assign var='mscname' value=$lb[lb].msc} {math assign='cuscost' equation="(x+y+z)" x=$lb[lb].cost y=$lb[lb].init_charge z=$lb[lb].subscription} {math assign='rescost' equation="(x+y)" x=$lb[lb].reseller_cost y=$lb[lb].reseller_init_charge} {math assign='sumcuscost' equation="x+y" x=$sumcuscost y=$lb[lb].cost } {math assign='sumcusinit' equation="x+y" x=$sumcusinit y=$lb[lb].init_charge} {math assign='sumrescost' equation="x+y" x=$sumrescost y=$lb[lb].reseller_cost} {math assign='sumresinit' equation="x+y" x=$sumresinit y=$lb[lb].reseller_init_charge} {math assign='sumsubscription' equation="x+y" x=$sumsubscription y=$lb[lb].subscription} {if $lb[lb].subscription ne 0}{math assign='przychod' equation="(x-y)" x=$cuscost y=$rescost}{else}{math assign='przychod' equation="x*(-1)" x=$rescost}{/if} {math assign='sumprzychod' equation="x+y" x=$sumprzychod y=$przychod} {sectionelse} {/section} {math assign='sumcus' equation="x+y+z" x=$sumcuscost y=$sumcusinit z=$sumsubscription} {math assign='sumres' equation="x+y" x=$sumrescost y=$sumresinit}
 Terminal:       Rok:     Miesiąc:    
    Koszt Klienta Koszt Resellera    
 Rok   Miesiąc     Abonament      Rozmowy    Połączenie    Razem      Rozmowy    Połączenie    Razem      Przychód    LINK 
 {$lb[lb].rok}   {$miesiace[$mscname]}  {math assign='tempek' equation="x*y" x=$stvat y=$lb[lb].subscription}  {$tempek|string_format:"%.04f"}   {math assign='tempek' equation="x*y" x=$stvat y=$lb[lb].cost}  {$tempek|string_format:"%.04f"}  {math assign='tempek' equation="x*y" x=$stvat y=$lb[lb].init_charge}  {$tempek|string_format:"%.04f"}  {math assign='tempek' equation="x*y" x=$stvat y=$cuscost}  {$tempek|string_format:"%.04f"}   {math assign='tempek' equation="x*y" x=$stvat y=$lb[lb].reseller_cost}  {$tempek|string_format:"%.04f"}  {math assign='tempek' equation="x*y" x=$stvat y=$lb[lb].reseller_init_charge}  {$tempek|string_format:"%.04f"}  {math assign='tempek' equation="x*y" x=$stvat y=$rescost}  {$tempek|string_format:"%.04f"}   {math assign='tempek' equation="x*y" x=$stvat y=$przychod} {$tempek|string_format:"%.04f"}  

Brak bilingów

RAZEM :  {math assign='tempek' equation="x*y" x=$stvat y=$sumsubscription} {$tempek|string_format:"%.04f"}   {math assign='tempek' equation="x*y" x=$stvat y=$sumcuscost}  {$tempek|string_format:"%.04f"}  {math assign='tempek' equation="x*y" x=$stvat y=$sumcusinit}  {$tempek|string_format:"%.04f"}  {math assign='tempek' equation="x*y" x=$stvat y=$sumcus}  {$tempek|string_format:"%.04f"}   {math assign='tempek' equation="x*y" x=$stvat y=$sumrescost}  {$tempek|string_format:"%.04f"}  {math assign='tempek' equation="x*y" x=$stvat y=$sumresinit}  {$tempek|string_format:"%.04f"}  {math assign='tempek' equation="x*y" x=$stvat y=$sumres}  {$tempek|string_format:"%.04f"}   {math assign='tempek' equation="x*y" x=$stvat y=$sumprzychod} {$tempek|string_format:"%.04f"}