{include file="clearheader.html" landscape=true} {$report_type = ConfigHelper::getConfig('phpui.report_type')} {foreach $pages as $item}{assign var=previtem value=$item-1} {if $report_type == 'pdf'} {if $item > 1}{/if} {else} 1} style="page-break-before: always; border-style: none;"{/if}> {/if}
{$layout.pagetitle}{if $pagescount} ({t a=$item b=$pagescount}Page $a from $b{/t}){/if} LMS {$layout.lmsv} @ {$layout.hostname}
{$smarty.now|date_format:"%A, %x"}
{t a=$layout.logname}Created by: $a{/t}

{if $doctype == 'invoices'} {foreach $taxes as $tax} {if $tax.value} {/if} {/foreach} {/if} {if $doctype == 'invoices'} {/if} {if !isset($printonlysummary)} {cycle values="grey,white" print=false} {math assign=start equation="(x-1)*y" x=$item y=$rows} {section name=invoicelist loop=$invoicelist start=$start max=$rows} {if $doctype == 'invoices'} {foreach $taxes as $tax} {assign var=taxid value=$tax.id} {if $tax.value} {/if} {/foreach} {/if} {if $doctype == 'invoices'} {/if} {/section} {/if} {if $doctype == 'invoices'} {foreach $taxes as $tax} {assign var=taxid value=$tax.id} {if $tax.value} {/if} {/foreach} {/if} {if $doctype == 'invoices'} {/if} {if $doctype == 'invoices'} {foreach $taxes as $tax} {assign var=taxid value=$tax.id} {if $tax.value} {/if} {/foreach} {/if} {if $doctype == 'invoices'} {/if} {if $doctype == 'invoices'} {foreach $taxes as $tax} {assign var=taxid value=$tax.id} {if $tax.value} {/if} {/foreach} {/if} {if $doctype == 'invoices'} {/if}
{trans("No.")} {if $doctype == 'invoices'}{trans("Invoice No.")}{else}{trans("Debit Note No.")}{/if}
{trans("Draw-up date")}
{trans("Sale date")}
{trans("Deadline")}
{trans("Contractor")} {trans("Net value")} {$tax.label} {trans("Tax value")} {$tax.label} {if $doctype == 'invoices'}{trans("Gross value")}{else}{trans("Value")}{/if} {trans("Total Tax")}
{counter}. {$invoicelist[invoicelist].number}
{$invoicelist[invoicelist].cdate|date_format:"%d.%m.%Y"}
{if $invoicelist[invoicelist].sdate}{$invoicelist[invoicelist].sdate|date_format:"%d.%m.%Y"}{else}{$invoicelist[invoicelist].cdate|date_format:"%d.%m.%Y"}{/if}
{$invoicelist[invoicelist].pdate|date_format:"%d.%m.%Y"}
{$invoicelist[invoicelist].custname} {if !isset($printcustomerid)}({$invoicelist[invoicelist].customerid|string_format:"%04d"}){/if}{if $invoicelist[invoicelist].ten}, {$invoicelist[invoicelist].ten}{/if}
{$invoicelist[invoicelist].custaddress}
{$invoicelist[invoicelist].$taxid.val|string_format:"%01.2f"} {$invoicelist[invoicelist].$taxid.tax|string_format:"%01.2f"} {$invoicelist[invoicelist].brutto|string_format:"%01.2f"} {$invoicelist[invoicelist].tax|string_format:"%01.2f"}
{trans("Page total:")} {$totals.$item.val.$taxid|string_format:"%01.2f"} {$totals.$item.tax.$taxid|string_format:"%01.2f"} {$totals.$item.total|string_format:"%01.2f"} {$totals.$item.sumtax|string_format:"%01.2f"}
{trans("Transfered from previous page:")} {$totals.$previtem.allval.$taxid|string_format:"%01.2f"} {$totals.$previtem.alltax.$taxid|string_format:"%01.2f"} {$totals.$previtem.alltotal|string_format:"%01.2f"} {$totals.$previtem.allsumtax|string_format:"%01.2f"}
{trans("Total from start of period:")} {$totals.$item.allval.$taxid|string_format:"%01.2f"} {$totals.$item.alltax.$taxid|string_format:"%01.2f"} {$totals.$item.alltotal|string_format:"%01.2f"} {$totals.$item.allsumtax|string_format:"%01.2f"}
{if $report_type == 'pdf'} {if $item > 1}
{/if} {else} {/if} {foreachelse}
{$layout.pagetitle} LMS {$layout.lmsv} @ {$layout.hostname}
{$smarty.now|date_format:"%A, %x"}
{t a=$layout.logname}Created by: $a{/t}

{if $doctype == 'invoices'} {foreach $taxes as $tax} {if $tax.value} {/if} {/foreach} {/if} {if $doctype == 'invoices'} {/if}
{trans("No.")} {if $doctype == 'invoices'}{trans("Invoice No.")}{else}{trans("Debit Note No.")}{/if}
{trans("Draw-up date")}
{trans("Sale date")}
{trans("Deadline")}
{trans("Contractor")} {trans("Net value")} {$tax.label} {trans("Tax value")} {$tax.label} {if $doctype == 'invoices'}{trans("Gross value")}{else}{trans("Value")}{/if} {trans("Total Tax")}

{trans("No such invoices in selected time period.")}

{/foreach} {include file="clearfooter.html"}