From 18140010cc62b1f1c68a90c61ddb87b50a203f5b Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Wed, 1 Jul 2015 18:21:35 +0200 Subject: [PATCH] Bankerweiterung - bei Rechnung zuweisen Verkaufsrechnungen anzeigen Das Feature war kaputt, offene Verkaufsrechnungen wurden nicht angezeigt. --- SL/Controller/BankTransaction.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Controller/BankTransaction.pm b/SL/Controller/BankTransaction.pm index a8d424c2d..5dd81804b 100644 --- a/SL/Controller/BankTransaction.pm +++ b/SL/Controller/BankTransaction.pm @@ -316,8 +316,8 @@ sub action_ajax_add_list { my $all_open_ar_invoices = SL::DB::Manager::Invoice->get_all(where => \@where_sale, with_objects => 'customer'); my $all_open_ap_invoices = SL::DB::Manager::PurchaseInvoice->get_all(where => \@where_purchase, with_objects => 'vendor'); - my @all_open_invoices; - # filter out subcent differences from ap invoices + my @all_open_invoices = @{ $all_open_ar_invoices }; + # add ap invoices, filtering out subcent open amounts push @all_open_invoices, grep { abs($_->amount - $_->paid) >= 0.01 } @{ $all_open_ap_invoices }; @all_open_invoices = sort { $a->id <=> $b->id } @all_open_invoices; -- 2.20.1