{trans("Draw-up date:")} {$note.cdate|date_format:"%Y/%m/%d"}{if $note.division_cplace neq ""}, {$note.division_cplace}{/if}
{trans("Deadline:")} {$note.pdate|date_format:"%Y/%m/%d"}

{number number=$note.number template=$note.template time=$note.cdate assign=number} {t a=$number}Debit Note No. $a{/t}


{trans("Note drawer:")}

{$note.division_header|replace:"\n":"
"}
{trans("Note recipient:")}

{$note.name}
{$note.address}
{$note.zip} {$note.city}

Niniejszym, zgodnie z zawartą Umową, obciążamy Państwa należnościami wg poniższego zestawienia:

{cycle values="grey,white" print=false name=cycle2} {counter start=0 print=false} {foreach from=$note.content item=item} {/foreach}
{trans("No.")} {trans("Title:")} {trans("Value:")}
{counter}. {$item.description} {$item.value|money_format}

{trans("Total:")}

{$note.value|money_format}

{trans("Expositor:")} {if $note.user}{$note.user}{else}{$note.division_author}{/if} {trans("To pay:")} {$note.value|money_format}
{trans("In words:")} {if check_conf('phpui.to_words_short_version')} {$note.value|string_format:"%d"|to_words:0:"":1} {$note.valuep|string_format:"%02d"}/100 {else} {t a=$note.value|string_format:"%d"|to_words b=$note.valuep|to_words}$a dollars $b cents{/t} {/if}
 
{trans("Cautions:")}
{trans("If you have any questions or doubts, contact with our Customer Service Representative. Prepare your Customer ID, please.")}
{trans("You may use our automated Customer Care Web Panel, just remember your PIN (it's printed on the other side of this page)")}

{if $note.customerpin}

{trans("Customer ID:")} {$note.customerid|string_format:"%04d"}
PIN: {$note.customerpin|string_format:"%04d"}

{/if} {* customer's balance: {$note.customerbalancelist.balance} *} {if $note.customerbalancelist} {if $note.customerbalancelistlimit >= $note.customerbalancelist.total} {assign var="startloop" value="0"} {else} {math assign="startloop" equation="x-y" x=$note.customerbalancelist.total y=$note.customerbalancelistlimit} {/if} {section name=balancelist loop=$note.customerbalancelist.id start=$startloop max=$note.customerbalancelistlimit} {* section name=balancelist loop=$note.customerbalancelist.id start=$note.customerbalancelistlimit step=-1 *} {/section}
{trans("Date:")} {trans("Value:")} {trans("Tax:")} » {trans("After:")} {trans("Description:")}
{$note.customerbalancelist.date[balancelist]} {if $note.customerbalancelist.value[balancelist] > 0}+{/if}{$note.customerbalancelist.value[balancelist]|money_format} {$note.customerbalancelist.tax[balancelist]} » {if $note.customerbalancelist.after[balancelist] < 0}{/if} {$note.customerbalancelist.after[balancelist]|money_format} {if $note.customerbalancelist.after[balancelist] < 0}{/if} {$note.customerbalancelist.comment[balancelist]}
{/if}