]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Invoice.pm
SL::DB::Invoice: Eine Warning unterdrücken.
[mfinanz.git] / SL / DB / Invoice.pm
index 91ee14c8584f404f23e50535c98d2b041a2a94cb..14c11fa7d6b5c48e6d606d80be41ff497f4294f5 100644 (file)
@@ -93,7 +93,7 @@ sub taxamount {
   my $self = shift;
   die 'not a setter method' if @_;
 
-  return $self->amount - $self->netamount;
+  return ($self->amount || 0) - ($self->netamount || 0);
 }
 
 __PACKAGE__->meta->make_attr_helpers(taxamount => 'numeric(15,5)');