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 parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('delivery_orders');
11 __PACKAGE__->meta->columns(
12 billing_address_id => { type => 'integer' },
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_term_id => { type => 'integer' },
20 department_id => { type => 'integer' },
21 donumber => { type => 'text', not_null => 1 },
22 employee_id => { type => 'integer' },
23 globalproject_id => { type => 'integer' },
24 id => { type => 'integer', not_null => 1, sequence => 'id' },
25 intnotes => { type => 'text' },
26 is_sales => { type => 'boolean' },
27 itime => { type => 'timestamp', default => 'now()' },
28 language_id => { type => 'integer' },
29 mtime => { type => 'timestamp' },
30 notes => { type => 'text' },
31 ordnumber => { type => 'text' },
32 oreqnumber => { type => 'text' },
33 payment_id => { type => 'integer' },
34 reqdate => { type => 'date' },
35 salesman_id => { type => 'integer' },
36 shippingpoint => { type => 'text' },
37 shipto_id => { type => 'integer' },
38 shipvia => { type => 'text' },
39 tax_point => { type => 'date' },
40 taxincluded => { type => 'boolean' },
41 taxzone_id => { type => 'integer', not_null => 1 },
42 transaction_description => { type => 'text' },
43 transdate => { type => 'date', default => 'now()' },
44 vendor_id => { type => 'integer' },
47 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
49 __PACKAGE__->meta->allow_inline_column_values(1);
51 __PACKAGE__->meta->foreign_keys(
53 class => 'SL::DB::AdditionalBillingAddress',
54 key_columns => { billing_address_id => 'id' },
58 class => 'SL::DB::Contact',
59 key_columns => { cp_id => 'cp_id' },
63 class => 'SL::DB::Currency',
64 key_columns => { currency_id => 'id' },
68 class => 'SL::DB::Customer',
69 key_columns => { customer_id => 'id' },
73 class => 'SL::DB::DeliveryTerm',
74 key_columns => { delivery_term_id => 'id' },
78 class => 'SL::DB::Department',
79 key_columns => { department_id => 'id' },
83 class => 'SL::DB::Employee',
84 key_columns => { employee_id => 'id' },
88 class => 'SL::DB::Project',
89 key_columns => { globalproject_id => 'id' },
93 class => 'SL::DB::Language',
94 key_columns => { language_id => 'id' },
98 class => 'SL::DB::PaymentTerm',
99 key_columns => { payment_id => 'id' },
103 class => 'SL::DB::Employee',
104 key_columns => { salesman_id => 'id' },
108 class => 'SL::DB::Shipto',
109 key_columns => { shipto_id => 'shipto_id' },
113 class => 'SL::DB::TaxZone',
114 key_columns => { taxzone_id => 'id' },
118 class => 'SL::DB::Vendor',
119 key_columns => { vendor_id => 'id' },