X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9589ecd776677cdeb2fbaf8de211963d24cf5aa1..35cf7c7029b4aa69eb9d02c7533d1a15aafb118b:/SL/DB/Helper/Mappings.pm diff --git a/SL/DB/Helper/Mappings.pm b/SL/DB/Helper/Mappings.pm index 70e73a421..709e881ef 100644 --- a/SL/DB/Helper/Mappings.pm +++ b/SL/DB/Helper/Mappings.pm @@ -99,6 +99,7 @@ my %kivitendo_package_names = ( background_job_histories => 'background_job_history', ap => 'purchase_invoice', bank_accounts => 'bank_account', + bank_transactions => 'bank_transaction', buchungsgruppen => 'buchungsgruppe', bin => 'bin', business => 'business', @@ -137,6 +138,8 @@ my %kivitendo_package_names = ( inventory => 'inventory', invoice => 'invoice_item', language => 'language', + letter => 'letter', + letter_draft => 'letter_draft', makemodel => 'make_model', notes => 'note', orderitems => 'order_item', @@ -160,6 +163,7 @@ my %kivitendo_package_names = ( project_statuses => 'project_status', project_types => 'project_type', record_links => 'record_link', + reconciliation_links => 'reconciliation_link', requirement_spec_acceptance_statuses => 'RequirementSpecAcceptanceStatus', requirement_spec_complexities => 'RequirementSpecComplexity', requirement_spec_item_dependencies => 'RequirementSpecDependency', @@ -203,6 +207,10 @@ sub get_package_names { return KIVITENDO => \%kivitendo_package_names; } +sub get_name_for_table { + return $kivitendo_package_names{ $_[0] }; +} + sub get_package_for_table { %kivitendo_tables_to_packages = map { ($_ => "SL::DB::" . camelify($kivitendo_package_names{$_})) } keys %kivitendo_package_names unless %kivitendo_tables_to_packages;