{extends file="layout.html"} {block name=title}::: LMS :{$layout.pagetitle|striphtml} :::{/block} {block name=module_content}

{$layout.pagetitle}

{foreach from=$divisions item=division}{if $division.list} {cycle values="light,lucid" print=false} {foreach from=$division.list item=item} {/foreach} {/if}{/foreach} {if !$listdata.total} {/if}
{trans("ID:")} {trans("Date:")} {trans("Value:")} {trans("Customer:")} {trans("Description:")} {trans("Link to:")} {trans("Total:")} {$listdata.total} 
{$division.name} {trans("Download (CSV)")}
{$item.id|string_format:"%04d"} {$item.date|date_format:"%Y/%m/%d"} {$item.value|money_format} {if $item.customer}{$item.customer} {elseif $item.customerid} {assign var=cust value=$item.customerid} {$customerlist.$cust.customername} {/if} {$item.description} {customerlist form="cashimport" customers=$customerlist selected=$item.customerid selectname="custid[{$item.id}]" inputname="customer[{$item.id}]"}

{trans("No cash operations to import.")}

{trans("Download all (TXT)")} {trans("Delete")} {trans("Save")} {trans("Import")}
{if $error.lines}
{trans("Errors and Duplicated Entries")}:
{cycle name=err values="light,lucid" print=false} {foreach $error.lines as $key => $item} {/foreach}
{trans("Line:")} {trans("Content:")}
{$key}. {if is_array($item)} {if $item.date}{/if} {if $item.customer}{/if} {if $item.value}{/if} {if $item.comment}{/if}
{trans("Date:")}{$item.date|date_format:"%Y/%m/%d"}
{trans("Customer:")} {$item.customer}{if $item.customerid} ({$item.customerid|string_format:"%04d"}){/if}
{trans("Value:")}{$item.value|money_format}
{trans("Description:")}{$item.comment}
{else} {$item} {/if}
{/if}
{trans("Import from file:")}
{trans("Import file:")}
{trans("Source:")}
{trans("Submit")}
{trans("Packages:")}
{foreach $sourcefiles as $item} {foreachelse} {/foreach}
{/block}