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:
5a5ec00
)
Kosmetik ;
author
Jan Büren
<jan@kivitendo.de>
Wed, 23 Mar 2022 11:51:45 +0000
(12:51 +0100)
committer
Jan Büren
<jan@kivitendo.de>
Thu, 24 Mar 2022 15:39:53 +0000
(16:39 +0100)
SL/DB/Invoice.pm
patch
|
blob
|
history
diff --git
a/SL/DB/Invoice.pm
b/SL/DB/Invoice.pm
index
2b4fd59
..
d1ce5be
100644
(file)
--- a/
SL/DB/Invoice.pm
+++ b/
SL/DB/Invoice.pm
@@
-361,7
+361,6
@@
sub add_ar_amount_row {
($netamount, $taxamount) = Form->calculate_tax($params{amount}, $tax->rate, $self->taxincluded, $roundplaces);
};
next unless $netamount; # netamount mustn't be zero
-
my $sign = $self->customer_id ? 1 : -1;
my $acc = SL::DB::AccTransaction->new(
amount => $netamount * $sign,
@@
-427,7
+426,7
@@
sub create_ar_row {
$self->add_transactions( $acc );
push( @$acc_trans, $acc );
return $acc_trans;
-}
;
+}
sub validate_acc_trans {
my ($self, %params) = @_;