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