{* * 2012 Firmes * Mechanizmy obsługi rozszerzenia FirmesLink B2B * Obsluga wyswietlania historii dokumentow *} {extends file='page.tpl'} {block name="page_content"}
{if $document} {if $document && $details && count($details)} {foreach from=$details item=detail name=myLoop} {/foreach}
{l s='Nazwa' mod='firmesb2b'} {l s='Ilość' mod='firmesb2b'} {l s='JM' mod='firmesb2b'} {l s='Cena' mod='firmesb2b'} {l s='VAT' mod='firmesb2b'} {l s='Netto' mod='firmesb2b'} {l s='Brutto' mod='firmesb2b'}
{$detail.product_name} {$detail.quantity|string_format:"%.0f"} {$detail.unit} {$detail.price_net|string_format:"%.2f"} {$detail.tax_rate|string_format:"%.0f"}% {$detail.total_net|string_format:"%.2f"} {$detail.total_gros|string_format:"%.2f"}
{l s='Razem:' mod='firmesb2b'} {$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} Pozostało do zapłaty {$document.payment_ammount|string_format:"%.2f"} w terminie {dateFormat date=$document.payment_date full=0} ({$document.payment_lateness} dni). {if $smarty.now|date_format:"%Y-%m-%d" > $document.payment_date} {/if}

{/if} {if $document.db_documentId > 0}

Pobierz wydruk PDF dokumentu {l s='Wydruk PDF' mod='firmesb2b'}

{/if} {* {if strpos($document.db_file, 'pdf') !== false}

Welcome

{/if} {foreach from=$document key=team item=record} {$team}: {$record}
{/foreach} *}
{/if} {else}

{l s='Nie mozna wyświetlić wybranego dokumentu.' mod='firmesb2b'}

{/if} {if $B2BrelatedDocumentsCount}

 

{foreach from=$B2BrelatedDocuments item=row name=myLoop2} {/foreach}
{l s='Załączniki do dokumentu' mod='firmesb2b'} {l s='Opis' mod='firmesb2b'} {l s='Plik' mod='firmesb2b'}
{$row.bi_name} {$row.bi_description} {l s='Wydruk PDF' mod='firmesb2b'}
{/if}

 

{/block}