projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
typo: puhs -> push
[kivitendo-erp.git]
/
SL
/
DB
/
Invoice.pm
diff --git
a/SL/DB/Invoice.pm
b/SL/DB/Invoice.pm
index
0b7caa4
..
14c11fa
100644
(file)
--- a/
SL/DB/Invoice.pm
+++ b/
SL/DB/Invoice.pm
@@
-15,13
+15,6
@@
use SL::DB::Helper::LinkedRecords;
use SL::DB::Helper::PriceTaxCalculator;
use SL::DB::Helper::PriceUpdater;
use SL::DB::Helper::TransNumberGenerator;
use SL::DB::Helper::PriceTaxCalculator;
use SL::DB::Helper::PriceUpdater;
use SL::DB::Helper::TransNumberGenerator;
-use SL::DB::Helper::CustomVariables (
- sub_module => 'orderitems',
- cvars_alias => 1,
- overloads => {
- parts_id => 'SL::DB::Part',
- },
-);
use SL::DB::AccTransaction;
use SL::DB::Chart;
use SL::DB::Employee;
use SL::DB::AccTransaction;
use SL::DB::Chart;
use SL::DB::Employee;
@@
-100,7
+93,7
@@
sub taxamount {
my $self = shift;
die 'not a setter method' if @_;
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)');
}
__PACKAGE__->meta->make_attr_helpers(taxamount => 'numeric(15,5)');