summaryrefslogtreecommitdiff
path: root/LedgerSMB/AA.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB/AA.pm')
-rwxr-xr-xLedgerSMB/AA.pm5
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);