projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c886d9
)
SL::DB::Invoice: Eine Warning unterdrücken.
author
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 16 Jan 2012 17:36:30 +0000
(18:36 +0100)
committer
Sven Schöling
<s.schoeling@linet-services.de>
Mon, 16 Jan 2012 17:36:30 +0000
(18:36 +0100)
SL/DB/Invoice.pm
patch
|
blob
|
history
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)');