X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/8cd226433f79edc6393265c5452b250a7899053c..fb5b97ff8fd166a4a3a2cf29663c1dda2a9d98a7:/SL/DB/Part.pm diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index d19ec26e4..2535efca9 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -217,7 +217,7 @@ sub get_chart { if (!exists $charts->{$taxzone}->{$type}) { require SL::DB::Buchungsgruppe; my $bugru = SL::DB::Buchungsgruppe->load_cached($self->buchungsgruppen_id); - my $chart_id = ($type eq 'inventory') ? ($self->inventory_accno_id ? $bugru->inventory_accno_id : undef) + my $chart_id = ($type eq 'inventory') ? ($self->is_part ? $bugru->inventory_accno_id : undef) : $bugru->call_sub("${type}_accno_id", $taxzone); if ($chart_id) {