From 5987544295c931a8ced58a55b097b201ff559cb5 Mon Sep 17 00:00:00 2001 From: tetragon Date: Sat, 22 Sep 2007 00:00:28 +0000 Subject: 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 --- LedgerSMB/AA.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'LedgerSMB/AA.pm') 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); -- cgit v1.2.3