From: Jan Büren Date: Wed, 23 Mar 2022 11:51:45 +0000 (+0100) Subject: Kosmetik ; X-Git-Tag: kivitendo-mebil_0.1-0~10^2~2^2~98 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=111857560dab08903ff8bd700b2383df34cddf36;p=kivitendo-erp.git Kosmetik ; --- 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) = @_;