+ my $taxzone_chart = SL::DB::Manager::TaxzoneChart->find_by(taxzone_id => $taxzone_id, buchungsgruppen_id => $self->id);
+ return $taxzone_chart->expense_accno_id if $taxzone_chart;
+}
+
+sub income_account {
+ my ($self, $taxzone) = @_;
+
+ require SL::DB::TaxZone;
+ require SL::DB::TaxzoneChart;
+
+ my $taxzone_id = ref $taxzone && $taxzone->isa('SL::DB::TaxZone') ? $taxzone->id : $taxzone;
+ my $taxzone_chart = SL::DB::Manager::TaxzoneChart->find_by(taxzone_id => $taxzone_id, buchungsgruppen_id => $self->id);
+ return $taxzone_chart->income_accno if $taxzone_chart;
+}
+
+sub expense_account {
+ my ($self, $taxzone) = @_;
+
+ require SL::DB::TaxZone;
+ require SL::DB::TaxzoneChart;
+
+ my $taxzone_id = ref $taxzone && $taxzone->isa('SL::DB::TaxZone') ? $taxzone->id : $taxzone;
+ my $taxzone_chart = SL::DB::Manager::TaxzoneChart->find_by(taxzone_id => $taxzone_id, buchungsgruppen_id => $self->id);
+ return $taxzone_chart->expense_accno if $taxzone_chart;
+}
+
+sub taxzonecharts {
+ my ($self) = @_;
+ return SL::DB::Manager::TaxzoneChart->get_all(where => [ buchungsgruppen_id => $self->id ]);
+}