diff options
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); |