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::DeliveryOrder;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->setup(
10 table => 'delivery_orders',
13 id => { type => 'integer', not_null => 1, sequence => 'id' },
14 donumber => { type => 'text', not_null => 1 },
15 ordnumber => { type => 'text' },
16 transdate => { type => 'date', default => 'now()' },
17 vendor_id => { type => 'integer' },
18 customer_id => { type => 'integer' },
19 reqdate => { type => 'date' },
20 shippingpoint => { type => 'text' },
21 notes => { type => 'text' },
22 intnotes => { type => 'text' },
23 employee_id => { type => 'integer' },
24 closed => { type => 'boolean', default => 'false' },
25 delivered => { type => 'boolean', default => 'false' },
26 cusordnumber => { type => 'text' },
27 oreqnumber => { type => 'text' },
28 department_id => { type => 'integer' },
29 shipvia => { type => 'text' },
30 cp_id => { type => 'integer' },
31 language_id => { type => 'integer' },
32 shipto_id => { type => 'integer' },
33 globalproject_id => { type => 'integer' },
34 salesman_id => { type => 'integer' },
35 transaction_description => { type => 'text' },
36 is_sales => { type => 'boolean' },
37 itime => { type => 'timestamp', default => 'now()' },
38 mtime => { type => 'timestamp' },
39 notes_bottom => { type => 'text' },
40 taxzone_id => { type => 'integer' },
41 taxincluded => { type => 'boolean' },
42 terms => { type => 'integer' },
43 curr => { type => 'character', length => 3 },
46 primary_key_columns => [ 'id' ],
48 allow_inline_column_values => 1,
52 class => 'SL::DB::Contact',
53 key_columns => { cp_id => 'cp_id' },
57 class => 'SL::DB::Customer',
58 key_columns => { customer_id => 'id' },
62 class => 'SL::DB::Employee',
63 key_columns => { employee_id => 'id' },
67 class => 'SL::DB::Project',
68 key_columns => { globalproject_id => 'id' },
72 class => 'SL::DB::Language',
73 key_columns => { language_id => 'id' },
77 class => 'SL::DB::Employee',
78 key_columns => { salesman_id => 'id' },
82 class => 'SL::DB::Vendor',
83 key_columns => { vendor_id => 'id' },