{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 !in_array(DOC_DNOTE, $doctypes)} {foreach $taxes as $tax} {if $tax.value} {/if} {/foreach} {/if} {if !in_array(DOC_DNOTE, $doctypes)} {/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} {$invoice = $invoicelist[invoicelist]} {if !in_array(DOC_DNOTE, $doctypes)} {foreach $taxes as $tax} {assign var=taxid value=$tax.id} {if $tax.value} {/if} {/foreach} {/if} {if !in_array(DOC_DNOTE, $doctypes)} {/if} {/section} {/if} {if !in_array(DOC_DNOTE, $doctypes)} {foreach $taxes as $tax} {assign var=taxid value=$tax.id} {if $tax.value} {/if} {/foreach} {/if} {if !in_array(DOC_DNOTE, $doctypes)} {/if} {if !in_array(DOC_DNOTE, $doctypes)} {foreach $taxes as $tax} {assign var=taxid value=$tax.id} {if $tax.value} {/if} {/foreach} {/if} {if !in_array(DOC_DNOTE, $doctypes)} {/if} {foreach item=tax from=$taxes} {assign var=taxid value=$tax.id} {if $tax.value} {/if} {/foreach} {if !in_array(DOC_DNOTE, $doctypes)} {foreach $taxes as $tax} {assign var=taxid value=$tax.id} {if $tax.value} {/if} {/foreach} {/if} {if !in_array(DOC_DNOTE, $doctypes)} {/if} {foreach item=tax from=$taxes} {assign var=taxid value=$tax.id} {if $tax.value} {/if} {/foreach}
{trans("No.")} {if in_array(DOC_DNOTE, $doctypes)}{trans("Debit Note No.")}{else}{trans("Invoice No.")}{/if}
{trans("Draw-up date")}
{trans("Sale date")}
{trans("Deadline")}
{trans("Contractor")} {trans("Net value")} {$tax.label} {trans("Tax value")} {$tax.label} {if in_array(DOC_DNOTE, $doctypes)}{trans("Value")}{else}{trans("Gross 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}
{($invoice.$taxid.val * $invoice.currencyvalue)|string_format:"%01.2f"} {if $invoice.currency != Localisation::getCurrentCurrency()}
({moneyf($invoice.$taxid.val, $invoice.currency)}){/if}
{($invoice.$taxid.tax * $invoice.currencyvalue)|string_format:"%01.2f"} {if $invoice.currency != Localisation::getCurrentCurrency()}
({moneyf($invoice.$taxid.tax, $invoice.currency)}){/if}
{($invoice.brutto * $invoice.currencyvalue)|string_format:"%01.2f"} {if $invoice.currency != Localisation::getCurrentCurrency()}
({moneyf($invoice.brutto, $invoice.currency)}){/if}
{($invoice.tax * $invoice.currencyvalue)|string_format:"%01.2f"} {if $invoice.currency != Localisation::getCurrentCurrency()}
({moneyf($invoice.tax, $invoice.currency)}){/if}
{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 (with receipt):")} {$totals.$item.allval_receipt.$taxid|string_format:"%01.2f"} {$totals.$item.alltax_receipt.$taxid|string_format:"%01.2f"} {$totals.$item.alltotal_receipt|string_format:"%01.2f"} {$totals.$item.allsumtax_receipt|string_format:"%01.2f"}
{trans("Total from start of period (without receipt):")} {$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"}
{trans("Total from start of period:")} {($totals.$item.allval.$taxid+$totals.$item.allval_receipt.$taxid)|string_format:"%01.2f"} {($totals.$item.alltax.$taxid+$totals.$item.alltax_receipt.$taxid)|string_format:"%01.2f"} {($totals.$item.alltotal+$totals.$item.alltotal_receipt)|string_format:"%01.2f"} {($totals.$item.allsumtax+$totals.$item.allsumtax_receipt)|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 !in_array(DOC_DNOTE, $doctypes)} {foreach $taxes as $tax} {if $tax.value} {/if} {/foreach} {/if} {if !in_array(DOC_DNOTE, $doctypes)} {/if}
{trans("No.")} {if in_array(DOC_DNOTE, $doctypes)}{trans("Debit Note No.")}{else}{trans("Invoice No.")}{/if}
{trans("Draw-up date")}
{trans("Sale date")}
{trans("Deadline")}
{trans("Contractor")} {trans("Net value")} {$tax.label} {trans("Tax value")} {$tax.label} {if in_array(DOC_DNOTE, $doctypes)}{trans("Value")}{else}{trans("Gross value")}{/if} {trans("Total Tax")}

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

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