diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-12 07:01:53 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-12 07:01:53 +0000 |
commit | 174811db05387e54862df0c6b334801ae846f39e (patch) | |
tree | 13069e49e3166daab98ba26d9902c7da912669cf /bin | |
parent | f8aba07c6513193b1ae265d4a45df105762de388 (diff) |
Fixing payment screen to work with new is_nan checks.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1576 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'bin')
-rw-r--r-- | bin/cp.pl | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -371,7 +371,6 @@ sub payments_header { } sub invoices_due { - @column_index = qw(name invnumber transdate amount due checked paid memo source); push @column_index, "language" if $form->{selectlanguage}; @@ -716,7 +715,8 @@ sub update_payments { for (qw(amount due paid)) { $form->{"${_}_$i"} = - $form->format_amount( \%myconfig, $form->{"${_}_$i"}, 2 ); + $form->format_amount( \%myconfig, $form->{"${_}_$i"}, 2 ) + if $form->{"${_}_$i"}; } } @@ -892,7 +892,8 @@ qq|$form->{"all_$form->{vc}"}[0]->{name}--$form->{"all_$form->{vc}"}[0]->{id}|; for (qw(amount due paid)) { $form->{"${_}_$i"} = - $form->format_amount( \%myconfig, $form->{"${_}_$i"}, 2 ); + $form->format_amount( \%myconfig, $form->{"${_}_$i"}, 2 ) + if $form->{"${_}_$i"}; } } |