{include file="header.html"}

{$layout.pagetitle}

{literal} {/literal}

{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}
{t}ID:{/t} {t}Date:{/t} {t}Value:{/t} {t}Customer:{/t} {t}Description:{/t} {t}Link to:{/t} {t}Total:{/t} {$listdata.total} 
{$division.name} {t}Download (CSV){/t}
{$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} {if !$item.customerid}   {else} {/if}

 

{t}No cash operations to import.{/t}

 

{t}Check All{/t} {t}Download all (TXT){/t} {t}Delete{/t} {t}Save{/t} {t}Import{/t}

{if $error.lines}

{t}Errors and Duplicated Entries{/t}:
{cycle name=err values="light,lucid" print=false} {foreach from=$error.lines key=key item=item} {/foreach}
{t}Line:{/t} {t}Content:{/t}
{$key}. {if is_array($item)} {if $item.date}{/if} {if $item.customer}{/if} {if $item.value}{/if} {if $item.comment}{/if}
{t}Date:{/t}{$item.date|date_format:"%Y/%m/%d"}
{t}Customer:{/t} {$item.customer}{if $item.customerid} ({$item.customerid|string_format:"%04d"}){/if}
{t}Value:{/t}{$item.value|money_format}
{t}Description:{/t}{$item.comment}
{else} {$item} {/if}

{/if}

{t}Import from file{/t}:
{t}Import file:{/t}
{t}Source:{/t}
{t}Submit{/t}

{t}Packages:{/t} ({t 0=10}last $0 packages{/t})
{cycle name=files values="light,lucid" print=false} {foreach from=$sourcefiles item=item} {foreachelse} {/foreach}
{t}Date:{/t} {t}Filename:{/t} {t}User:{/t} {t}Records:{/t}  
{$item.idate|date_format:"%Y/%m/%d %H:%M"} {$item.name} {$item.username} {$item.count|default:0} [ {t}Delete{/t} ]

 

{t}There are no packages in database.{/t}

 

{include file="footer.html"}