{t}Invoice{/t} {$billInfo.bill_number|wash}/{$billInfo.bill_date|wash}{if strlen($billInfo.rbill_id)} (recurring invoice #{$billInfo.rbill_id|wash}){/if}
{t}Invoice nr.{/t}: |
{$billInfo.bill_number|wash} |
{t}Invoice date{/t}: |
{$billInfo.bill_date|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT} |
{t}Company{/t}: |
{$billInfo.cpn_name|wash} |
{t}Date due{/t}: |
{if strlen($billInfo.bill_date_due)}
{$billInfo.bill_date_due|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT} |
{else}
{t}not set{/t} |
{/if}
{t}Contact person{/t}: |
{$billInfo.bill_person_recipient|wash|default:" "} |
{t}Date paid{/t}: |
{if $billInfo.bill_paydate eq ""}
{t}not paid{/t} |
{else}
{$billInfo.bill_paydate|wash|date_format:$smarty.const.PHPAGA_DATEFORMAT_SHORT} |
{/if}
{t}Invoice type{/t}: |
{$billInfo.bmt_description|wash} |
{t}Total Payments{/t}: |
{if $billInfo.pmtsum.pmt_sum}
{$config.MONETARY_SYMBOL|wash}{$billInfo.pmtsum.pmt_sum|number_format:2:$config.SEPARATOR_DECIMALS:$config.SEPARATOR_THOUSANDS|default:" "} |
{else}
{t}no payments yet{/t} |
{/if}
|
|
{t}Balance Due{/t}: |
{* Had to add the string_format portion to get a monetary value ending in zero to be displayed correctly.
Since the calc is done here, we need the string_format here instead of in lib/bills.php. This will
most likely be needed in other places; The issue is that when no payments have been made, the returned
value from the db query is NULL (same effect if the value is 0 or 0.00). Setting that value to zero
doesn't help this issue, and so the string_format goes here. *}
{$config.MONETARY_SYMBOL}{$billInfo.bill_endsum+$billInfo.feesum.feesum-$billInfo.pmtsum.pmt_sum|number_format:2:$config.SEPARATOR_DECIMALS:$config.SEPARATOR_THOUSANDS|default:" "} |
{t}Details{/t}: |
{section name=details loop=$billInfo.bill_details}
{if $billInfo.bill_details[details].text eq ""}
|
{else}
{$billInfo.bill_details[details].text|wash} |
{/if}
{if $billInfo.bill_details[details].amount eq ""}
|
{else}
{$billInfo.bill_details[details].amount} |
{/if}
{/section}
|
|
{t}Notes{/t}: |
|