{* $Id$ *} {icon name="print" alt="{tr}printable version{/tr}"} {icon name="export" alt="{tr}export table{/tr}"} {foreach from=$stack item=s}{cycle values="odd,even" assign="style"} {section name=posts loop=$s.maxcount}{assign var='i' value=$smarty.section.posts.iteration-1} {if !$smarty.section.posts.first}{/if} {if $smarty.section.posts.first} {/if} {/section} {foreachelse} {norecords _colspan=10} {/foreach}
{tr}Id{/tr} {tr}Date{/tr} {tr}Description{/tr} {tr}Debit{/tr} {tr}Credit{/tr}  
{tr}Account{/tr} {tr}Amount{/tr} {tr}Text{/tr} {tr}Account{/tr} {tr}Amount{/tr} {tr}Text{/tr}
1} rowspan="{$s.maxcount}"{/if} style="text-align:right"> {$s.stackId} 1} rowspan="{$s.maxcount}"{/if} style="text-align:right">{$s.stackDate|date_format:"%Y-%m-%d"} 1} rowspan="{$s.maxcount}"{/if}>{$s.stackDescription|escape}
{if $i<$s.debitcount}{$s.debit[$i].stackItemAccountId}{/if}  {if $i<$s.debitcount} {if $book.bookCurrencyPos==-1}{$book.bookCurrency} {/if} {$s.debit[$i].stackItemAmount|number_format:$book.bookDecimals:$book.bookDecPoint:$book.bookThousand} {if $book.bookCurrencyPos==1} {$book.bookCurrency}{/if}  {/if} {if $i<$s.debitcount}{$s.debit[$i].stackItemText|escape}{/if}  {if $i<$s.creditcount}{$s.credit[$i].stackItemAccountId}{/if}  {if $i<$s.creditcount} {if $book.bookCurrencyPos==-1}{$book.bookCurrency} {/if} {$s.credit[$i].stackItemAmount|number_format:$book.bookDecimals:$book.bookDecPoint:$book.bookThousand} {if $book.bookCurrencyPos==1} {$book.bookCurrency}{/if}  {/if} {if $i<$s.creditcount}{$s.credit[$i].stackItemText|escape}{/if} 
{ticket} {if $canBook} {/if}