0ef66db2583f68d1a1ab8fa0355066c07058db50
[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                                   => { type => 'text' },
14   allow_new_purchase_delivery_order         => { type => 'boolean', default => 'true', not_null => 1 },
15   allow_new_purchase_invoice                => { type => 'boolean', default => 'true', not_null => 1 },
16   allow_sales_invoice_from_sales_order      => { type => 'boolean', default => 'true', not_null => 1 },
17   allow_sales_invoice_from_sales_quotation  => { type => 'boolean', default => 'true', not_null => 1 },
18   ap_changeable                             => { type => 'integer', default => 2, not_null => 1 },
19   ap_chart_id                               => { type => 'integer' },
20   ap_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
21   ar_changeable                             => { type => 'integer', default => 2, not_null => 1 },
22   ar_chart_id                               => { type => 'integer' },
23   ar_paid_accno_id                          => { type => 'integer' },
24   ar_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
25   articlenumber                             => { type => 'text' },
26   assemblynumber                            => { type => 'text' },
27   balance_startdate_method                  => { type => 'text' },
28   bin_id                                    => { type => 'integer' },
29   bin_id_ignore_onhand                      => { type => 'integer' },
30   businessnumber                            => { type => 'text' },
31   closedto                                  => { type => 'date' },
32   cnnumber                                  => { type => 'text' },
33   co_ustid                                  => { type => 'text' },
34   coa                                       => { type => 'text' },
35   company                                   => { type => 'text' },
36   currency_id                               => { type => 'integer', not_null => 1 },
37   customer_hourly_rate                      => { type => 'numeric', precision => 8, scale => 2 },
38   customer_projects_only_in_sales           => { type => 'boolean', default => 'false', not_null => 1 },
39   customernumber                            => { type => 'text' },
40   datev_check_on_ap_transaction             => { type => 'boolean', default => 'true' },
41   datev_check_on_ar_transaction             => { type => 'boolean', default => 'true' },
42   datev_check_on_gl_transaction             => { type => 'boolean', default => 'true' },
43   datev_check_on_purchase_invoice           => { type => 'boolean', default => 'true' },
44   datev_check_on_sales_invoice              => { type => 'boolean', default => 'true' },
45   disabled_price_sources                    => { type => 'array' },
46   dunning_ar                                => { type => 'integer' },
47   dunning_ar_amount_fee                     => { type => 'integer' },
48   dunning_ar_amount_interest                => { type => 'integer' },
49   duns                                      => { type => 'text' },
50   email_journal                             => { type => 'integer', default => 2 },
51   expense_accno_id                          => { type => 'integer' },
52   fa_bufa_nr                                => { type => 'text' },
53   fa_dauerfrist                             => { type => 'text' },
54   fa_steuerberater_city                     => { type => 'text' },
55   fa_steuerberater_name                     => { type => 'text' },
56   fa_steuerberater_street                   => { type => 'text' },
57   fa_steuerberater_tel                      => { type => 'text' },
58   fa_voranmeld                              => { type => 'text' },
59   feature_balance                           => { type => 'boolean', default => 'true', not_null => 1 },
60   feature_datev                             => { type => 'boolean', default => 'true', not_null => 1 },
61   feature_erfolgsrechnung                   => { type => 'boolean', default => 'false', not_null => 1 },
62   feature_eurechnung                        => { type => 'boolean', default => 'true', not_null => 1 },
63   feature_ustva                             => { type => 'boolean', default => 'true', not_null => 1 },
64   fxgain_accno_id                           => { type => 'integer' },
65   fxloss_accno_id                           => { type => 'integer' },
66   gl_changeable                             => { type => 'integer', default => 2, not_null => 1 },
67   global_bcc                                => { type => 'text', default => '' },
68   id                                        => { type => 'serial', not_null => 1 },
69   income_accno_id                           => { type => 'integer' },
70   inventory_accno_id                        => { type => 'integer' },
71   inventory_system                          => { type => 'text' },
72   invnumber                                 => { type => 'text' },
73   ir_changeable                             => { type => 'integer', default => 2, not_null => 1 },
74   ir_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
75   is_changeable                             => { type => 'integer', default => 2, not_null => 1 },
76   is_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
77   is_transfer_out                           => { type => 'boolean', default => 'false', not_null => 1 },
78   itime                                     => { type => 'timestamp', default => 'now()' },
79   language_id                               => { type => 'integer' },
80   letternumber                              => { type => 'integer' },
81   max_future_booking_interval               => { type => 'integer', default => 360 },
82   mtime                                     => { type => 'timestamp' },
83   normalize_part_descriptions               => { type => 'boolean', default => 'true' },
84   normalize_vc_names                        => { type => 'boolean', default => 'true' },
85   order_always_project                      => { type => 'boolean', default => 'false' },
86   order_warn_duplicate_parts                => { type => 'boolean', default => 'true' },
87   parts_image_css                           => { type => 'text', default => 'border:0;float:left;max-width:250px;margin-top:20px:margin-right:10px;margin-left:10px;' },
88   parts_listing_image                       => { type => 'boolean', default => 'true' },
89   parts_show_image                          => { type => 'boolean', default => 'true' },
90   payments_changeable                       => { type => 'integer', default => '0', not_null => 1 },
91   pdonumber                                 => { type => 'text' },
92   ponumber                                  => { type => 'text' },
93   precision                                 => { type => 'numeric', default => '0.01', not_null => 1, precision => 15, scale => 5 },
94   profit_determination                      => { type => 'text' },
95   project_status_id                         => { type => 'integer' },
96   project_type_id                           => { type => 'integer' },
97   purchase_delivery_order_show_delete       => { type => 'boolean', default => 'true' },
98   purchase_order_show_delete                => { type => 'boolean', default => 'true' },
99   quick_search_modules                      => { type => 'array' },
100   reqdate_interval                          => { type => 'integer', default => '0' },
101   require_transaction_description_ps        => { type => 'boolean', default => 'false', not_null => 1 },
102   requirement_spec_section_order_part_id    => { type => 'integer' },
103   revtrans                                  => { type => 'boolean', default => 'false' },
104   rfqnumber                                 => { type => 'text' },
105   rmanumber                                 => { type => 'text' },
106   rndgain_accno_id                          => { type => 'integer' },
107   rndloss_accno_id                          => { type => 'integer' },
108   sales_delivery_order_show_delete          => { type => 'boolean', default => 'true' },
109   sales_order_show_delete                   => { type => 'boolean', default => 'true' },
110   sales_purchase_order_ship_missing_column  => { type => 'boolean', default => 'false' },
111   sdonumber                                 => { type => 'text' },
112   sepa_creditor_id                          => { type => 'text' },
113   sepa_reference_add_vc_vc_id               => { type => 'boolean', default => 'false' },
114   servicenumber                             => { type => 'text' },
115   show_bestbefore                           => { type => 'boolean', default => 'false' },
116   show_longdescription_select_item          => { type => 'boolean', default => 'false' },
117   show_weight                               => { type => 'boolean', default => 'false', not_null => 1 },
118   signature                                 => { type => 'text' },
119   sonumber                                  => { type => 'text' },
120   sqnumber                                  => { type => 'text' },
121   taxnumber                                 => { type => 'text' },
122   templates                                 => { type => 'text' },
123   transfer_default                          => { type => 'boolean', default => 'true' },
124   transfer_default_ignore_onhand            => { type => 'boolean', default => 'false' },
125   transfer_default_services                 => { type => 'boolean', default => 'true' },
126   transfer_default_use_master_default_bin   => { type => 'boolean', default => 'false' },
127   transfer_default_warehouse_for_assembly   => { type => 'boolean', default => 'false' },
128   transport_cost_reminder_article_number_id => { type => 'integer' },
129   vendornumber                              => { type => 'text' },
130   version                                   => { type => 'varchar', length => 8 },
131   vertreter                                 => { type => 'boolean', default => 'false' },
132   warehouse_id                              => { type => 'integer' },
133   warehouse_id_ignore_onhand                => { type => 'integer' },
134   webdav                                    => { type => 'boolean', default => 'false' },
135   webdav_documents                          => { type => 'boolean', default => 'false' },
136   weightunit                                => { type => 'varchar', length => 5 },
137 );
138
139 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
140
141 __PACKAGE__->meta->allow_inline_column_values(1);
142
143 __PACKAGE__->meta->foreign_keys(
144   ap_chart => {
145     class       => 'SL::DB::Chart',
146     key_columns => { ap_chart_id => 'id' },
147   },
148
149   ar_chart => {
150     class       => 'SL::DB::Chart',
151     key_columns => { ar_chart_id => 'id' },
152   },
153
154   bin => {
155     class       => 'SL::DB::Bin',
156     key_columns => { bin_id => 'id' },
157   },
158
159   bin_obj => {
160     class       => 'SL::DB::Bin',
161     key_columns => { bin_id_ignore_onhand => 'id' },
162   },
163
164   currency => {
165     class       => 'SL::DB::Currency',
166     key_columns => { currency_id => 'id' },
167   },
168
169   project_status => {
170     class       => 'SL::DB::ProjectStatus',
171     key_columns => { project_status_id => 'id' },
172   },
173
174   project_type => {
175     class       => 'SL::DB::ProjectType',
176     key_columns => { project_type_id => 'id' },
177   },
178
179   requirement_spec_section_order_part => {
180     class       => 'SL::DB::Part',
181     key_columns => { requirement_spec_section_order_part_id => 'id' },
182   },
183
184   warehouse => {
185     class       => 'SL::DB::Warehouse',
186     key_columns => { warehouse_id => 'id' },
187   },
188
189   warehouse_obj => {
190     class       => 'SL::DB::Warehouse',
191     key_columns => { warehouse_id_ignore_onhand => 'id' },
192   },
193 );
194
195 1;
196 ;