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