69 lines
2.4 KiB
Smarty
69 lines
2.4 KiB
Smarty
{*
|
|
* 2012 Firmes
|
|
* Mechanizmy obsługi rozszerzenia FirmesLink B2B
|
|
* Obsluga wyswietlania historii dokumentow
|
|
*}
|
|
|
|
{if isset($customerInfo) && count($customerInfo)}
|
|
<!-- Block firmesb2b module -->
|
|
<div id="firmesb2b_block">
|
|
<h4 class="title_block">{l s='Informacje handlowe' mod='firmesb2b'}</h4>
|
|
|
|
<div class="block">
|
|
|
|
<table>
|
|
<tbody>
|
|
{if $customerInfo.creditLimit > 0}
|
|
<tr>
|
|
<td>{l s='Przyznany limit kredytu kupieckiego:' mod='firmesb2b'}</td>
|
|
<td align="right">{$customerInfo.creditLimit|string_format:"%.2f"}</td>
|
|
</tr>
|
|
{/if}
|
|
|
|
<tr>
|
|
<td>{l s='Wykorzystany kredyt kupiecki:' mod='firmesb2b'}</td>
|
|
<td align="right"><strong>{$customerInfo.creditUsed|string_format:"%.2f"}</strong></td>
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
<td>{l s='Przeterminowane płatności:' mod='firmesb2b'}</td>
|
|
{if $customerInfo.creditOverdue > 0}
|
|
<td align="right"><span class="b2b_warn">{$customerInfo.creditOverdue|string_format:"%.2f"}</span></td>
|
|
{else}
|
|
<td align="right">{$customerInfo.creditOverdue|string_format:"%.2f"}</td>
|
|
{/if}
|
|
</tr>
|
|
|
|
{if $customerInfo.shopDiscount > 0}
|
|
|
|
<tr>
|
|
<td>{l s='Rabat:' mod='firmesb2b'}</td>
|
|
<td align="right">{$customerInfo.shopDiscount|string_format:"%.2f"}%</td>
|
|
</tr>
|
|
{/if}
|
|
|
|
|
|
{if $customerInfo.consultantId > 0}
|
|
|
|
<tr>
|
|
<td colspan="2">{l s='Opiekun:' mod='firmesb2b'}<br />
|
|
{$customerInfo.consultant}<br />
|
|
{if $customerInfo.consultantEmail != ''}
|
|
<a href="mailto:{$customerInfo.consultantEmail}" class="b2b_consultant">{$customerInfo.consultantEmail}</a><br />
|
|
{/if}
|
|
{if $customerInfo.consultantPhone != ''}
|
|
tel. {$customerInfo.consultantPhone}<br />
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
<p>
|
|
<a href="{$link->getModuleLink('firmesb2b', 'documents', ['p' => 0])}">{l s='Zobacz faktury i płatności' mod='firmesb2b'}</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
{/if} |