{* * 2020 Firmes * Mechanizmy obsługi rozszerzenia FirmesLink B2B * Obsluga wyswietlania historii dokumentow w panelu administracyjnym sklepu *}

description FirmesB2B {$documentCount}

{if isset($customerInfo) && count($customerInfo)}

{l s='Informacje handlowe' mod='blockcategories'}

{if $customerInfo.creditLimit > 0} {/if} {if $customerInfo.creditOverdue > 0} {else} {/if} {if $customerInfo.shopDiscount > 0} {/if} {if $customerInfo.consultantId > 0} {/if}
Przyznany limit kredytu kupieckiego: {$customerInfo.creditLimit|string_format:"%.2f"}
Wykorzystany kredyt kupiecki: {$customerInfo.creditUsed|string_format:"%.2f"}
Przeterminowane płatności:{$customerInfo.creditOverdue|string_format:"%.2f"}{$customerInfo.creditOverdue|string_format:"%.2f"}
Rabat: {$customerInfo.shopDiscount|string_format:"%.2f"}%
Opiekun: {$customerInfo.consultant}
{if $customerInfo.consultantEmail != ''} {$customerInfo.consultantEmail}
{/if} {if $customerInfo.consultantPhone != ''} tel. {$customerInfo.consultantPhone}
{/if}

{/if} {*

Nie odnaleziono rekordów

*}
{*
*} {block name="page_content"}
{* *} {if $B2Bdocuments} {foreach from=$B2Bdocuments item=document name=myLoop} {/foreach}
{l s='Dokument'} {l s='Data'} {l s='Netto'} {l s='Brutto'} {l s='Termin'} {l s='Do zapłaty'}
{$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} {*
*}
{if $customer_is_related != true} {/if}
{if $customer_is_related == true} {/if}