{include file="header.html"} {box class="noshadow noborder"} {if $docinfo.type == $smarty.const.DOC_INVOICE || $docinfo.type == $smarty.const.DOC_INVOICE_PRO || $docinfo.type == $smarty.const.DOC_CNOTE} {if $docinfo.type == $smarty.const.DOC_CNOTE} {assign var='invoice' value=$docinfo.invoice} {assign var='cnote' value='1'} {else} {assign var='cnote' value='0'} {/if} {if $cnote} {/if}
Dokument : {assign var='doctype' value=$docinfo.type} {$_DOCTYPES.$doctype} Nr {$docinfo.fullnumber} z dnia {$docinfo.cdate|date_format:"Y/m/d"} {if $cnote} {assign var='doctype' value=$invoice.type} ( {$_DOCTYPES.$doctype} Nr {$invoice.fullnumber} ) {/if}
Płatność : {$docinfo.paytypename} do dnia {$docinfo.pdate|date_format:"Y/m/d"}{if $docinfo.account && $docinfo.type != $smarty.const.DOC_CNOTE} , na konto : {$docinfo.account|bankaccount_format}{/if}
Powód korekty : {$docinfo.reason}
{assign var='content' value=$docinfo.content} {if $cnote} {foreach from=$invoice.content item=item} {/foreach} {foreach from=$invoice.taxest item=item} {/foreach} {/if} {if $cnote}{/if} {section name='content' loop=$content} {assign var='lp' value=$smarty.section.content.index +1} {/section} {foreach from=$docinfo.taxest item=item} {/foreach}
L.P. Nazwa produktu, towaru lub usługi PKWiU JM Ilość Rabat Cena
Netto
Wartość
Netto
Stawka
PTU
Kwota
PTU
Wartość
Brutto
Było
{$item.itemid} {$item.description} {$item.pkwiu} {$item.content} {$item.count} {if $item.pdiscount != '0.00'}{$item.pdiscount} %{else if $item.vdiscount != '0.00'}{$item.vdiscount|money_format}{else} 0.00 %{/if} {$item.basevalue|money_format} {$item.totalbase|money_format} {$item.taxlabel} {$item.totaltax|money_format} {$item.total|money_format}
Razem {$invoice.totalbase|money_format} X {$invoice.totaltax|money_format} {$invoice.total|money_format}
w tym {$item.base|money_format} {$item.taxlabel} {$item.tax|money_format} {$item.total|money_format}
Poprawiono na
{$lp} {$content[content].description} {$content[content].pkwiu} {$content[content].content} {$content[content].count} {if $content[content].pdiscount != '0.00'}{$content[content].pdiscount} %{else if $content[content].vdiscount != '0.00'}{$content[content].vdiscount|money_format}{else} 0.00 %{/if} {$content[content].basevalue|money_format} {$content[content].totalbase|money_format} {$content[content].taxlabel} {$content[content].totaltax|money_format} {$content[content].total|money_format}
Razem {$docinfo.totalbase|money_format} X {$docinfo.totaltax|money_format} {$docinfo.total|money_format}
w tym {$item.base|money_format} {$item.taxlabel} {$item.tax|money_format} {$item.total|money_format}
{/if} {if $docinfo.type == $smarty.const.DOC_DNOTE}
Dokument : {assign var='doctype' value=$docinfo.type} {$_DOCTYPES.$doctype}{if $docinfo.fullnumber} Nr {$docinfo.fullnumber}{/if} z dnia {$docinfo.cdate|date_format:"Y/m/d"}
Płatność : {$docinfo.paytypename} do dnia {$docinfo.pdate|date_format:"Y/m/d"}
{foreach from=$docinfo.content item=item} {/foreach}
L.P. Tytuł Wartość
{$item.itemid} {$item.description} {$item.value|money_format}
{/if} {if $docinfo.type == $smarty.const.DOC_RECEIPT}
Dokument : {assign var='doctype' value=$docinfo.type} {if $docinfo.direct == 'in'}Dowód wpłaty KP{else}Dowód wypłaty KW{/if} {if $docinfo.fullnumber} Nr {$docinfo.fullnumber}{/if}
Płatność : {$docinfo.paytypename} do dnia {$docinfo.pdate|date_format:"Y/m/d"}
{foreach from=$docinfo.content item=item} {/foreach}
L.P. Tytuł Wartość
{$item.itemid} {$item.description} {$item.value|money_format}
{/if} {/box} {include file="footer.html"}