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 base 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_show_mark_as_paid => { type => 'boolean', default => 'true' },
20 ar_changeable => { type => 'integer', default => 2, not_null => 1 },
21 ar_paid_accno_id => { type => 'integer' },
22 ar_show_mark_as_paid => { type => 'boolean', default => 'true' },
23 articlenumber => { type => 'text' },
24 assemblynumber => { type => 'text' },
25 balance_startdate_method => { type => 'text' },
26 bin_id => { type => 'integer' },
27 bin_id_ignore_onhand => { type => 'integer' },
28 businessnumber => { type => 'text' },
29 closedto => { type => 'date' },
30 cnnumber => { type => 'text' },
31 co_ustid => { type => 'text' },
32 coa => { type => 'text' },
33 company => { type => 'text' },
34 currency_id => { type => 'integer', not_null => 1 },
35 customer_hourly_rate => { type => 'numeric', precision => 8, scale => 2 },
36 customernumber => { type => 'text' },
37 datev_check_on_ap_transaction => { type => 'boolean', default => 'true' },
38 datev_check_on_ar_transaction => { type => 'boolean', default => 'true' },
39 datev_check_on_gl_transaction => { type => 'boolean', default => 'true' },
40 datev_check_on_purchase_invoice => { type => 'boolean', default => 'true' },
41 datev_check_on_sales_invoice => { type => 'boolean', default => 'true' },
42 dunning_ar => { type => 'integer' },
43 dunning_ar_amount_fee => { type => 'integer' },
44 dunning_ar_amount_interest => { type => 'integer' },
45 duns => { type => 'text' },
46 expense_accno_id => { type => 'integer' },
47 fxgain_accno_id => { type => 'integer' },
48 fxloss_accno_id => { type => 'integer' },
49 gl_changeable => { type => 'integer', default => 2, not_null => 1 },
50 id => { type => 'serial', not_null => 1 },
51 income_accno_id => { type => 'integer' },
52 inventory_accno_id => { type => 'integer' },
53 inventory_system => { type => 'text' },
54 invnumber => { type => 'text' },
55 ir_changeable => { type => 'integer', default => 2, not_null => 1 },
56 ir_show_mark_as_paid => { type => 'boolean', default => 'true' },
57 is_changeable => { type => 'integer', default => 2, not_null => 1 },
58 is_show_mark_as_paid => { type => 'boolean', default => 'true' },
59 itime => { type => 'timestamp', default => 'now()' },
60 language_id => { type => 'integer' },
61 max_future_booking_interval => { type => 'integer', default => 360 },
62 mtime => { type => 'timestamp' },
63 normalize_part_descriptions => { type => 'boolean', default => 'true' },
64 normalize_vc_names => { type => 'boolean', default => 'true' },
65 parts_image_css => { type => 'text', default => 'border:0;float:left;max-width:250px;margin-top:20px:margin-right:10px;margin-left:10px;' },
66 parts_listing_image => { type => 'boolean', default => 'true' },
67 parts_show_image => { type => 'boolean', default => 'true' },
68 payments_changeable => { type => 'integer', default => '0', not_null => 1 },
69 pdonumber => { type => 'text' },
70 ponumber => { type => 'text' },
71 profit_determination => { type => 'text' },
72 purchase_delivery_order_show_delete => { type => 'boolean', default => 'true' },
73 purchase_order_show_delete => { type => 'boolean', default => 'true' },
74 require_transaction_description_ps => { type => 'boolean', default => 'false', not_null => 1 },
75 requirement_spec_section_order_part_id => { type => 'integer' },
76 revtrans => { type => 'boolean', default => 'false' },
77 rfqnumber => { type => 'text' },
78 rmanumber => { type => 'text' },
79 sales_delivery_order_show_delete => { type => 'boolean', default => 'true' },
80 sales_order_show_delete => { type => 'boolean', default => 'true' },
81 sdonumber => { type => 'text' },
82 sepa_creditor_id => { type => 'text' },
83 servicenumber => { type => 'text' },
84 show_bestbefore => { type => 'boolean', default => 'false' },
85 show_weight => { type => 'boolean', default => 'false', not_null => 1 },
86 signature => { type => 'text' },
87 sonumber => { type => 'text' },
88 sqnumber => { type => 'text' },
89 taxnumber => { type => 'text' },
90 templates => { type => 'text' },
91 transfer_default => { type => 'boolean', default => 'true' },
92 transfer_default_ignore_onhand => { type => 'boolean', default => 'false' },
93 transfer_default_use_master_default_bin => { type => 'boolean', default => 'false' },
94 vendornumber => { type => 'text' },
95 version => { type => 'varchar', length => 8 },
96 vertreter => { type => 'boolean', default => 'false' },
97 warehouse_id => { type => 'integer' },
98 warehouse_id_ignore_onhand => { type => 'integer' },
99 webdav => { type => 'boolean', default => 'false' },
100 webdav_documents => { type => 'boolean', default => 'false' },
101 weightunit => { type => 'varchar', length => 5 },
104 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
106 __PACKAGE__->meta->allow_inline_column_values(1);
108 __PACKAGE__->meta->foreign_keys(
110 class => 'SL::DB::Bin',
111 key_columns => { bin_id => 'id' },
115 class => 'SL::DB::Bin',
116 key_columns => { bin_id_ignore_onhand => 'id' },
120 class => 'SL::DB::Currency',
121 key_columns => { currency_id => 'id' },
124 requirement_spec_section_order_part => {
125 class => 'SL::DB::Part',
126 key_columns => { requirement_spec_section_order_part_id => 'id' },
130 class => 'SL::DB::Warehouse',
131 key_columns => { warehouse_id => 'id' },
135 class => 'SL::DB::Warehouse',
136 key_columns => { warehouse_id_ignore_onhand => 'id' },