From e73f7350574cb4e46db4a4d6ad5cdaa075806489 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Tue, 15 Aug 2017 10:30:21 +0200 Subject: [PATCH] =?utf8?q?F=C3=BCr=20#277=20toten=20Code=20entfernen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- SL/Controller/BankTransaction.pm | 1 - SL/DB/BankTransaction.pm | 2 -- 2 files changed, 3 deletions(-) diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index 85e96749f..b81b1f673 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -130,7 +130,6 @@ sub action_list { my $factor = ($_->ar_id == $open_invoice->id ? 1 : -1); #$main::lxdebug->message(LXDebug->DEBUG2(),"sepa_exitem=".$_->id." for invoice ".$open_invoice->id." factor=".$factor); $open_invoice->{realamount} = $::form->format_amount(\%::myconfig,$open_invoice->amount*$factor,2); - push @{$open_invoice->{sepa_export_item}}, $_; $open_invoice->{skonto_type} = $_->payment_type; $sepa_exports{$_->sepa_export_id} ||= { count => 0, is_ar => 0, amount => 0, proposed => 0, invoices => [], item => $_ }; $sepa_exports{$_->sepa_export_id}->{count}++; diff --git a/SL/DB/BankTransaction.pm b/SL/DB/BankTransaction.pm index a63deb49a..3bd5caaa6 100644 --- a/SL/DB/BankTransaction.pm +++ b/SL/DB/BankTransaction.pm @@ -227,8 +227,6 @@ sub get_agreement_with_invoice { # test for amount and id matching only, sepa transfer date and bank # transaction date needn't match - my $arap = $invoice->is_sales ? 'ar' : 'ap'; - if (abs($self->amount) == ($sei->amount) && $invoice->id == $sei->arap_id) { $agreement += $points{sepa_export_item}; $rule_matches .= 'sepa_export_item(' . $points{'sepa_export_item'} . ') '; -- 2.20.1