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;
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('defaults');
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 assortmentnumber => { type => 'text' },
28 balance_startdate_method => { type => 'text' },
29 bcc_to_login => { type => 'boolean', default => 'false', not_null => 1 },
30 bin_id => { type => 'integer' },
31 bin_id_ignore_onhand => { type => 'integer' },
32 businessnumber => { type => 'text' },
33 closedto => { type => 'date' },
34 cnnumber => { type => 'text' },
35 co_ustid => { type => 'text' },
36 coa => { type => 'text' },
37 company => { type => 'text' },
38 create_part_if_not_found => { type => 'boolean', default => 'false' },
39 currency_id => { type => 'integer', not_null => 1 },
40 customer_hourly_rate => { type => 'numeric', precision => 8, scale => 2 },
41 customer_projects_only_in_sales => { type => 'boolean', default => 'false', not_null => 1 },
42 customernumber => { type => 'text' },
43 datev_check_on_ap_transaction => { type => 'boolean', default => 'true' },
44 datev_check_on_ar_transaction => { type => 'boolean', default => 'true' },
45 datev_check_on_gl_transaction => { type => 'boolean', default => 'true' },
46 datev_check_on_purchase_invoice => { type => 'boolean', default => 'true' },
47 datev_check_on_sales_invoice => { type => 'boolean', default => 'true' },
48 datev_export_format => { type => 'enum', check_in => [ 'cp1252', 'cp1252-translit', 'utf-8' ], db_type => 'datev_export_format_enum', default => 'cp1252-translit' },
49 delivery_date_interval => { type => 'integer', default => '0' },
50 disabled_price_sources => { type => 'array' },
51 doc_delete_printfiles => { type => 'boolean', default => 'false' },
52 doc_files => { type => 'boolean', default => 'false' },
53 doc_files_rootpath => { type => 'text', default => './documents' },
54 doc_max_filesize => { type => 'integer', default => 10000000 },
55 doc_storage => { type => 'boolean', default => 'false' },
56 doc_storage_for_attachments => { type => 'text', default => 'Filesystem' },
57 doc_storage_for_documents => { type => 'text', default => 'Filesystem' },
58 doc_storage_for_images => { type => 'text', default => 'Filesystem' },
59 doc_storage_for_shopimages => { type => 'text', default => 'Filesystem' },
60 doc_webdav => { type => 'boolean', default => 'false' },
61 dunning_ar => { type => 'integer' },
62 dunning_ar_amount_fee => { type => 'integer' },
63 dunning_ar_amount_interest => { type => 'integer' },
64 dunning_creator => { type => 'enum', check_in => [ 'current_employee', 'invoice_employee' ], db_type => 'dunning_creator', default => 'current_employee' },
65 duns => { type => 'text' },
66 email_journal => { type => 'integer', default => 2 },
67 expense_accno_id => { type => 'integer' },
68 fa_bufa_nr => { type => 'text' },
69 fa_dauerfrist => { type => 'text' },
70 fa_steuerberater_city => { type => 'text' },
71 fa_steuerberater_name => { type => 'text' },
72 fa_steuerberater_street => { type => 'text' },
73 fa_steuerberater_tel => { type => 'text' },
74 fa_voranmeld => { type => 'text' },
75 feature_balance => { type => 'boolean', default => 'true', not_null => 1 },
76 feature_datev => { type => 'boolean', default => 'true', not_null => 1 },
77 feature_erfolgsrechnung => { type => 'boolean', default => 'false', not_null => 1 },
78 feature_eurechnung => { type => 'boolean', default => 'true', not_null => 1 },
79 feature_experimental_assortment => { type => 'boolean', default => 'true', not_null => 1 },
80 feature_experimental_order => { type => 'boolean', default => 'true', not_null => 1 },
81 feature_ustva => { type => 'boolean', default => 'true', not_null => 1 },
82 fxgain_accno_id => { type => 'integer' },
83 fxloss_accno_id => { type => 'integer' },
84 gl_changeable => { type => 'integer', default => 2, not_null => 1 },
85 global_bcc => { type => 'text', default => '' },
86 id => { type => 'serial', not_null => 1 },
87 income_accno_id => { type => 'integer' },
88 inventory_accno_id => { type => 'integer' },
89 inventory_system => { type => 'text' },
90 invnumber => { type => 'text' },
91 ir_changeable => { type => 'integer', default => 2, not_null => 1 },
92 ir_show_mark_as_paid => { type => 'boolean', default => 'true' },
93 is_changeable => { type => 'integer', default => 2, not_null => 1 },
94 is_show_mark_as_paid => { type => 'boolean', default => 'true' },
95 is_transfer_out => { type => 'boolean', default => 'false', not_null => 1 },
96 itime => { type => 'timestamp', default => 'now()' },
97 language_id => { type => 'integer' },
98 letternumber => { type => 'integer' },
99 max_future_booking_interval => { type => 'integer', default => 360 },
100 mtime => { type => 'timestamp' },
101 normalize_part_descriptions => { type => 'boolean', default => 'true' },
102 normalize_vc_names => { type => 'boolean', default => 'true' },
103 order_always_project => { type => 'boolean', default => 'false' },
104 order_warn_duplicate_parts => { type => 'boolean', default => 'true' },
105 order_warn_no_deliverydate => { type => 'boolean', default => 'true' },
106 parts_image_css => { type => 'text', default => 'border:0;float:left;max-width:250px;margin-top:20px:margin-right:10px;margin-left:10px;' },
107 parts_listing_image => { type => 'boolean', default => 'true' },
108 parts_show_image => { type => 'boolean', default => 'true' },
109 payments_changeable => { type => 'integer', default => '0', not_null => 1 },
110 pdonumber => { type => 'text' },
111 ponumber => { type => 'text' },
112 precision => { type => 'numeric', default => '0.01', not_null => 1, precision => 15, scale => 5 },
113 profit_determination => { type => 'text' },
114 project_status_id => { type => 'integer' },
115 project_type_id => { type => 'integer' },
116 purchase_delivery_order_show_delete => { type => 'boolean', default => 'true' },
117 purchase_order_show_delete => { type => 'boolean', default => 'true' },
118 quick_search_modules => { type => 'array' },
119 reqdate_interval => { type => 'integer', default => '0' },
120 require_transaction_description_ps => { type => 'boolean', default => 'false', not_null => 1 },
121 requirement_spec_section_order_part_id => { type => 'integer' },
122 revtrans => { type => 'boolean', default => 'false' },
123 rfqnumber => { type => 'text' },
124 rmanumber => { type => 'text' },
125 rndgain_accno_id => { type => 'integer' },
126 rndloss_accno_id => { type => 'integer' },
127 sales_delivery_order_show_delete => { type => 'boolean', default => 'true' },
128 sales_order_show_delete => { type => 'boolean', default => 'true' },
129 sales_purchase_order_ship_missing_column => { type => 'boolean', default => 'false' },
130 sdonumber => { type => 'text' },
131 sepa_creditor_id => { type => 'text' },
132 sepa_reference_add_vc_vc_id => { type => 'boolean', default => 'false' },
133 sepa_set_duedate_as_default_exec_date => { type => 'boolean', default => 'false' },
134 sepa_set_skonto_date_as_default_exec_date => { type => 'boolean', default => 'false' },
135 sepa_set_skonto_date_buffer_in_days => { type => 'integer', default => '0' },
136 servicenumber => { type => 'text' },
137 shipped_qty_fill_up => { type => 'boolean', default => 'true', not_null => 1 },
138 shipped_qty_item_identity_fields => { type => 'array', default => '{parts_id}', not_null => 1 },
139 shipped_qty_require_stock_out => { type => 'boolean', default => 'false', not_null => 1 },
140 show_bestbefore => { type => 'boolean', default => 'false' },
141 show_longdescription_select_item => { type => 'boolean', default => 'false' },
142 show_weight => { type => 'boolean', default => 'false', not_null => 1 },
143 signature => { type => 'text' },
144 sonumber => { type => 'text' },
145 sqnumber => { type => 'text' },
146 stocktaking_bin_id => { type => 'integer' },
147 stocktaking_cutoff_date => { type => 'date' },
148 stocktaking_qty_threshold => { type => 'numeric', default => '0', precision => 25, scale => 5 },
149 stocktaking_warehouse_id => { type => 'integer' },
150 taxnumber => { type => 'text' },
151 templates => { type => 'text' },
152 transfer_default => { type => 'boolean', default => 'true' },
153 transfer_default_ignore_onhand => { type => 'boolean', default => 'false' },
154 transfer_default_services => { type => 'boolean', default => 'true' },
155 transfer_default_use_master_default_bin => { type => 'boolean', default => 'false' },
156 transfer_default_warehouse_for_assembly => { type => 'boolean', default => 'false' },
157 transport_cost_reminder_article_number_id => { type => 'integer' },
158 vendornumber => { type => 'text' },
159 version => { type => 'varchar', length => 8 },
160 vertreter => { type => 'boolean', default => 'false' },
161 warehouse_id => { type => 'integer' },
162 warehouse_id_ignore_onhand => { type => 'integer' },
163 webdav => { type => 'boolean', default => 'false' },
164 webdav_documents => { type => 'boolean', default => 'false' },
165 weightunit => { type => 'varchar', length => 5 },
168 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
170 __PACKAGE__->meta->allow_inline_column_values(1);
172 __PACKAGE__->meta->foreign_keys(
174 class => 'SL::DB::Chart',
175 key_columns => { ap_chart_id => 'id' },
179 class => 'SL::DB::Chart',
180 key_columns => { ar_chart_id => 'id' },
184 class => 'SL::DB::Bin',
185 key_columns => { bin_id => 'id' },
189 class => 'SL::DB::Bin',
190 key_columns => { bin_id_ignore_onhand => 'id' },
194 class => 'SL::DB::Currency',
195 key_columns => { currency_id => 'id' },
199 class => 'SL::DB::ProjectStatus',
200 key_columns => { project_status_id => 'id' },
204 class => 'SL::DB::ProjectType',
205 key_columns => { project_type_id => 'id' },
208 requirement_spec_section_order_part => {
209 class => 'SL::DB::Part',
210 key_columns => { requirement_spec_section_order_part_id => 'id' },
214 class => 'SL::DB::Bin',
215 key_columns => { stocktaking_bin_id => 'id' },
218 stocktaking_warehouse => {
219 class => 'SL::DB::Warehouse',
220 key_columns => { stocktaking_warehouse_id => 'id' },
224 class => 'SL::DB::Warehouse',
225 key_columns => { warehouse_id => 'id' },
229 class => 'SL::DB::Warehouse',
230 key_columns => { warehouse_id_ignore_onhand => 'id' },