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->setup(
13 id => { type => 'integer', not_null => 1, sequence => 'id' },
14 ordnumber => { type => 'text', not_null => 1 },
15 transdate => { type => 'date', default => 'now' },
16 vendor_id => { type => 'integer' },
17 customer_id => { type => 'integer' },
18 amount => { type => 'numeric', precision => 5, scale => 15 },
19 netamount => { type => 'numeric', precision => 5, scale => 15 },
20 reqdate => { type => 'date' },
21 taxincluded => { type => 'boolean' },
22 shippingpoint => { type => 'text' },
23 notes => { type => 'text' },
24 curr => { type => 'character', length => 3 },
25 employee_id => { type => 'integer' },
26 closed => { type => 'boolean', default => 'false' },
27 quotation => { type => 'boolean', default => 'false' },
28 quonumber => { type => 'text' },
29 cusordnumber => { type => 'text' },
30 intnotes => { type => 'text' },
31 department_id => { type => 'integer', default => '0' },
32 itime => { type => 'timestamp', default => 'now()' },
33 mtime => { type => 'timestamp' },
34 shipvia => { type => 'text' },
35 cp_id => { type => 'integer' },
36 language_id => { type => 'integer' },
37 payment_id => { type => 'integer' },
38 delivery_customer_id => { type => 'integer' },
39 delivery_vendor_id => { type => 'integer' },
40 taxzone_id => { type => 'integer' },
41 proforma => { type => 'boolean', default => 'false' },
42 shipto_id => { type => 'integer' },
43 delivered => { type => 'boolean', default => 'false' },
44 globalproject_id => { type => 'integer' },
45 salesman_id => { type => 'integer' },
46 transaction_description => { type => 'text' },
47 marge_total => { type => 'numeric', precision => 5, scale => 15 },
48 marge_percent => { type => 'numeric', precision => 5, scale => 15 },
49 notes_bottom => { type => 'text' },
50 project_manager_id => { type => 'integer' },
53 primary_key_columns => [ 'id' ],
55 allow_inline_column_values => 1,
59 class => 'SL::DB::Employee',
60 key_columns => { employee_id => 'id' },
64 class => 'SL::DB::Project',
65 key_columns => { globalproject_id => 'id' },
69 class => 'SL::DB::Employee',
70 key_columns => { project_manager_id => 'id' },
74 class => 'SL::DB::Employee',
75 key_columns => { salesman_id => 'id' },