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 base qw(SL::DB::Object);
9 __PACKAGE__->meta->table('oe');
11 __PACKAGE__->meta->columns(
12 id => { type => 'integer', not_null => 1, sequence => 'id' },
13 ordnumber => { type => 'text', not_null => 1 },
14 transdate => { type => 'date', default => 'now' },
15 vendor_id => { type => 'integer' },
16 customer_id => { type => 'integer' },
17 amount => { type => 'numeric', precision => 5, scale => 15 },
18 netamount => { type => 'numeric', precision => 5, scale => 15 },
19 reqdate => { type => 'date' },
20 taxincluded => { type => 'boolean' },
21 shippingpoint => { type => 'text' },
22 notes => { type => 'text' },
23 employee_id => { type => 'integer' },
24 closed => { type => 'boolean', default => 'false' },
25 quotation => { type => 'boolean', default => 'false' },
26 quonumber => { type => 'text' },
27 cusordnumber => { type => 'text' },
28 intnotes => { type => 'text' },
29 department_id => { type => 'integer' },
30 itime => { type => 'timestamp', default => 'now()' },
31 mtime => { type => 'timestamp' },
32 shipvia => { type => 'text' },
33 cp_id => { type => 'integer' },
34 language_id => { type => 'integer' },
35 payment_id => { type => 'integer' },
36 delivery_customer_id => { type => 'integer' },
37 delivery_vendor_id => { type => 'integer' },
38 taxzone_id => { type => 'integer' },
39 proforma => { type => 'boolean', default => 'false' },
40 shipto_id => { type => 'integer' },
41 delivered => { type => 'boolean', default => 'false' },
42 globalproject_id => { type => 'integer' },
43 salesman_id => { type => 'integer' },
44 transaction_description => { type => 'text' },
45 marge_total => { type => 'numeric', precision => 5, scale => 15 },
46 marge_percent => { type => 'numeric', precision => 5, scale => 15 },
47 currency_id => { type => 'integer', not_null => 1 },
50 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
52 __PACKAGE__->meta->allow_inline_column_values(1);
54 __PACKAGE__->meta->foreign_keys(
56 class => 'SL::DB::Contact',
57 key_columns => { cp_id => 'cp_id' },
61 class => 'SL::DB::Currency',
62 key_columns => { currency_id => 'id' },
66 class => 'SL::DB::Customer',
67 key_columns => { customer_id => 'id' },
70 delivery_customer => {
71 class => 'SL::DB::Customer',
72 key_columns => { delivery_customer_id => 'id' },
76 class => 'SL::DB::Vendor',
77 key_columns => { delivery_vendor_id => 'id' },
81 class => 'SL::DB::Department',
82 key_columns => { department_id => 'id' },
86 class => 'SL::DB::Employee',
87 key_columns => { employee_id => 'id' },
91 class => 'SL::DB::Project',
92 key_columns => { globalproject_id => 'id' },
96 class => 'SL::DB::Language',
97 key_columns => { language_id => 'id' },
101 class => 'SL::DB::Employee',
102 key_columns => { salesman_id => 'id' },
106 class => 'SL::DB::Vendor',
107 key_columns => { vendor_id => 'id' },
111 # __PACKAGE__->meta->initialize;