]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/Default.pm
kivitendo 3.9.2-0.2
[mfinanz.git] / SL / DB / MetaSetup / Default.pm
1 # This file has been auto-generated. Do not modify it; it will be overwritten
2 # by rose_auto_create_model.pl automatically.
3 package SL::DB::Default;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('defaults');
10
11 __PACKAGE__->meta->columns(
12   accounting_method                         => { type => 'text' },
13   address_city                              => { type => 'text' },
14   address_country                           => { type => 'text' },
15   address_street1                           => { type => 'text' },
16   address_street2                           => { type => 'text' },
17   address_zipcode                           => { type => 'text' },
18   advance_payment_clearing_chart_id         => { type => 'integer' },
19   advance_payment_taxable_19_id             => { type => 'integer' },
20   advance_payment_taxable_7_id              => { type => 'integer' },
21   allow_new_purchase_delivery_order         => { type => 'boolean', default => 'true', not_null => 1 },
22   allow_new_purchase_invoice                => { type => 'boolean', default => 'true', not_null => 1 },
23   allow_sales_invoice_from_sales_order      => { type => 'boolean', default => 'true', not_null => 1 },
24   allow_sales_invoice_from_sales_quotation  => { type => 'boolean', default => 'true', not_null => 1 },
25   allowed_documents_with_no_positions       => { type => 'array' },
26   always_record_links_from_order            => { type => 'boolean', default => 'false' },
27   ap_add_doc                                => { type => 'boolean', default => 'false', not_null => 1 },
28   ap_changeable                             => { type => 'integer', default => 2, not_null => 1 },
29   ap_chart_id                               => { type => 'integer', not_null => 1 },
30   ap_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
31   ar_add_doc                                => { type => 'boolean', default => 'false', not_null => 1 },
32   ar_changeable                             => { type => 'integer', default => 2, not_null => 1 },
33   ar_chart_id                               => { type => 'integer', not_null => 1 },
34   ar_paid_accno_id                          => { type => 'integer' },
35   ar_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
36   articlenumber                             => { type => 'text' },
37   assemblynumber                            => { type => 'text' },
38   assortmentnumber                          => { type => 'text' },
39   balance_startdate_method                  => { type => 'text' },
40   bcc_to_login                              => { type => 'boolean', default => 'false', not_null => 1 },
41   bin_id                                    => { type => 'integer' },
42   bin_id_ignore_onhand                      => { type => 'integer' },
43   businessnumber                            => { type => 'text' },
44   carry_over_account_chart_id               => { type => 'integer' },
45   check_bt_duplicates_endtoend              => { type => 'boolean', default => 'false' },
46   closedto                                  => { type => 'date' },
47   cnnumber                                  => { type => 'text' },
48   co_ustid                                  => { type => 'text' },
49   coa                                       => { type => 'text' },
50   company                                   => { type => 'text' },
51   contact_departments_use_textfield         => { type => 'boolean' },
52   contact_titles_use_textfield              => { type => 'boolean' },
53   create_part_if_not_found                  => { type => 'boolean', default => 'false' },
54   create_qrbill_invoices                    => { type => 'integer' },
55   create_zugferd_invoices                   => { type => 'integer' },
56   currency_id                               => { type => 'integer', not_null => 1 },
57   customer_hourly_rate                      => { type => 'numeric', precision => 8, scale => 2 },
58   customer_projects_only_in_sales           => { type => 'boolean', default => 'false', not_null => 1 },
59   customer_ustid_taxnummer_unique           => { type => 'boolean', default => 'false' },
60   customernumber                            => { type => 'text' },
61   datev_check_on_ap_transaction             => { type => 'boolean', default => 'true' },
62   datev_check_on_ar_transaction             => { type => 'boolean', default => 'true' },
63   datev_check_on_gl_transaction             => { type => 'boolean', default => 'true' },
64   datev_check_on_purchase_invoice           => { type => 'boolean', default => 'true' },
65   datev_check_on_sales_invoice              => { type => 'boolean', default => 'true' },
66   datev_export_format                       => { type => 'enum', check_in => [ 'cp1252', 'cp1252-translit', 'utf-8' ], db_type => 'datev_export_format_enum', default => 'cp1252-translit' },
67   delivery_date_interval                    => { type => 'integer', default => '0' },
68   deliverydate_on                           => { type => 'boolean', default => 'true' },
69   disabled_price_sources                    => { type => 'array' },
70   doc_delete_printfiles                     => { type => 'boolean', default => 'false' },
71   doc_files                                 => { type => 'boolean', default => 'false' },
72   doc_files_rootpath                        => { type => 'text', default => './documents' },
73   doc_max_filesize                          => { type => 'integer', default => 10000000 },
74   doc_storage                               => { type => 'boolean', default => 'false' },
75   doc_storage_for_attachments               => { type => 'text', default => 'Filesystem' },
76   doc_storage_for_documents                 => { type => 'text', default => 'Filesystem' },
77   doc_storage_for_images                    => { type => 'text', default => 'Filesystem' },
78   doc_storage_for_shopimages                => { type => 'text', default => 'Filesystem' },
79   doc_webdav                                => { type => 'boolean', default => 'false' },
80   dunning_ar                                => { type => 'integer' },
81   dunning_ar_amount_fee                     => { type => 'integer' },
82   dunning_ar_amount_interest                => { type => 'integer' },
83   dunning_creator                           => { type => 'enum', check_in => [ 'current_employee', 'invoice_employee' ], db_type => 'dunning_creator', default => 'current_employee' },
84   dunning_original_invoice_creation_mode    => { type => 'enum', check_in => [ 'create_new', 'use_last_created_or_create_new' ], db_type => 'invoice_creation_mode', default => 'create_new' },
85   duns                                      => { type => 'text' },
86   email_attachment_part_files_checked       => { type => 'boolean', default => 'true' },
87   email_attachment_record_files_checked     => { type => 'boolean', default => 'true' },
88   email_attachment_vc_files_checked         => { type => 'boolean', default => 'true' },
89   email_journal                             => { type => 'integer', default => 2 },
90   email_sender_dunning                      => { type => 'text', default => '' },
91   email_sender_invoice                      => { type => 'text', default => '' },
92   email_sender_letter                       => { type => 'text', default => '' },
93   email_sender_purchase_delivery_order      => { type => 'text', default => '' },
94   email_sender_purchase_invoice             => { type => 'text', default => '' },
95   email_sender_purchase_order               => { type => 'text', default => '' },
96   email_sender_request_quotation            => { type => 'text', default => '' },
97   email_sender_sales_delivery_order         => { type => 'text', default => '' },
98   email_sender_sales_order                  => { type => 'text', default => '' },
99   email_sender_sales_quotation              => { type => 'text', default => '' },
100   email_subject_transaction_description     => { type => 'boolean', default => 'false' },
101   expense_accno_id                          => { type => 'integer' },
102   fa_bufa_nr                                => { type => 'text' },
103   fa_dauerfrist                             => { type => 'text' },
104   fa_steuerberater_city                     => { type => 'text' },
105   fa_steuerberater_name                     => { type => 'text' },
106   fa_steuerberater_street                   => { type => 'text' },
107   fa_steuerberater_tel                      => { type => 'text' },
108   fa_voranmeld                              => { type => 'text' },
109   feature_balance                           => { type => 'boolean', default => 'true', not_null => 1 },
110   feature_datev                             => { type => 'boolean', default => 'true', not_null => 1 },
111   feature_erfolgsrechnung                   => { type => 'boolean', default => 'false', not_null => 1 },
112   feature_eurechnung                        => { type => 'boolean', default => 'true', not_null => 1 },
113   feature_ustva                             => { type => 'boolean', default => 'true', not_null => 1 },
114   fuzzy_skonto                              => { type => 'boolean', default => 'true' },
115   fuzzy_skonto_percentage                   => { type => 'float', default => '0.5', precision => 4, scale => 4 },
116   fxgain_accno_id                           => { type => 'integer' },
117   fxloss_accno_id                           => { type => 'integer' },
118   gl_add_doc                                => { type => 'boolean', default => 'false', not_null => 1 },
119   gl_changeable                             => { type => 'integer', default => 2, not_null => 1 },
120   global_bcc                                => { type => 'text', default => '' },
121   id                                        => { type => 'serial', not_null => 1 },
122   income_accno_id                           => { type => 'integer' },
123   inventory_accno_id                        => { type => 'integer' },
124   inventory_system                          => { type => 'text' },
125   invnumber                                 => { type => 'text' },
126   invoice_mail_settings                     => { type => 'enum', check_in => [ 'cp', 'invoice_mail', 'invoice_mail_cc_cp' ], db_type => 'invoice_mail_settings', default => 'cp' },
127   ir_add_doc                                => { type => 'boolean', default => 'false', not_null => 1 },
128   ir_changeable                             => { type => 'integer', default => 2, not_null => 1 },
129   ir_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
130   is_changeable                             => { type => 'integer', default => 2, not_null => 1 },
131   is_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
132   is_transfer_out                           => { type => 'boolean', default => 'false', not_null => 1 },
133   itime                                     => { type => 'timestamp', default => 'now()' },
134   language_id                               => { type => 'integer' },
135   layout_style                              => { type => 'text' },
136   letternumber                              => { type => 'integer' },
137   lock_oe_subversions                       => { type => 'boolean', default => 'false', not_null => 1 },
138   loss_carried_forward_chart_id             => { type => 'integer' },
139   max_future_booking_interval               => { type => 'integer', default => 360 },
140   mtime                                     => { type => 'timestamp' },
141   no_bank_proposals                         => { type => 'boolean', default => 'false' },
142   normalize_part_descriptions               => { type => 'boolean', default => 'true' },
143   normalize_vc_names                        => { type => 'boolean', default => 'true' },
144   order_always_project                      => { type => 'boolean', default => 'false' },
145   order_item_input_position                 => { type => 'integer', default => '0', not_null => 1 },
146   order_warn_duplicate_parts                => { type => 'boolean', default => 'true' },
147   order_warn_no_cusordnumber                => { type => 'boolean', default => 'false' },
148   order_warn_no_deliverydate                => { type => 'boolean', default => 'true' },
149   p_reclamation_record_number               => { type => 'text', default => '0', not_null => 1 },
150   parts_image_css                           => { type => 'text', default => 'border:0;float:left;max-width:250px;margin-top:20px:margin-right:10px;margin-left:10px;' },
151   parts_listing_image                       => { type => 'boolean', default => 'true' },
152   parts_show_image                          => { type => 'boolean', default => 'true' },
153   partsgroup_required                       => { type => 'boolean', default => 'false', not_null => 1 },
154   payments_changeable                       => { type => 'integer', default => '0', not_null => 1 },
155   pdonumber                                 => { type => 'text' },
156   pocnumber                                 => { type => 'text' },
157   ponumber                                  => { type => 'text' },
158   pqinumber                                 => { type => 'text' },
159   precision                                 => { type => 'numeric', default => '0.01', not_null => 1, precision => 15, scale => 5 },
160   print_interpolate_variables_in_positions  => { type => 'boolean', default => 'true', not_null => 1 },
161   produce_assembly_same_warehouse           => { type => 'boolean', default => 'true' },
162   produce_assembly_transfer_service         => { type => 'boolean', default => 'false' },
163   profit_carried_forward_chart_id           => { type => 'integer' },
164   profit_determination                      => { type => 'text' },
165   project_status_id                         => { type => 'integer' },
166   project_type_id                           => { type => 'integer' },
167   purchase_delivery_order_check_service     => { type => 'boolean', default => 'true' },
168   purchase_delivery_order_check_stocked     => { type => 'boolean', default => 'false' },
169   purchase_delivery_order_show_delete       => { type => 'boolean', default => 'true' },
170   purchase_order_show_delete                => { type => 'boolean', default => 'true' },
171   purchase_reclamation_show_delete          => { type => 'boolean', default => 'true', not_null => 1 },
172   qrbill_copy_invnumber                     => { type => 'boolean', default => 'false' },
173   quick_search_modules                      => { type => 'array' },
174   rdonumber                                 => { type => 'text' },
175   reclamation_warn_duplicate_parts          => { type => 'boolean', default => 'true', not_null => 1 },
176   reclamation_warn_no_reqdate               => { type => 'boolean', default => 'true', not_null => 1 },
177   record_links_from_order_with_myself       => { type => 'boolean', default => 'false' },
178   record_links_from_order_with_quotations   => { type => 'boolean', default => 'false' },
179   reqdate_interval                          => { type => 'integer', default => '0' },
180   reqdate_on                                => { type => 'boolean', default => 'true' },
181   require_transaction_description_ps        => { type => 'boolean', default => 'false', not_null => 1 },
182   requirement_spec_section_order_part_id    => { type => 'integer' },
183   revtrans                                  => { type => 'boolean', default => 'false' },
184   rfqnumber                                 => { type => 'text' },
185   rmanumber                                 => { type => 'text' },
186   rndgain_accno_id                          => { type => 'integer' },
187   rndloss_accno_id                          => { type => 'integer' },
188   s_reclamation_record_number               => { type => 'text', default => '0', not_null => 1 },
189   sales_delivery_order_check_service        => { type => 'boolean', default => 'true' },
190   sales_delivery_order_check_stocked        => { type => 'boolean', default => 'false' },
191   sales_delivery_order_show_delete          => { type => 'boolean', default => 'true' },
192   sales_order_show_delete                   => { type => 'boolean', default => 'true' },
193   sales_purchase_order_ship_missing_column  => { type => 'boolean', default => 'false' },
194   sales_purchase_record_numbers_changeable  => { type => 'boolean', default => 'false', not_null => 1 },
195   sales_reclamation_show_delete             => { type => 'boolean', default => 'true', not_null => 1 },
196   sales_serial_eq_charge                    => { type => 'boolean', default => 'false', not_null => 1 },
197   sdonumber                                 => { type => 'text' },
198   sepa_creditor_id                          => { type => 'text' },
199   sepa_export_xml                           => { type => 'boolean', default => 'true' },
200   sepa_reference_add_vc_vc_id               => { type => 'boolean', default => 'false' },
201   sepa_set_duedate_as_default_exec_date     => { type => 'boolean', default => 'false' },
202   sepa_set_skonto_date_as_default_exec_date => { type => 'boolean', default => 'false' },
203   sepa_set_skonto_date_buffer_in_days       => { type => 'integer', default => '0' },
204   servicenumber                             => { type => 'text' },
205   shipped_qty_require_stock_out             => { type => 'boolean', default => 'false', not_null => 1 },
206   show_bestbefore                           => { type => 'boolean', default => 'false' },
207   show_invoice_for_advance_payment          => { type => 'boolean', default => 'true', not_null => 1 },
208   show_longdescription_select_item          => { type => 'boolean', default => 'false' },
209   show_purchase_order_confirmation          => { type => 'boolean', default => 'true', not_null => 1 },
210   show_purchase_quotation_intake            => { type => 'boolean', default => 'true', not_null => 1 },
211   show_purchase_reclamation                 => { type => 'boolean', default => 'true', not_null => 1 },
212   show_sales_order_intake                   => { type => 'boolean', default => 'true', not_null => 1 },
213   show_sales_reclamation                    => { type => 'boolean', default => 'true', not_null => 1 },
214   show_weight                               => { type => 'boolean', default => 'false', not_null => 1 },
215   signature                                 => { type => 'text' },
216   soinumber                                 => { type => 'text' },
217   sonumber                                  => { type => 'text' },
218   sqnumber                                  => { type => 'text' },
219   stocktaking_bin_id                        => { type => 'integer' },
220   stocktaking_cutoff_date                   => { type => 'date' },
221   stocktaking_qty_threshold                 => { type => 'numeric', default => '0', precision => 25, scale => 5 },
222   stocktaking_warehouse_id                  => { type => 'integer' },
223   sudonumber                                => { type => 'text' },
224   taxnumber                                 => { type => 'text' },
225   templates                                 => { type => 'text' },
226   transfer_default                          => { type => 'boolean', default => 'true' },
227   transfer_default_ignore_onhand            => { type => 'boolean', default => 'false' },
228   transfer_default_services                 => { type => 'boolean', default => 'true' },
229   transfer_default_use_master_default_bin   => { type => 'boolean', default => 'false' },
230   transit_items_chart_id                    => { type => 'integer' },
231   transport_cost_reminder_article_number_id => { type => 'integer' },
232   undo_transfer_interval                    => { type => 'integer', default => 7 },
233   vc_greetings_use_textfield                => { type => 'boolean' },
234   vendor_ustid_taxnummer_unique             => { type => 'boolean', default => 'false' },
235   vendornumber                              => { type => 'text' },
236   version                                   => { type => 'varchar', length => 8 },
237   vertreter                                 => { type => 'boolean', default => 'false' },
238   warehouse_id                              => { type => 'integer' },
239   warehouse_id_ignore_onhand                => { type => 'integer' },
240   warn_no_delivery_order_for_invoice        => { type => 'boolean', default => 'false' },
241   webdav                                    => { type => 'boolean', default => 'false' },
242   webdav_documents                          => { type => 'boolean', default => 'false' },
243   webdav_sync_extern                        => { type => 'boolean', default => 'false' },
244   webdav_sync_extern_login                  => { type => 'text' },
245   webdav_sync_extern_pass                   => { type => 'text' },
246   webdav_sync_extern_url                    => { type => 'text' },
247   weightunit                                => { type => 'varchar', length => 5 },
248   workflow_po_ap_chart_id                   => { type => 'integer' },
249   yearend_method                            => { type => 'text', default => 'default', not_null => 1 },
250 );
251
252 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
253
254 __PACKAGE__->meta->allow_inline_column_values(1);
255
256 __PACKAGE__->meta->foreign_keys(
257   ap_chart => {
258     class       => 'SL::DB::Chart',
259     key_columns => { ap_chart_id => 'id' },
260   },
261
262   ar_chart => {
263     class       => 'SL::DB::Chart',
264     key_columns => { ar_chart_id => 'id' },
265   },
266
267   bin => {
268     class       => 'SL::DB::Bin',
269     key_columns => { bin_id => 'id' },
270   },
271
272   bin_obj => {
273     class       => 'SL::DB::Bin',
274     key_columns => { bin_id_ignore_onhand => 'id' },
275   },
276
277   carry_over_account_chart => {
278     class       => 'SL::DB::Chart',
279     key_columns => { carry_over_account_chart_id => 'id' },
280   },
281
282   currency => {
283     class       => 'SL::DB::Currency',
284     key_columns => { currency_id => 'id' },
285   },
286
287   loss_carried_forward_chart => {
288     class       => 'SL::DB::Chart',
289     key_columns => { loss_carried_forward_chart_id => 'id' },
290   },
291
292   profit_carried_forward_chart => {
293     class       => 'SL::DB::Chart',
294     key_columns => { profit_carried_forward_chart_id => 'id' },
295   },
296
297   project_status => {
298     class       => 'SL::DB::ProjectStatus',
299     key_columns => { project_status_id => 'id' },
300   },
301
302   project_type => {
303     class       => 'SL::DB::ProjectType',
304     key_columns => { project_type_id => 'id' },
305   },
306
307   requirement_spec_section_order_part => {
308     class       => 'SL::DB::Part',
309     key_columns => { requirement_spec_section_order_part_id => 'id' },
310   },
311
312   stocktaking_bin => {
313     class       => 'SL::DB::Bin',
314     key_columns => { stocktaking_bin_id => 'id' },
315   },
316
317   stocktaking_warehouse => {
318     class       => 'SL::DB::Warehouse',
319     key_columns => { stocktaking_warehouse_id => 'id' },
320   },
321
322   warehouse => {
323     class       => 'SL::DB::Warehouse',
324     key_columns => { warehouse_id => 'id' },
325   },
326
327   warehouse_obj => {
328     class       => 'SL::DB::Warehouse',
329     key_columns => { warehouse_id_ignore_onhand => 'id' },
330   },
331 );
332
333 1;
334 ;