$class->new(%params, part_type => 'assortment');
}
+sub last_modification {
+ my ($self) = @_;
+ return $self->mtime or $self->itime;
+};
+
sub orphaned {
my ($self) = @_;
die 'not an accessor' if @_ > 1;
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) {