Jeszcze jeden problem wystapil.

Jak robimy korekte faktury (Klient>Pokaz wszystkie faktury>Koryguj i jest np. zmiana kwoty na inna) to wystawia sie korekta, ale po kliknieciu na Drukuj zamiast sensownej faktury wyswietla sie:

{number number=$invoice.number template=$invoice.template time=$invoice.cdate assign=number} {if $invoice.invoice} {number number=$invoice.invoice.number template=$invoice.invoice.template time=$invoice.invoice.cdate assign=number_ref} {t a=$number}Credit Note No. $a{/t}
{t a=$number_ref}for Invoice No. $a{/t}
{else} {t a=$number}Invoice No. $a{/t}
{/if} {$type} {if $duplicate}
{trans("Duplicate draw-up date:")} {$smarty.now|date_format:"%Y/%m/%d"} {/if}
{trans("Draw-up date:")}
{trans("Sale date:")}
{trans("Deadline:")}
{trans("Payment type:")}
{$invoice.cdate|date_format:"%Y/%m/%d"}{if $invoice.division_cplace neq ""}, {$invoice.division_cplace}{/if}
{$invoice.sdate|date_format:"%Y/%m/%d"}
{$invoice.pdate|date_format:"%Y/%m/%d"}
{$invoice.paytypename}
 
{trans("Seller:")}

{$invoice.division_header|replace:"\n":"
"}
{trans("Bank account:")} {format_bankaccount(bankaccount($invoice.customerid, $invoice.account))}

{trans("Purchaser:")}

{$invoice.name}
{$invoice.address}
{$invoice.zip} {$invoice.city}
{if $invoice.ten neq ""}{trans("TEN:")} {$invoice.ten}
{elseif $invoice.ssn neq ""}{trans("SSN:")} {$invoice.ssn}
{/if}



{if $invoice.post_name || $invoice.post_address} {if $invoice.post_name}{$invoice.post_name}{else}{$invoice.name}{/if}
{$invoice.post_address}
{$invoice.post_zip} {$invoice.post_city} {else} {$invoice.name}
{$invoice.address}
{$invoice.zip} {$invoice.city} {/if}
 


itd...
Pewnie gdzies lapie zly szablon albo gdzies mam cos zle ustawione? Ktos kojarzy rozwiazanie?