From 111857560dab08903ff8bd700b2383df34cddf36 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 23 Mar 2022 12:51:45 +0100 Subject: [PATCH] Kosmetik ; --- SL/DB/Invoice.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index 2b4fd59ef..d1ce5be87 100644 --- 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) = @_; -- 2.20.1