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 closed => { type => 'boolean', default => 'false' },
14 cp_id => { type => 'integer' },
15 currency_id => { type => 'integer', not_null => 1 },
16 cusordnumber => { type => 'text' },
17 customer_id => { type => 'integer' },
18 delivered => { type => 'boolean', default => 'false' },
19 delivery_customer_id => { type => 'integer' },
20 delivery_term_id => { type => 'integer' },
21 delivery_vendor_id => { type => 'integer' },
22 department_id => { type => 'integer' },
23 employee_id => { type => 'integer' },
24 expected_billing_date => { type => 'date' },
25 globalproject_id => { type => 'integer' },
26 id => { type => 'integer', not_null => 1, sequence => 'id' },
27 intnotes => { type => 'text' },
28 itime => { type => 'timestamp', default => 'now()' },
29 language_id => { type => 'integer' },
30 marge_percent => { type => 'numeric', precision => 15, scale => 5 },
31 marge_total => { type => 'numeric', precision => 15, scale => 5 },
32 mtime => { type => 'timestamp' },
33 netamount => { type => 'numeric', precision => 15, scale => 5 },
34 notes => { type => 'text' },
35 order_probability => { type => 'integer', default => '0', not_null => 1 },
36 ordnumber => { type => 'text', not_null => 1 },
37 payment_id => { type => 'integer' },
38 proforma => { type => 'boolean', default => 'false' },
39 quonumber => { type => 'text' },
40 quotation => { type => 'boolean', default => 'false' },
41 reqdate => { type => 'date' },
42 salesman_id => { type => 'integer' },
43 shippingpoint => { type => 'text' },
44 shipto_id => { type => 'integer' },
45 shipvia => { type => 'text' },
46 taxincluded => { type => 'boolean' },
47 taxzone_id => { type => 'integer', not_null => 1 },
48 transaction_description => { type => 'text' },
49 transdate => { type => 'date', default => 'now' },
50 vendor_id => { type => 'integer' },
53 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
55 __PACKAGE__->meta->allow_inline_column_values(1);
57 __PACKAGE__->meta->foreign_keys(
59 class => 'SL::DB::Contact',
60 key_columns => { cp_id => 'cp_id' },
64 class => 'SL::DB::Currency',
65 key_columns => { currency_id => 'id' },
69 class => 'SL::DB::Customer',
70 key_columns => { customer_id => 'id' },
73 delivery_customer => {
74 class => 'SL::DB::Customer',
75 key_columns => { delivery_customer_id => 'id' },
79 class => 'SL::DB::DeliveryTerm',
80 key_columns => { delivery_term_id => 'id' },
84 class => 'SL::DB::Vendor',
85 key_columns => { delivery_vendor_id => 'id' },
89 class => 'SL::DB::Department',
90 key_columns => { department_id => 'id' },
94 class => 'SL::DB::Employee',
95 key_columns => { employee_id => 'id' },
99 class => 'SL::DB::Project',
100 key_columns => { globalproject_id => 'id' },
104 class => 'SL::DB::Language',
105 key_columns => { language_id => 'id' },
109 class => 'SL::DB::PaymentTerm',
110 key_columns => { payment_id => 'id' },
114 class => 'SL::DB::Employee',
115 key_columns => { salesman_id => 'id' },
119 class => 'SL::DB::Shipto',
120 key_columns => { shipto_id => 'shipto_id' },
124 class => 'SL::DB::TaxZone',
125 key_columns => { taxzone_id => 'id' },
129 class => 'SL::DB::Vendor',
130 key_columns => { vendor_id => 'id' },