1 # This file has been auto-generated. Do not modify it; it will be overwritten
2 # by rose_auto_create_model.pl automatically.
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('oe');
11 __PACKAGE__->meta->columns(
12 amount => { type => 'numeric', precision => 15, scale => 5 },
13 billing_address_id => { type => 'integer' },
14 closed => { type => 'boolean', default => 'false' },
15 cp_id => { type => 'integer' },
16 currency_id => { type => 'integer', not_null => 1 },
17 cusordnumber => { type => 'text' },
18 customer_id => { type => 'integer' },
19 delivered => { type => 'boolean', default => 'false' },
20 delivery_customer_id => { type => 'integer' },
21 delivery_term_id => { type => 'integer' },
22 delivery_vendor_id => { type => 'integer' },
23 department_id => { type => 'integer' },
24 employee_id => { type => 'integer' },
25 exchangerate => { type => 'numeric', precision => 15, scale => 5 },
26 expected_billing_date => { type => 'date' },
27 globalproject_id => { type => 'integer' },
28 id => { type => 'integer', not_null => 1, sequence => 'id' },
29 intnotes => { type => 'text' },
30 itime => { type => 'timestamp', default => 'now()' },
31 language_id => { type => 'integer' },
32 marge_percent => { type => 'numeric', precision => 15, scale => 5 },
33 marge_total => { type => 'numeric', precision => 15, scale => 5 },
34 mtime => { type => 'timestamp' },
35 netamount => { type => 'numeric', precision => 15, scale => 5 },
36 notes => { type => 'text' },
37 order_probability => { type => 'integer', default => '0', not_null => 1 },
38 order_status_id => { type => 'integer' },
39 ordnumber => { type => 'text', not_null => 1 },
40 payment_id => { type => 'integer' },
41 proforma => { type => 'boolean', default => 'false' },
42 quonumber => { type => 'text' },
43 record_type => { type => 'enum', check_in => [ 'request_quotation', 'sales_quotation', 'purchase_quotation_intake', 'purchase_order', 'sales_order_intake', 'sales_order', 'purchase_order_confirmation' ], db_type => 'order_types', not_null => 1 },
44 reqdate => { type => 'date' },
45 salesman_id => { type => 'integer' },
46 shippingpoint => { type => 'text' },
47 shipto_id => { type => 'integer' },
48 shipvia => { type => 'text' },
49 tax_point => { type => 'date' },
50 taxincluded => { type => 'boolean' },
51 taxzone_id => { type => 'integer', not_null => 1 },
52 transaction_description => { type => 'text' },
53 transdate => { type => 'date', default => 'now' },
54 vendor_confirmation_number => { type => 'text' },
55 vendor_id => { type => 'integer' },
58 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
60 __PACKAGE__->meta->allow_inline_column_values(1);
62 __PACKAGE__->meta->foreign_keys(
64 class => 'SL::DB::AdditionalBillingAddress',
65 key_columns => { billing_address_id => 'id' },
69 class => 'SL::DB::Contact',
70 key_columns => { cp_id => 'cp_id' },
74 class => 'SL::DB::Currency',
75 key_columns => { currency_id => 'id' },
79 class => 'SL::DB::Customer',
80 key_columns => { customer_id => 'id' },
83 delivery_customer => {
84 class => 'SL::DB::Customer',
85 key_columns => { delivery_customer_id => 'id' },
89 class => 'SL::DB::DeliveryTerm',
90 key_columns => { delivery_term_id => 'id' },
94 class => 'SL::DB::Vendor',
95 key_columns => { delivery_vendor_id => 'id' },
99 class => 'SL::DB::Department',
100 key_columns => { department_id => 'id' },
104 class => 'SL::DB::Employee',
105 key_columns => { employee_id => 'id' },
109 class => 'SL::DB::Project',
110 key_columns => { globalproject_id => 'id' },
114 class => 'SL::DB::Language',
115 key_columns => { language_id => 'id' },
119 class => 'SL::DB::OrderStatus',
120 key_columns => { order_status_id => 'id' },
124 class => 'SL::DB::PaymentTerm',
125 key_columns => { payment_id => 'id' },
129 class => 'SL::DB::Employee',
130 key_columns => { salesman_id => 'id' },
134 class => 'SL::DB::Shipto',
135 key_columns => { shipto_id => 'shipto_id' },
139 class => 'SL::DB::TaxZone',
140 key_columns => { taxzone_id => 'id' },
144 class => 'SL::DB::Vendor',
145 key_columns => { vendor_id => 'id' },