X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FBuchungsgruppe.pm;h=26f446b33ceef602a3c40f9959f5d60ad8795c2f;hb=2772592dab54533eb91a0d11ade01ed24cc58d19;hp=2dffaa5a971cfd150073f61ab2961a017fe8e261;hpb=6cf3f7762efd40bee49a2b8f11bb4ab6915d9071;p=kivitendo-erp.git diff --git a/SL/DB/Buchungsgruppe.pm b/SL/DB/Buchungsgruppe.pm index 2dffaa5a9..26f446b33 100644 --- a/SL/DB/Buchungsgruppe.pm +++ b/SL/DB/Buchungsgruppe.pm @@ -10,4 +10,20 @@ use SL::DB::MetaSetup::Buchungsgruppe; # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. __PACKAGE__->meta->make_manager_class; +sub income_accno_id { + my ($self, $taxzone) = @_; + my $taxzone_id = ref $taxzone && $taxzone->isa('SL::DB::TaxZone') ? $taxzone->id : $taxzone; + my $method = 'income_accno_id_' . $taxzone_id; + + return $self->$method; +} + +sub expense_accno_id { + my ($self, $taxzone) = @_; + my $taxzone_id = ref $taxzone && $taxzone->isa('SL::DB::TaxZone') ? $taxzone->id : $taxzone; + my $method = 'expense_accno_id_' . $taxzone_id; + + return $self->$method; +} + 1;