{include file="clearheader.html" landscape=true} {$report_type = ConfigHelper::getConfig('phpui.report_type')} {foreach from=$pages item=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}
{if $layout.username} {$layout.username}{/if} {if $layout.registry} {$layout.registry}{/if} {if $layout.group} {$layout.group}{/if}
LMS {$layout.lmsv} @ {$layout.hostname}
{$smarty.now|date_format:"%A, %x"}
{t a=$layout.logname}Created by: $a{/t}

{cycle values="white,grey" print=false} {section name=receiptlist loop=$receiptlist start=$totals.$item.rowstart max=$totals.$item.rows} {/section}
{trans("No.")} {trans("Number")}
{trans("Date")}
{trans("Customer")} {trans("Title")} {trans("Income")} {trans("Expense")} {trans("After")}
{counter}. {$receiptlist[receiptlist].number}
{$receiptlist[receiptlist].cdate|date_format:"%d.%m.%Y"}
{$receiptlist[receiptlist].name} {if $receiptlist[receiptlist].customerid}({$receiptlist[receiptlist].customerid|string_format:"%04d"}){/if}
{$receiptlist[receiptlist].zip} {$receiptlist[receiptlist].city} {$receiptlist[receiptlist].address}
{foreach from=$receiptlist[receiptlist].title item=title} {$title|truncate:"100":"":true}
{/foreach}
{if $receiptlist[receiptlist].value > 0}{$receiptlist[receiptlist].value|string_format:"%.2f"}{else}-{/if} {if $receiptlist[receiptlist].value < 0}{($receiptlist[receiptlist].value*-1)|string_format:"%.2f"}{else}-{/if} {$receiptlist[receiptlist].after|string_format:"%.2f"}
{trans("Page total:")} {$totals.$item.income|string_format:"%01.2f"} {$totals.$item.expense|string_format:"%01.2f"}
{trans("Transfered from previous page:")} {$totals.$previtem.totalincome|string_format:"%01.2f"} {$totals.$previtem.totalexpense|string_format:"%01.2f"}
{trans("Total from start of period:")} {$totals.$item.totalincome|string_format:"%01.2f"} {$totals.$item.totalexpense|string_format:"%01.2f"}
{if $report_type == 'pdf'} {if $item > 1}
{/if} {else} {/if} {foreachelse}
{$layout.pagetitle}
{if $layout.username} {$layout.username}{/if} {if $layout.registry} {$layout.registry}{/if}
LMS {$layout.lmsv} @ {$layout.hostname}
{$smarty.now|date_format:"%A, %x"}
{t a=$layout.logname}Created by: $a{/t}

{trans("No.")} {trans("Number")}
{trans("Date")}
{trans("Customer")} {trans("Title")} {trans("Income")} {trans("Expense")} {trans("After")}

{trans("No such cash receipts in database.")}

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