[-] BO : #PSCFV-858 - Rest to paid warning must be changed if the order is overpaid

This commit is contained in:
mDeflotte
2012-05-04 12:54:29 +00:00
parent c63811c4a6
commit 1f8dcab1fd
2 changed files with 9 additions and 2 deletions
@@ -83,7 +83,13 @@
{else}
{displayPrice price=$document->total_paid_tax_incl currency=$currency->id} 
{if $document->getRestPaid()}
<span style="color:red;font-weight:bold;">({displayPrice price=$document->getRestPaid() currency=$currency->id} {l s='not paid'})</span>
<span style="color:red;font-weight:bold;">
{if $document->getRestPaid() >= 0}
({displayPrice price=$document->getRestPaid() currency=$currency->id} {l s='not paid'})
{else}
({displayPrice price=-$document->getRestPaid() currency=$currency->id} {l s='overpaid'})
{/if}
</span>
{/if}
{/if}
{/if}