From a158b731b52535db7540b3bb54c0c7d7557fbc0f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20B=C3=BCren?= Date: Wed, 11 Jul 2018 14:57:16 +0200 Subject: [PATCH] =?utf8?q?Bericht=20BankTransaction=20auch=20Verkn=C3=BCpf?= =?utf8?q?ungen=20mit=20Dialogbuchungen=20anzeigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Zahlungsverkehr -> Berichte -> Bankbewegung -> verknüpfte Rechnungen zeigt die record_links zum Typ ar|ap, erweitert für den Typ gl. --- SL/DB/BankTransaction.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/DB/BankTransaction.pm b/SL/DB/BankTransaction.pm index eee6e000e..6259d41e3 100644 --- a/SL/DB/BankTransaction.pm +++ b/SL/DB/BankTransaction.pm @@ -42,6 +42,7 @@ sub linked_invoices { foreach my $record_link (@{ $record_links }) { push @linked_invoices, SL::DB::Manager::Invoice->find_by(id => $record_link->to_id)->invnumber if $record_link->to_table eq 'ar'; push @linked_invoices, SL::DB::Manager::PurchaseInvoice->find_by(id => $record_link->to_id)->invnumber if $record_link->to_table eq 'ap'; + push @linked_invoices, SL::DB::Manager::GLTransaction->find_by(id => $record_link->to_id)->reference if $record_link->to_table eq 'gl'; } return [ @linked_invoices ]; -- 2.20.1