diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-21 20:45:36 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-21 20:45:36 +0000 |
commit | 81547f3c746425592fe2659370e98990a90429a2 (patch) | |
tree | 237485b4f07218e30f3345d0a150423229054963 | |
parent | 9300ba7693c69f67cbfb3f337266edddf7b6fa4d (diff) |
Committing a fix for bug 1789169
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1639 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-x | bin/gl.pl | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1343,7 +1343,8 @@ sub post { $credit += $cr; } - if ( $form->round_amount( $debit, 2 ) != $form->round_amount( $credit, 2 ) ) + if ($form->round_amount( $debit, 2 ) != $form->round_amount( $credit, 2 ) || + $debit->is_nan || $credit->is_nan) { $form->error( $locale->text('Out of balance transaction!') ); } |