diff options
author | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-22 00:00:28 +0000 |
---|---|---|
committer | tetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-09-22 00:00:28 +0000 |
commit | 5987544295c931a8ced58a55b097b201ff559cb5 (patch) | |
tree | 9177bb5456c1c28b295bed9bcb034ef330142f30 /LedgerSMB/AA.pm | |
parent | 81547f3c746425592fe2659370e98990a90429a2 (diff) |
Some more NaN checks
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1640 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'LedgerSMB/AA.pm')
-rwxr-xr-x | LedgerSMB/AA.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/LedgerSMB/AA.pm b/LedgerSMB/AA.pm index 5bfd0ac1..22c490dc 100755 --- a/LedgerSMB/AA.pm +++ b/LedgerSMB/AA.pm @@ -580,7 +580,10 @@ sub post_transaction { } } } - + if ($invamount->is_nan) { + $dbh->rollback; + return; + } # save printed and queued $form->save_status($dbh); |