{trans("Note drawer:")} {if !ConfigHelper::checkConfig('invoices.show_only_alternative_accounts') || empty($note.bankccounts)} {$accounts = array(bankaccount($note.customerid, $note.account))} {else} {$accounts = array()} {/if} {if ConfigHelper::checkConfig('invoices.show_all_accounts') || ConfigHelper::checkConfig('invoices.show_only_alternative_accounts')} {$accounts = array_merge($accounts, $note.bankaccounts)} {/if} {foreach $accounts as $accountidx => $account} {$accounts[$accountidx] = format_bankaccount($account)} {/foreach} {textformat assign="account_text" wrap=5000} {if $use_alert_color}{/if}{implode(' ', $accounts)}{if $use_alert_color}{/if} {/textformat} {$tmp = $note.division_header} {$tmp = str_replace("\n", ' ', $tmp)} {$tmp = str_replace('%bankaccount', $account_text, $tmp)} {$tmp = str_replace('%bankname', $note.div_bank, $tmp)} {if ConfigHelper::checkValue(ConfigHelper::getConfig('invoices.customer_bankaccount', true))} {textformat assign="tmp" wrap=5000} {$tmp} {trans('Bank account:')} {$account_text} {/textformat} {/if} {$tmp} |
{trans("Note recipient:")} {$note.name} {$note.address} {$note.zip} {$note.city} {if $note.ten} {t a=$note.ten}TEN $a{/t} {elseif $note.ssn} {t a=$note.ssn}SSN $a{/t} {/if} {if (ConfigHelper::checkValue(ConfigHelper::getConfig('invoices.customer_credentials', true)))} {if $note.customerpin} {trans("Customer ID:")} {$note.customerid|string_format:"%04d"} PIN: {$note.customerpin|string_format:"%04d"} {/if} {/if} |
{trans("No.")} | {trans("Title:")} | {trans("Value:")} |
{counter}. | {$item.description} | {$item.value|string_format:"%01.2f"} |
{trans("Total:")} |
{$note.value|string_format:"%01.2f"} |
{trans("To pay:")} {moneyf($note.value, $note.currency)} | |
{trans("In words:")} {moneyf_in_words($note.value, $note.currency)} | |
{$note.division_footer} |
{trans("Date:")} | {trans("Value:")} | {trans("Tax:")} | » | {trans("After:")} | {trans("Description:")} |
{$item.date} | {if $item.value > 0}+{/if}{moneyf($item.value, $item.currency)} | {$item.tax} | » | {if $item.after < 0}{/if} {moneyf($item.after)} {if $item.after < 0}{/if} | {$item.comment} |