projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
[kivitendo-erp.git]
/
SL
/
DB
/
Invoice.pm
diff --git
a/SL/DB/Invoice.pm
b/SL/DB/Invoice.pm
index
91ee14c
..
14c11fa
100644
(file)
--- a/
SL/DB/Invoice.pm
+++ b/
SL/DB/Invoice.pm
@@
-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)');