{* * 2012 Firmes * Mechanizmy obsługi rozszerzenia FirmesLink B2B * Obsluga wyswietlania historii dokumentow *} {extends file='page.tpl'} {block name="page_content"}
{if $B2Bdocuments} {foreach from=$B2Bdocuments item=document name=myLoop} {/foreach}
{l s='Dokument' mod='firmesb2b'} {l s='Data' mod='firmesb2b'} {l s='Netto' mod='firmesb2b'} {l s='Brutto' mod='firmesb2b'} {l s='Termin' mod='firmesb2b'} {l s='Do zapłaty' mod='firmesb2b'}
{$document.number} {if $document.db_documentId > 0 && $document.db_binaryId > 0 } {l s='Wydruk PDF' mod='firmesb2b'} {* {l s='Dokument EPP' mod='firmesb2b'} *} {/if} {if $document.db_documentId > 0 && $document.eppid < 0 } {l s='Dokument EPP' mod='firmesb2b'} {/if} {dateFormat date=$document.date full=0} {$document.total_net|string_format:"%.2f"} {$document.total_gros|string_format:"%.2f"} {if $document.payment_ammount > 0} {if $smarty.now|date_format:"%Y-%m-%d" > $document.payment_date} {/if} {dateFormat date=$document.payment_date full=0} ({$document.payment_lateness}d) {if $smarty.now|date_format:"%Y-%m-%d" > $document.payment_date} {/if} {/if} {if $document.payment_ammount > 0} {if $smarty.now|date_format:"%Y-%m-%d" > $document.payment_date} {/if} {$document.payment_ammount|string_format:"%.2f"} {if $smarty.now|date_format:"%Y-%m-%d" > $document.payment_date} {/if} {/if}
{if $pages > 0} {/if} {else}

{l s='Lista dokumentów jest pusta.' mod='firmesb2b'}

{/if}
{/block}