]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Helper/Mappings.pm
ClientJS: Ziel-Argument bestimmter Funktionen vorne trimmen
[mfinanz.git] / SL / DB / Helper / Mappings.pm
index 9695077e792a27ea52c1c3d51032b06d9adf626c..709e881ef7c68127509f91e4a65a474b73f9a83f 100644 (file)
@@ -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',
@@ -148,6 +151,8 @@ my %kivitendo_package_names = (
   periodic_invoices_configs      => 'periodic_invoices_config',
   prices                         => 'price',
   price_factors                  => 'price_factor',
+  price_rules                    => 'price_rule',
+  price_rule_items               => 'price_rule_item',
   pricegroup                     => 'pricegroup',
   printers                       => 'printer',
   project                        => 'project',
@@ -158,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',
@@ -201,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;