X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDB%2FTaxzoneChart.pm;h=6a98845bce0f5e5553f5c96e962cff6777a8a1e9;hb=7ed4b336b89b861479a1fc2670b9456334b0d1be;hp=4eb0ea8b9750e6c3367d9f335d3cf01de8c5159f;hpb=f5c454e3855012bdb1928f3e4c4964403d4d8163;p=kivitendo-erp.git diff --git a/SL/DB/TaxzoneChart.pm b/SL/DB/TaxzoneChart.pm index 4eb0ea8b9..6a98845bc 100644 --- a/SL/DB/TaxzoneChart.pm +++ b/SL/DB/TaxzoneChart.pm @@ -22,9 +22,9 @@ sub get_all_accounts_by_buchungsgruppen_id { my %list = (); - #inventory_accno der Buchungsgruppe: - $list{inventory_accno} = SL::DB::Manager::Buchungsgruppe->find_by(id => $buchungsgruppen_id)->inventory_accno; - $list{inventory_accno_description} = SL::DB::Manager::Buchungsgruppe->find_by(id => $buchungsgruppen_id)->inventory_accno_description; + # inventory_accno and description of the Buchungsgruppe: + $list{inventory_accno} = SL::DB::Manager::Buchungsgruppe->find_by(id => $buchungsgruppen_id)->inventory_account->accno; + $list{inventory_accno_description} = SL::DB::Manager::Buchungsgruppe->find_by(id => $buchungsgruppen_id)->inventory_account->description; foreach my $taxzonechart (@{ $all_taxzonecharts }) { $list{ $taxzonechart->taxzone_id }{taxzone_chart_id} = $taxzonechart->id;