From a01fc4760bb669b7b05d2e45c6a321d0913cfd59 Mon Sep 17 00:00:00 2001 From: "G. Richardson" Date: Sat, 26 Mar 2016 11:50:40 +0100 Subject: [PATCH] =?utf8?q?Fehler=20beim=20=C3=96ffnen=20von=20Konten=20beh?= =?utf8?q?oben?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Jedes Konto hat einen taxkey Eintrag, aber es gibt nicht immer ein Steuerautomatikkonto. --- SL/AM.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SL/AM.pm b/SL/AM.pm index af47027d6..19407f8ce 100644 --- a/SL/AM.pm +++ b/SL/AM.pm @@ -107,7 +107,7 @@ sub get_account { startdate => $taxkey->startdate->to_kivitendo, taxdescription => $taxkey->tax->taxdescription, rate => $taxkey->tax->rate, - accno => $taxkey->tax->chart->accno, + accno => defined $taxkey->tax->chart_id ? $taxkey->tax->chart->accno : undef, }; } -- 2.20.1