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