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 bin_id => { type => 'integer' },
30 bin_id_ignore_onhand => { type => 'integer' },
31 businessnumber => { type => 'text' },
32 closedto => { type => 'date' },
33 cnnumber => { type => 'text' },
34 co_ustid => { type => 'text' },
35 coa => { type => 'text' },
36 company => { type => 'text' },
37 currency_id => { type => 'integer', not_null => 1 },
38 customer_hourly_rate => { type => 'numeric', precision => 8, scale => 2 },
39 customer_projects_only_in_sales => { type => 'boolean', default => 'false', not_null => 1 },
40 customernumber => { type => 'text' },
41 datev_check_on_ap_transaction => { type => 'boolean', default => 'true' },
42 datev_check_on_ar_transaction => { type => 'boolean', default => 'true' },
43 datev_check_on_gl_transaction => { type => 'boolean', default => 'true' },
44 datev_check_on_purchase_invoice => { type => 'boolean', default => 'true' },
45 datev_check_on_sales_invoice => { type => 'boolean', default => 'true' },
46 disabled_price_sources => { type => 'array' },
47 dunning_ar => { type => 'integer' },
48 dunning_ar_amount_fee => { type => 'integer' },
49 dunning_ar_amount_interest => { type => 'integer' },
50 duns => { type => 'text' },
51 email_journal => { type => 'integer', default => 2 },
52 expense_accno_id => { type => 'integer' },
53 fa_bufa_nr => { type => 'text' },
54 fa_dauerfrist => { type => 'text' },
55 fa_steuerberater_city => { type => 'text' },
56 fa_steuerberater_name => { type => 'text' },
57 fa_steuerberater_street => { type => 'text' },
58 fa_steuerberater_tel => { type => 'text' },
59 fa_voranmeld => { type => 'text' },
60 feature_balance => { type => 'boolean', default => 'true', not_null => 1 },
61 feature_datev => { type => 'boolean', default => 'true', not_null => 1 },
62 feature_erfolgsrechnung => { type => 'boolean', default => 'false', not_null => 1 },
63 feature_eurechnung => { type => 'boolean', default => 'true', not_null => 1 },
64 feature_ustva => { type => 'boolean', default => 'true', not_null => 1 },
65 fxgain_accno_id => { type => 'integer' },
66 fxloss_accno_id => { type => 'integer' },
67 gl_changeable => { type => 'integer', default => 2, not_null => 1 },
68 global_bcc => { type => 'text', default => '' },
69 id => { type => 'serial', not_null => 1 },
70 income_accno_id => { type => 'integer' },
71 inventory_accno_id => { type => 'integer' },
72 inventory_system => { type => 'text' },
73 invnumber => { type => 'text' },
74 ir_changeable => { type => 'integer', default => 2, not_null => 1 },
75 ir_show_mark_as_paid => { type => 'boolean', default => 'true' },
76 is_changeable => { type => 'integer', default => 2, not_null => 1 },
77 is_show_mark_as_paid => { type => 'boolean', default => 'true' },
78 is_transfer_out => { type => 'boolean', default => 'false', not_null => 1 },
79 itime => { type => 'timestamp', default => 'now()' },
80 language_id => { type => 'integer' },
81 letternumber => { type => 'integer' },
82 max_future_booking_interval => { type => 'integer', default => 360 },
83 mtime => { type => 'timestamp' },
84 normalize_part_descriptions => { type => 'boolean', default => 'true' },
85 normalize_vc_names => { type => 'boolean', default => 'true' },
86 order_always_project => { type => 'boolean', default => 'false' },
87 order_warn_duplicate_parts => { type => 'boolean', default => 'true' },
88 parts_image_css => { type => 'text', default => 'border:0;float:left;max-width:250px;margin-top:20px:margin-right:10px;margin-left:10px;' },
89 parts_listing_image => { type => 'boolean', default => 'true' },
90 parts_show_image => { type => 'boolean', default => 'true' },
91 payments_changeable => { type => 'integer', default => '0', not_null => 1 },
92 pdonumber => { type => 'text' },
93 ponumber => { type => 'text' },
94 precision => { type => 'numeric', default => '0.01', not_null => 1, precision => 15, scale => 5 },
95 profit_determination => { type => 'text' },
96 project_status_id => { type => 'integer' },
97 project_type_id => { type => 'integer' },
98 purchase_delivery_order_show_delete => { type => 'boolean', default => 'true' },
99 purchase_order_show_delete => { type => 'boolean', default => 'true' },
100 quick_search_modules => { type => 'array' },
101 reqdate_interval => { type => 'integer', default => '0' },
102 require_transaction_description_ps => { type => 'boolean', default => 'false', not_null => 1 },
103 requirement_spec_section_order_part_id => { type => 'integer' },
104 revtrans => { type => 'boolean', default => 'false' },
105 rfqnumber => { type => 'text' },
106 rmanumber => { type => 'text' },
107 rndgain_accno_id => { type => 'integer' },
108 rndloss_accno_id => { type => 'integer' },
109 sales_delivery_order_show_delete => { type => 'boolean', default => 'true' },
110 sales_order_show_delete => { type => 'boolean', default => 'true' },
111 sales_purchase_order_ship_missing_column => { type => 'boolean', default => 'false' },
112 sdonumber => { type => 'text' },
113 sepa_creditor_id => { type => 'text' },
114 sepa_reference_add_vc_vc_id => { type => 'boolean', default => 'false' },
115 servicenumber => { type => 'text' },
116 show_bestbefore => { type => 'boolean', default => 'false' },
117 show_longdescription_select_item => { type => 'boolean', default => 'false' },
118 show_weight => { type => 'boolean', default => 'false', not_null => 1 },
119 signature => { type => 'text' },
120 sonumber => { type => 'text' },
121 sqnumber => { type => 'text' },
122 taxnumber => { type => 'text' },
123 templates => { type => 'text' },
124 transfer_default => { type => 'boolean', default => 'true' },
125 transfer_default_ignore_onhand => { type => 'boolean', default => 'false' },
126 transfer_default_services => { type => 'boolean', default => 'true' },
127 transfer_default_use_master_default_bin => { type => 'boolean', default => 'false' },
128 transfer_default_warehouse_for_assembly => { type => 'boolean', default => 'false' },
129 transport_cost_reminder_article_number_id => { type => 'integer' },
130 vendornumber => { type => 'text' },
131 version => { type => 'varchar', length => 8 },
132 vertreter => { type => 'boolean', default => 'false' },
133 warehouse_id => { type => 'integer' },
134 warehouse_id_ignore_onhand => { type => 'integer' },
135 webdav => { type => 'boolean', default => 'false' },
136 webdav_documents => { type => 'boolean', default => 'false' },
137 weightunit => { type => 'varchar', length => 5 },
140 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
142 __PACKAGE__->meta->allow_inline_column_values(1);
144 __PACKAGE__->meta->foreign_keys(
146 class => 'SL::DB::Chart',
147 key_columns => { ap_chart_id => 'id' },
151 class => 'SL::DB::Chart',
152 key_columns => { ar_chart_id => 'id' },
156 class => 'SL::DB::Bin',
157 key_columns => { bin_id => 'id' },
161 class => 'SL::DB::Bin',
162 key_columns => { bin_id_ignore_onhand => 'id' },
166 class => 'SL::DB::Currency',
167 key_columns => { currency_id => 'id' },
171 class => 'SL::DB::ProjectStatus',
172 key_columns => { project_status_id => 'id' },
176 class => 'SL::DB::ProjectType',
177 key_columns => { project_type_id => 'id' },
180 requirement_spec_section_order_part => {
181 class => 'SL::DB::Part',
182 key_columns => { requirement_spec_section_order_part_id => 'id' },
186 class => 'SL::DB::Warehouse',
187 key_columns => { warehouse_id => 'id' },
191 class => 'SL::DB::Warehouse',
192 key_columns => { warehouse_id_ignore_onhand => 'id' },