- # check whether there are any assigned parts
- my $number_of_parts_with_buchungsgruppe = SL::DB::Manager::Part->get_objects_count(where => [ buchungsgruppen_id => $self->config->id]);
-
- # Save or update taxzone_charts:
- if ($is_new or $number_of_parts_with_buchungsgruppe == 0) {
+ # Save or update taxzone_charts for new or unused Buchungsgruppen
+ if ($is_new or $self->config->orphaned) {