1 package SL::DB::Buchungsgruppe;
5 use SL::DB::MetaSetup::Buchungsgruppe;
6 use SL::DB::Manager::Buchungsgruppe;
9 my ($self, $taxzone) = @_;
10 my $taxzone_id = ref $taxzone && $taxzone->isa('SL::DB::TaxZone') ? $taxzone->id : $taxzone;
11 my $method = 'income_accno_id_' . $taxzone_id;
13 return $self->$method;
16 sub expense_accno_id {
17 my ($self, $taxzone) = @_;
18 my $taxzone_id = ref $taxzone && $taxzone->isa('SL::DB::TaxZone') ? $taxzone->id : $taxzone;
19 my $method = 'expense_accno_id_' . $taxzone_id;
21 return $self->$method;