summaryrefslogtreecommitdiff
path: root/LedgerSMB/IS.pm
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-22 00:00:28 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-22 00:00:28 +0000
commit5987544295c931a8ced58a55b097b201ff559cb5 (patch)
tree9177bb5456c1c28b295bed9bcb034ef330142f30 /LedgerSMB/IS.pm
parent81547f3c746425592fe2659370e98990a90429a2 (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/IS.pm')
-rwxr-xr-xLedgerSMB/IS.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/LedgerSMB/IS.pm b/LedgerSMB/IS.pm
index 6fc6ba81..4a462b9a 100755
--- a/LedgerSMB/IS.pm
+++ b/LedgerSMB/IS.pm
@@ -1515,6 +1515,11 @@ sub post_invoice {
$form->{name} =~ s/--$form->{customer_id}//;
$form->add_shipto( $dbh, $form->{id} );
+ if ($invamount->is_nan) {
+ $dbh->rollback;
+ return;
+ }
+
# save printed, emailed and queued
$form->save_status($dbh);