Kunden/Lieferanten: UStId/Steuernr. eindeutig: Mandantenkonfiguration
[kivitendo-erp.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   allow_new_purchase_delivery_order         => { type => 'boolean', default => 'true', not_null => 1 },
19   allow_new_purchase_invoice                => { type => 'boolean', default => 'true', not_null => 1 },
20   allow_sales_invoice_from_sales_order      => { type => 'boolean', default => 'true', not_null => 1 },
21   allow_sales_invoice_from_sales_quotation  => { type => 'boolean', default => 'true', not_null => 1 },
22   ap_changeable                             => { type => 'integer', default => 2, not_null => 1 },
23   ap_chart_id                               => { type => 'integer' },
24   ap_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
25   ar_changeable                             => { type => 'integer', default => 2, not_null => 1 },
26   ar_chart_id                               => { type => 'integer' },
27   ar_paid_accno_id                          => { type => 'integer' },
28   ar_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
29   articlenumber                             => { type => 'text' },
30   assemblynumber                            => { type => 'text' },
31   assortmentnumber                          => { type => 'text' },
32   balance_startdate_method                  => { type => 'text' },
33   bcc_to_login                              => { type => 'boolean', default => 'false', not_null => 1 },
34   bin_id                                    => { type => 'integer' },
35   bin_id_ignore_onhand                      => { type => 'integer' },
36   businessnumber                            => { type => 'text' },
37   carry_over_account_chart_id               => { type => 'integer' },
38   closedto                                  => { type => 'date' },
39   cnnumber                                  => { type => 'text' },
40   co_ustid                                  => { type => 'text' },
41   coa                                       => { type => 'text' },
42   company                                   => { type => 'text' },
43   contact_departments_use_textfield         => { type => 'boolean' },
44   contact_titles_use_textfield              => { type => 'boolean' },
45   create_part_if_not_found                  => { type => 'boolean', default => 'false' },
46   create_zugferd_invoices                   => { type => 'integer' },
47   currency_id                               => { type => 'integer', not_null => 1 },
48   customer_hourly_rate                      => { type => 'numeric', precision => 8, scale => 2 },
49   customer_projects_only_in_sales           => { type => 'boolean', default => 'false', not_null => 1 },
50   customer_ustid_taxnummer_unique           => { type => 'boolean', default => 'false' },
51   customernumber                            => { type => 'text' },
52   datev_check_on_ap_transaction             => { type => 'boolean', default => 'true' },
53   datev_check_on_ar_transaction             => { type => 'boolean', default => 'true' },
54   datev_check_on_gl_transaction             => { type => 'boolean', default => 'true' },
55   datev_check_on_purchase_invoice           => { type => 'boolean', default => 'true' },
56   datev_check_on_sales_invoice              => { type => 'boolean', default => 'true' },
57   datev_export_format                       => { type => 'enum', check_in => [ 'cp1252', 'cp1252-translit', 'utf-8' ], db_type => 'datev_export_format_enum', default => 'cp1252-translit' },
58   delivery_date_interval                    => { type => 'integer', default => '0' },
59   disabled_price_sources                    => { type => 'array' },
60   doc_delete_printfiles                     => { type => 'boolean', default => 'false' },
61   doc_files                                 => { type => 'boolean', default => 'false' },
62   doc_files_rootpath                        => { type => 'text', default => './documents' },
63   doc_max_filesize                          => { type => 'integer', default => 10000000 },
64   doc_storage                               => { type => 'boolean', default => 'false' },
65   doc_storage_for_attachments               => { type => 'text', default => 'Filesystem' },
66   doc_storage_for_documents                 => { type => 'text', default => 'Filesystem' },
67   doc_storage_for_images                    => { type => 'text', default => 'Filesystem' },
68   doc_storage_for_shopimages                => { type => 'text', default => 'Filesystem' },
69   doc_webdav                                => { type => 'boolean', default => 'false' },
70   dunning_ar                                => { type => 'integer' },
71   dunning_ar_amount_fee                     => { type => 'integer' },
72   dunning_ar_amount_interest                => { type => 'integer' },
73   dunning_creator                           => { type => 'enum', check_in => [ 'current_employee', 'invoice_employee' ], db_type => 'dunning_creator', default => 'current_employee' },
74   duns                                      => { type => 'text' },
75   email_attachment_part_files_checked       => { type => 'boolean', default => 'true' },
76   email_attachment_record_files_checked     => { type => 'boolean', default => 'true' },
77   email_attachment_vc_files_checked         => { type => 'boolean', default => 'true' },
78   email_journal                             => { type => 'integer', default => 2 },
79   expense_accno_id                          => { type => 'integer' },
80   fa_bufa_nr                                => { type => 'text' },
81   fa_dauerfrist                             => { type => 'text' },
82   fa_steuerberater_city                     => { type => 'text' },
83   fa_steuerberater_name                     => { type => 'text' },
84   fa_steuerberater_street                   => { type => 'text' },
85   fa_steuerberater_tel                      => { type => 'text' },
86   fa_voranmeld                              => { type => 'text' },
87   feature_balance                           => { type => 'boolean', default => 'true', not_null => 1 },
88   feature_datev                             => { type => 'boolean', default => 'true', not_null => 1 },
89   feature_erfolgsrechnung                   => { type => 'boolean', default => 'false', not_null => 1 },
90   feature_eurechnung                        => { type => 'boolean', default => 'true', not_null => 1 },
91   feature_experimental_assortment           => { type => 'boolean', default => 'true', not_null => 1 },
92   feature_experimental_order                => { type => 'boolean', default => 'true', not_null => 1 },
93   feature_ustva                             => { type => 'boolean', default => 'true', not_null => 1 },
94   fxgain_accno_id                           => { type => 'integer' },
95   fxloss_accno_id                           => { type => 'integer' },
96   gl_changeable                             => { type => 'integer', default => 2, not_null => 1 },
97   global_bcc                                => { type => 'text', default => '' },
98   id                                        => { type => 'serial', not_null => 1 },
99   income_accno_id                           => { type => 'integer' },
100   inventory_accno_id                        => { type => 'integer' },
101   inventory_system                          => { type => 'text' },
102   invnumber                                 => { type => 'text' },
103   invoice_mail_settings                     => { type => 'enum', check_in => [ 'cp', 'invoice_mail', 'invoice_mail_cc_cp' ], db_type => 'invoice_mail_settings', default => 'cp' },
104   ir_changeable                             => { type => 'integer', default => 2, not_null => 1 },
105   ir_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
106   is_changeable                             => { type => 'integer', default => 2, not_null => 1 },
107   is_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
108   is_transfer_out                           => { type => 'boolean', default => 'false', not_null => 1 },
109   itime                                     => { type => 'timestamp', default => 'now()' },
110   language_id                               => { type => 'integer' },
111   letternumber                              => { type => 'integer' },
112   loss_carried_forward_chart_id             => { type => 'integer' },
113   max_future_booking_interval               => { type => 'integer', default => 360 },
114   mtime                                     => { type => 'timestamp' },
115   normalize_part_descriptions               => { type => 'boolean', default => 'true' },
116   normalize_vc_names                        => { type => 'boolean', default => 'true' },
117   order_always_project                      => { type => 'boolean', default => 'false' },
118   order_warn_duplicate_parts                => { type => 'boolean', default => 'true' },
119   order_warn_no_deliverydate                => { type => 'boolean', default => 'true' },
120   parts_image_css                           => { type => 'text', default => 'border:0;float:left;max-width:250px;margin-top:20px:margin-right:10px;margin-left:10px;' },
121   parts_listing_image                       => { type => 'boolean', default => 'true' },
122   parts_show_image                          => { type => 'boolean', default => 'true' },
123   payments_changeable                       => { type => 'integer', default => '0', not_null => 1 },
124   pdonumber                                 => { type => 'text' },
125   ponumber                                  => { type => 'text' },
126   precision                                 => { type => 'numeric', default => '0.01', not_null => 1, precision => 15, scale => 5 },
127   profit_carried_forward_chart_id           => { type => 'integer' },
128   profit_determination                      => { type => 'text' },
129   project_status_id                         => { type => 'integer' },
130   project_type_id                           => { type => 'integer' },
131   purchase_delivery_order_check_stocked     => { type => 'boolean', default => 'false' },
132   purchase_delivery_order_show_delete       => { type => 'boolean', default => 'true' },
133   purchase_order_show_delete                => { type => 'boolean', default => 'true' },
134   quick_search_modules                      => { type => 'array' },
135   reqdate_interval                          => { type => 'integer', default => '0' },
136   require_transaction_description_ps        => { type => 'boolean', default => 'false', not_null => 1 },
137   requirement_spec_section_order_part_id    => { type => 'integer' },
138   revtrans                                  => { type => 'boolean', default => 'false' },
139   rfqnumber                                 => { type => 'text' },
140   rmanumber                                 => { type => 'text' },
141   rndgain_accno_id                          => { type => 'integer' },
142   rndloss_accno_id                          => { type => 'integer' },
143   sales_delivery_order_check_stocked        => { type => 'boolean', default => 'false' },
144   sales_delivery_order_show_delete          => { type => 'boolean', default => 'true' },
145   sales_order_show_delete                   => { type => 'boolean', default => 'true' },
146   sales_purchase_order_ship_missing_column  => { type => 'boolean', default => 'false' },
147   sales_serial_eq_charge                    => { type => 'boolean', default => 'false', not_null => 1 },
148   sdonumber                                 => { type => 'text' },
149   sepa_creditor_id                          => { type => 'text' },
150   sepa_reference_add_vc_vc_id               => { type => 'boolean', default => 'false' },
151   sepa_set_duedate_as_default_exec_date     => { type => 'boolean', default => 'false' },
152   sepa_set_skonto_date_as_default_exec_date => { type => 'boolean', default => 'false' },
153   sepa_set_skonto_date_buffer_in_days       => { type => 'integer', default => '0' },
154   servicenumber                             => { type => 'text' },
155   shipped_qty_fill_up                       => { type => 'boolean', default => 'true', not_null => 1 },
156   shipped_qty_item_identity_fields          => { type => 'array', default => '{parts_id}', not_null => 1 },
157   shipped_qty_require_stock_out             => { type => 'boolean', default => 'false', not_null => 1 },
158   show_bestbefore                           => { type => 'boolean', default => 'false' },
159   show_longdescription_select_item          => { type => 'boolean', default => 'false' },
160   show_weight                               => { type => 'boolean', default => 'false', not_null => 1 },
161   signature                                 => { type => 'text' },
162   sonumber                                  => { type => 'text' },
163   sqnumber                                  => { type => 'text' },
164   stocktaking_bin_id                        => { type => 'integer' },
165   stocktaking_cutoff_date                   => { type => 'date' },
166   stocktaking_qty_threshold                 => { type => 'numeric', default => '0', precision => 25, scale => 5 },
167   stocktaking_warehouse_id                  => { type => 'integer' },
168   taxnumber                                 => { type => 'text' },
169   templates                                 => { type => 'text' },
170   transfer_default                          => { type => 'boolean', default => 'true' },
171   transfer_default_ignore_onhand            => { type => 'boolean', default => 'false' },
172   transfer_default_services                 => { type => 'boolean', default => 'true' },
173   transfer_default_use_master_default_bin   => { type => 'boolean', default => 'false' },
174   transfer_default_warehouse_for_assembly   => { type => 'boolean', default => 'false' },
175   transport_cost_reminder_article_number_id => { type => 'integer' },
176   vc_greetings_use_textfield                => { type => 'boolean' },
177   vendor_ustid_taxnummer_unique             => { type => 'boolean', default => 'false' },
178   vendornumber                              => { type => 'text' },
179   version                                   => { type => 'varchar', length => 8 },
180   vertreter                                 => { type => 'boolean', default => 'false' },
181   warehouse_id                              => { type => 'integer' },
182   warehouse_id_ignore_onhand                => { type => 'integer' },
183   webdav                                    => { type => 'boolean', default => 'false' },
184   webdav_documents                          => { type => 'boolean', default => 'false' },
185   weightunit                                => { type => 'varchar', length => 5 },
186   workflow_po_ap_chart_id                   => { type => 'integer' },
187 );
188
189 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
190
191 __PACKAGE__->meta->allow_inline_column_values(1);
192
193 __PACKAGE__->meta->foreign_keys(
194   ap_chart => {
195     class       => 'SL::DB::Chart',
196     key_columns => { ap_chart_id => 'id' },
197   },
198
199   ar_chart => {
200     class       => 'SL::DB::Chart',
201     key_columns => { ar_chart_id => 'id' },
202   },
203
204   bin => {
205     class       => 'SL::DB::Bin',
206     key_columns => { bin_id => 'id' },
207   },
208
209   bin_obj => {
210     class       => 'SL::DB::Bin',
211     key_columns => { bin_id_ignore_onhand => 'id' },
212   },
213
214   carry_over_account_chart => {
215     class       => 'SL::DB::Chart',
216     key_columns => { carry_over_account_chart_id => 'id' },
217   },
218
219   currency => {
220     class       => 'SL::DB::Currency',
221     key_columns => { currency_id => 'id' },
222   },
223
224   loss_carried_forward_chart => {
225     class       => 'SL::DB::Chart',
226     key_columns => { loss_carried_forward_chart_id => 'id' },
227   },
228
229   profit_carried_forward_chart => {
230     class       => 'SL::DB::Chart',
231     key_columns => { profit_carried_forward_chart_id => 'id' },
232   },
233
234   project_status => {
235     class       => 'SL::DB::ProjectStatus',
236     key_columns => { project_status_id => 'id' },
237   },
238
239   project_type => {
240     class       => 'SL::DB::ProjectType',
241     key_columns => { project_type_id => 'id' },
242   },
243
244   requirement_spec_section_order_part => {
245     class       => 'SL::DB::Part',
246     key_columns => { requirement_spec_section_order_part_id => 'id' },
247   },
248
249   stocktaking_bin => {
250     class       => 'SL::DB::Bin',
251     key_columns => { stocktaking_bin_id => 'id' },
252   },
253
254   stocktaking_warehouse => {
255     class       => 'SL::DB::Warehouse',
256     key_columns => { stocktaking_warehouse_id => 'id' },
257   },
258
259   warehouse => {
260     class       => 'SL::DB::Warehouse',
261     key_columns => { warehouse_id => 'id' },
262   },
263
264   warehouse_obj => {
265     class       => 'SL::DB::Warehouse',
266     key_columns => { warehouse_id_ignore_onhand => 'id' },
267   },
268 );
269
270 1;
271 ;