Reapply "Form: round_amount precision support"
[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   fxgain_accno_id                           => { type => 'integer' },
53   fxloss_accno_id                           => { type => 'integer' },
54   gl_changeable                             => { type => 'integer', default => 2, not_null => 1 },
55   global_bcc                                => { type => 'text', default => '' },
56   id                                        => { type => 'serial', not_null => 1 },
57   income_accno_id                           => { type => 'integer' },
58   inventory_accno_id                        => { type => 'integer' },
59   inventory_system                          => { type => 'text' },
60   invnumber                                 => { type => 'text' },
61   ir_changeable                             => { type => 'integer', default => 2, not_null => 1 },
62   ir_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
63   is_changeable                             => { type => 'integer', default => 2, not_null => 1 },
64   is_show_mark_as_paid                      => { type => 'boolean', default => 'true' },
65   is_transfer_out                           => { type => 'boolean', default => 'false', not_null => 1 },
66   itime                                     => { type => 'timestamp', default => 'now()' },
67   language_id                               => { type => 'integer' },
68   letternumber                              => { type => 'integer' },
69   max_future_booking_interval               => { type => 'integer', default => 360 },
70   mtime                                     => { type => 'timestamp' },
71   normalize_part_descriptions               => { type => 'boolean', default => 'true' },
72   normalize_vc_names                        => { type => 'boolean', default => 'true' },
73   order_always_project                      => { type => 'boolean', default => 'false' },
74   order_warn_duplicate_parts                => { type => 'boolean', default => 'true' },
75   parts_image_css                           => { type => 'text', default => 'border:0;float:left;max-width:250px;margin-top:20px:margin-right:10px;margin-left:10px;' },
76   parts_listing_image                       => { type => 'boolean', default => 'true' },
77   parts_show_image                          => { type => 'boolean', default => 'true' },
78   payments_changeable                       => { type => 'integer', default => '0', not_null => 1 },
79   pdonumber                                 => { type => 'text' },
80   ponumber                                  => { type => 'text' },
81   precision                                 => { type => 'numeric', default => '0.01', not_null => 1, precision => 15, scale => 5 },
82   profit_determination                      => { type => 'text' },
83   project_status_id                         => { type => 'integer' },
84   project_type_id                           => { type => 'integer' },
85   purchase_delivery_order_show_delete       => { type => 'boolean', default => 'true' },
86   purchase_order_show_delete                => { type => 'boolean', default => 'true' },
87   quick_search_modules                      => { type => 'array' },
88   reqdate_interval                          => { type => 'integer', default => '0' },
89   require_transaction_description_ps        => { type => 'boolean', default => 'false', not_null => 1 },
90   requirement_spec_section_order_part_id    => { type => 'integer' },
91   revtrans                                  => { type => 'boolean', default => 'false' },
92   rfqnumber                                 => { type => 'text' },
93   rmanumber                                 => { type => 'text' },
94   rndgain_accno_id                          => { type => 'integer' },
95   rndloss_accno_id                          => { type => 'integer' },
96   sales_delivery_order_show_delete          => { type => 'boolean', default => 'true' },
97   sales_order_show_delete                   => { type => 'boolean', default => 'true' },
98   sales_purchase_order_ship_missing_column  => { type => 'boolean', default => 'false' },
99   sdonumber                                 => { type => 'text' },
100   sepa_creditor_id                          => { type => 'text' },
101   servicenumber                             => { type => 'text' },
102   show_bestbefore                           => { type => 'boolean', default => 'false' },
103   show_longdescription_select_item          => { type => 'boolean', default => 'false' },
104   show_weight                               => { type => 'boolean', default => 'false', not_null => 1 },
105   signature                                 => { type => 'text' },
106   sonumber                                  => { type => 'text' },
107   sqnumber                                  => { type => 'text' },
108   taxnumber                                 => { type => 'text' },
109   templates                                 => { type => 'text' },
110   transfer_default                          => { type => 'boolean', default => 'true' },
111   transfer_default_ignore_onhand            => { type => 'boolean', default => 'false' },
112   transfer_default_services                 => { type => 'boolean', default => 'true' },
113   transfer_default_use_master_default_bin   => { type => 'boolean', default => 'false' },
114   transport_cost_reminder_article_number_id => { type => 'integer' },
115   vendornumber                              => { type => 'text' },
116   version                                   => { type => 'varchar', length => 8 },
117   vertreter                                 => { type => 'boolean', default => 'false' },
118   warehouse_id                              => { type => 'integer' },
119   warehouse_id_ignore_onhand                => { type => 'integer' },
120   webdav                                    => { type => 'boolean', default => 'false' },
121   webdav_documents                          => { type => 'boolean', default => 'false' },
122   weightunit                                => { type => 'varchar', length => 5 },
123 );
124
125 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
126
127 __PACKAGE__->meta->allow_inline_column_values(1);
128
129 __PACKAGE__->meta->foreign_keys(
130   ap_chart => {
131     class       => 'SL::DB::Chart',
132     key_columns => { ap_chart_id => 'id' },
133   },
134
135   ar_chart => {
136     class       => 'SL::DB::Chart',
137     key_columns => { ar_chart_id => 'id' },
138   },
139
140   bin => {
141     class       => 'SL::DB::Bin',
142     key_columns => { bin_id => 'id' },
143   },
144
145   bin_obj => {
146     class       => 'SL::DB::Bin',
147     key_columns => { bin_id_ignore_onhand => 'id' },
148   },
149
150   currency => {
151     class       => 'SL::DB::Currency',
152     key_columns => { currency_id => 'id' },
153   },
154
155   project_status => {
156     class       => 'SL::DB::ProjectStatus',
157     key_columns => { project_status_id => 'id' },
158   },
159
160   project_type => {
161     class       => 'SL::DB::ProjectType',
162     key_columns => { project_type_id => 'id' },
163   },
164
165   requirement_spec_section_order_part => {
166     class       => 'SL::DB::Part',
167     key_columns => { requirement_spec_section_order_part_id => 'id' },
168   },
169
170   warehouse => {
171     class       => 'SL::DB::Warehouse',
172     key_columns => { warehouse_id => 'id' },
173   },
174
175   warehouse_obj => {
176     class       => 'SL::DB::Warehouse',
177     key_columns => { warehouse_id_ignore_onhand => 'id' },
178   },
179 );
180
181 1;
182 ;