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 carry_over_account_chart_id => { type => 'integer' },
34 closedto => { type => 'date' },
35 cnnumber => { type => 'text' },
36 co_ustid => { type => 'text' },
37 coa => { type => 'text' },
38 company => { type => 'text' },
39 create_part_if_not_found => { type => 'boolean', default => 'false' },
40 currency_id => { type => 'integer', not_null => 1 },
41 customer_hourly_rate => { type => 'numeric', precision => 8, scale => 2 },
42 customer_projects_only_in_sales => { type => 'boolean', default => 'false', not_null => 1 },
43 customernumber => { type => 'text' },
44 datev_check_on_ap_transaction => { type => 'boolean', default => 'true' },
45 datev_check_on_ar_transaction => { type => 'boolean', default => 'true' },
46 datev_check_on_gl_transaction => { type => 'boolean', default => 'true' },
47 datev_check_on_purchase_invoice => { type => 'boolean', default => 'true' },
48 datev_check_on_sales_invoice => { type => 'boolean', default => 'true' },
49 datev_export_format => { type => 'enum', check_in => [ 'cp1252', 'cp1252-translit', 'utf-8' ], db_type => 'datev_export_format_enum', default => 'cp1252-translit' },
50 delivery_date_interval => { type => 'integer', default => '0' },
51 disabled_price_sources => { type => 'array' },
52 doc_delete_printfiles => { type => 'boolean', default => 'false' },
53 doc_files => { type => 'boolean', default => 'false' },
54 doc_files_rootpath => { type => 'text', default => './documents' },
55 doc_max_filesize => { type => 'integer', default => 10000000 },
56 doc_storage => { type => 'boolean', default => 'false' },
57 doc_storage_for_attachments => { type => 'text', default => 'Filesystem' },
58 doc_storage_for_documents => { type => 'text', default => 'Filesystem' },
59 doc_storage_for_images => { type => 'text', default => 'Filesystem' },
60 doc_storage_for_shopimages => { type => 'text', default => 'Filesystem' },
61 doc_webdav => { type => 'boolean', default => 'false' },
62 dunning_ar => { type => 'integer' },
63 dunning_ar_amount_fee => { type => 'integer' },
64 dunning_ar_amount_interest => { type => 'integer' },
65 dunning_creator => { type => 'enum', check_in => [ 'current_employee', 'invoice_employee' ], db_type => 'dunning_creator', default => 'current_employee' },
66 duns => { type => 'text' },
67 email_attachment_part_files_checked => { type => 'boolean', default => 'true' },
68 email_attachment_record_files_checked => { type => 'boolean', default => 'true' },
69 email_attachment_vc_files_checked => { type => 'boolean', default => 'true' },
70 email_journal => { type => 'integer', default => 2 },
71 expense_accno_id => { type => 'integer' },
72 fa_bufa_nr => { type => 'text' },
73 fa_dauerfrist => { type => 'text' },
74 fa_steuerberater_city => { type => 'text' },
75 fa_steuerberater_name => { type => 'text' },
76 fa_steuerberater_street => { type => 'text' },
77 fa_steuerberater_tel => { type => 'text' },
78 fa_voranmeld => { type => 'text' },
79 feature_balance => { type => 'boolean', default => 'true', not_null => 1 },
80 feature_datev => { type => 'boolean', default => 'true', not_null => 1 },
81 feature_erfolgsrechnung => { type => 'boolean', default => 'false', not_null => 1 },
82 feature_eurechnung => { type => 'boolean', default => 'true', not_null => 1 },
83 feature_experimental_assortment => { type => 'boolean', default => 'true', not_null => 1 },
84 feature_experimental_order => { type => 'boolean', default => 'true', not_null => 1 },
85 feature_ustva => { type => 'boolean', default => 'true', not_null => 1 },
86 fxgain_accno_id => { type => 'integer' },
87 fxloss_accno_id => { type => 'integer' },
88 gl_changeable => { type => 'integer', default => 2, not_null => 1 },
89 global_bcc => { type => 'text', default => '' },
90 id => { type => 'serial', not_null => 1 },
91 income_accno_id => { type => 'integer' },
92 inventory_accno_id => { type => 'integer' },
93 inventory_system => { type => 'text' },
94 invnumber => { type => 'text' },
95 invoice_mail_settings => { type => 'enum', check_in => [ 'cp', 'invoice_mail', 'invoice_mail_cc_cp' ], db_type => 'invoice_mail_settings', default => 'cp' },
96 ir_changeable => { type => 'integer', default => 2, not_null => 1 },
97 ir_show_mark_as_paid => { type => 'boolean', default => 'true' },
98 is_changeable => { type => 'integer', default => 2, not_null => 1 },
99 is_show_mark_as_paid => { type => 'boolean', default => 'true' },
100 is_transfer_out => { type => 'boolean', default => 'false', not_null => 1 },
101 itime => { type => 'timestamp', default => 'now()' },
102 language_id => { type => 'integer' },
103 letternumber => { type => 'integer' },
104 loss_carried_forward_chart_id => { type => 'integer' },
105 max_future_booking_interval => { type => 'integer', default => 360 },
106 mtime => { type => 'timestamp' },
107 normalize_part_descriptions => { type => 'boolean', default => 'true' },
108 normalize_vc_names => { type => 'boolean', default => 'true' },
109 order_always_project => { type => 'boolean', default => 'false' },
110 order_warn_duplicate_parts => { type => 'boolean', default => 'true' },
111 order_warn_no_deliverydate => { type => 'boolean', default => 'true' },
112 parts_image_css => { type => 'text', default => 'border:0;float:left;max-width:250px;margin-top:20px:margin-right:10px;margin-left:10px;' },
113 parts_listing_image => { type => 'boolean', default => 'true' },
114 parts_show_image => { type => 'boolean', default => 'true' },
115 payments_changeable => { type => 'integer', default => '0', not_null => 1 },
116 pdonumber => { type => 'text' },
117 ponumber => { type => 'text' },
118 precision => { type => 'numeric', default => '0.01', not_null => 1, precision => 15, scale => 5 },
119 profit_carried_forward_chart_id => { type => 'integer' },
120 profit_determination => { type => 'text' },
121 project_status_id => { type => 'integer' },
122 project_type_id => { type => 'integer' },
123 purchase_delivery_order_show_delete => { type => 'boolean', default => 'true' },
124 purchase_order_show_delete => { type => 'boolean', default => 'true' },
125 quick_search_modules => { type => 'array' },
126 reqdate_interval => { type => 'integer', default => '0' },
127 require_transaction_description_ps => { type => 'boolean', default => 'false', not_null => 1 },
128 requirement_spec_section_order_part_id => { type => 'integer' },
129 revtrans => { type => 'boolean', default => 'false' },
130 rfqnumber => { type => 'text' },
131 rmanumber => { type => 'text' },
132 rndgain_accno_id => { type => 'integer' },
133 rndloss_accno_id => { type => 'integer' },
134 sales_delivery_order_show_delete => { type => 'boolean', default => 'true' },
135 sales_order_show_delete => { type => 'boolean', default => 'true' },
136 sales_purchase_order_ship_missing_column => { type => 'boolean', default => 'false' },
137 sdonumber => { type => 'text' },
138 sepa_creditor_id => { type => 'text' },
139 sepa_reference_add_vc_vc_id => { type => 'boolean', default => 'false' },
140 sepa_set_duedate_as_default_exec_date => { type => 'boolean', default => 'false' },
141 sepa_set_skonto_date_as_default_exec_date => { type => 'boolean', default => 'false' },
142 sepa_set_skonto_date_buffer_in_days => { type => 'integer', default => '0' },
143 servicenumber => { type => 'text' },
144 shipped_qty_fill_up => { type => 'boolean', default => 'true', not_null => 1 },
145 shipped_qty_item_identity_fields => { type => 'array', default => '{parts_id}', not_null => 1 },
146 shipped_qty_require_stock_out => { type => 'boolean', default => 'false', not_null => 1 },
147 show_bestbefore => { type => 'boolean', default => 'false' },
148 show_longdescription_select_item => { type => 'boolean', default => 'false' },
149 show_weight => { type => 'boolean', default => 'false', not_null => 1 },
150 signature => { type => 'text' },
151 sonumber => { type => 'text' },
152 sqnumber => { type => 'text' },
153 stocktaking_bin_id => { type => 'integer' },
154 stocktaking_cutoff_date => { type => 'date' },
155 stocktaking_qty_threshold => { type => 'numeric', default => '0', precision => 25, scale => 5 },
156 stocktaking_warehouse_id => { type => 'integer' },
157 taxnumber => { type => 'text' },
158 templates => { type => 'text' },
159 transfer_default => { type => 'boolean', default => 'true' },
160 transfer_default_ignore_onhand => { type => 'boolean', default => 'false' },
161 transfer_default_services => { type => 'boolean', default => 'true' },
162 transfer_default_use_master_default_bin => { type => 'boolean', default => 'false' },
163 transfer_default_warehouse_for_assembly => { type => 'boolean', default => 'false' },
164 transport_cost_reminder_article_number_id => { type => 'integer' },
165 vendornumber => { type => 'text' },
166 version => { type => 'varchar', length => 8 },
167 vertreter => { type => 'boolean', default => 'false' },
168 warehouse_id => { type => 'integer' },
169 warehouse_id_ignore_onhand => { type => 'integer' },
170 webdav => { type => 'boolean', default => 'false' },
171 webdav_documents => { type => 'boolean', default => 'false' },
172 weightunit => { type => 'varchar', length => 5 },
173 workflow_po_ap_chart_id => { type => 'integer' },
176 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
178 __PACKAGE__->meta->allow_inline_column_values(1);
180 __PACKAGE__->meta->foreign_keys(
182 class => 'SL::DB::Chart',
183 key_columns => { ap_chart_id => 'id' },
187 class => 'SL::DB::Chart',
188 key_columns => { ar_chart_id => 'id' },
192 class => 'SL::DB::Bin',
193 key_columns => { bin_id => 'id' },
197 class => 'SL::DB::Bin',
198 key_columns => { bin_id_ignore_onhand => 'id' },
201 carry_over_account_chart => {
202 class => 'SL::DB::Chart',
203 key_columns => { carry_over_account_chart_id => 'id' },
207 class => 'SL::DB::Currency',
208 key_columns => { currency_id => 'id' },
211 loss_carried_forward_chart => {
212 class => 'SL::DB::Chart',
213 key_columns => { loss_carried_forward_chart_id => 'id' },
216 profit_carried_forward_chart => {
217 class => 'SL::DB::Chart',
218 key_columns => { profit_carried_forward_chart_id => 'id' },
222 class => 'SL::DB::ProjectStatus',
223 key_columns => { project_status_id => 'id' },
227 class => 'SL::DB::ProjectType',
228 key_columns => { project_type_id => 'id' },
231 requirement_spec_section_order_part => {
232 class => 'SL::DB::Part',
233 key_columns => { requirement_spec_section_order_part_id => 'id' },
237 class => 'SL::DB::Bin',
238 key_columns => { stocktaking_bin_id => 'id' },
241 stocktaking_warehouse => {
242 class => 'SL::DB::Warehouse',
243 key_columns => { stocktaking_warehouse_id => 'id' },
247 class => 'SL::DB::Warehouse',
248 key_columns => { warehouse_id => 'id' },
252 class => 'SL::DB::Warehouse',
253 key_columns => { warehouse_id_ignore_onhand => 'id' },