# unlike rails we have no singular<->plural magic.
# remeber: tables should be named as the plural of the model name.
my %kivitendo_package_names = (
+ # TABLE # MODEL (given in C style)
acc_trans => 'acc_transaction',
audittrail => 'audit_trail',
'auth.clients' => 'auth_client',
'auth.clients_users' => 'auth_client_user',
'auth.clients_groups' => 'auth_client_group',
- 'auth.group' => 'auth_groups',
- 'auth.group_right' => 'auth_group_rights',
- 'auth.user' => 'auth_users',
- 'auth.user_config' => 'auth_user_configs',
- 'auth.user_group' => 'auth_user_groups',
+ 'auth.group' => 'auth_group',
+ 'auth.group_rights' => 'auth_group_right',
+ 'auth.user' => 'auth_user',
+ 'auth.user_config' => 'auth_user_config',
+ 'auth.user_group' => 'auth_user_group',
ar => 'invoice',
ap => 'purchase_invoice',
+ assembly => 'assembly',
background_jobs => 'background_job',
background_job_histories => 'background_job_history',
ap => 'purchase_invoice',
bank_accounts => 'bank_account',
buchungsgruppen => 'buchungsgruppe',
+ bin => 'bin',
+ business => 'business',
+ chart => 'chart',
contacts => 'contact',
+ customer => 'customer',
csv_import_profiles => 'csv_import_profile',
csv_import_profile_settings => 'csv_import_profile_setting',
csv_import_reports => 'csv_import_report',
defaults => 'default',
delivery_orders => 'delivery_order',
delivery_order_items => 'delivery_order_item',
+ delivery_order_items_stock => 'delivery_order_items_stock',
department => 'department',
- dpt_trans => 'dpt_trans',
drafts => 'draft',
dunning => 'dunning',
dunning_config => 'dunning_config',
prices => 'price',
price_factors => 'price_factor',
pricegroup => 'pricegroup',
- printers => 'Printer',
+ printers => 'printer',
+ project => 'project',
record_links => 'record_link',
sepa_export => 'sepa_export',
sepa_export_items => 'sepa_export_item',
schema_info => 'schema_info',
+ shipto => 'shipto',
status => 'status',
tax => 'tax',
taxkeys => 'tax_key',
tax_zones => 'tax_zone',
todo_user_config => 'todo_user_config',
+ transfer_type => 'transfer_type',
translation => 'translation',
- translation_payment_terms => 'translation_payment_term',
units => 'unit',
units_language => 'units_language',
vendor => 'vendor',
+ warehouse => 'warehouse',
);
my (%kivitendo_tables_to_packages, %kivitendo_tables_to_manager_packages, %kivitendo_packages_to_tables);