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