X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FBuchungsgruppe.pm;h=5a486796d08ba8bd1dcb531e7345c5fa3542e41b;hb=872f04a75528d55c3987c09fa0445451c35c6ef9;hp=2dffaa5a971cfd150073f61ab2961a017fe8e261;hpb=6cf3f7762efd40bee49a2b8f11bb4ab6915d9071;p=kivitendo-erp.git diff --git a/SL/DB/Buchungsgruppe.pm b/SL/DB/Buchungsgruppe.pm index 2dffaa5a9..5a486796d 100644 --- a/SL/DB/Buchungsgruppe.pm +++ b/SL/DB/Buchungsgruppe.pm @@ -1,13 +1,24 @@ -# This file has been auto-generated only because it didn't exist. -# Feel free to modify it at will; it will not be overwritten automatically. - package SL::DB::Buchungsgruppe; use strict; use SL::DB::MetaSetup::Buchungsgruppe; +use SL::DB::Manager::Buchungsgruppe; + +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; -# Creates get_all, get_all_count, get_all_iterator, delete_all and update_all. -__PACKAGE__->meta->make_manager_class; + return $self->$method; +} 1;