Fehler beim Öffnen von Konten behoben
authorG. Richardson <information@kivitendo-premium.de>
Sat, 26 Mar 2016 10:50:40 +0000 (11:50 +0100)
committerG. Richardson <information@kivitendo-premium.de>
Sat, 26 Mar 2016 10:50:40 +0000 (11:50 +0100)
Jedes Konto hat einen taxkey Eintrag, aber es gibt nicht immer ein
Steuerautomatikkonto.

SL/AM.pm

index af47027..19407f8 100644 (file)
--- 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,
                                           };
     }