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