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::Reclamation;
7 use parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('reclamations');
11 __PACKAGE__->meta->columns(
12 amount => { type => 'numeric', precision => 15, scale => 5 },
13 billing_address_id => { type => 'integer' },
14 closed => { type => 'boolean', default => 'false', not_null => 1 },
15 contact_id => { type => 'integer' },
16 currency_id => { type => 'integer', not_null => 1 },
17 customer_id => { type => 'integer' },
18 cv_record_number => { type => 'text' },
19 delivered => { type => 'boolean', default => 'false', not_null => 1 },
20 delivery_term_id => { type => 'integer' },
21 department_id => { type => 'integer' },
22 employee_id => { type => 'integer', not_null => 1 },
23 exchangerate => { type => 'numeric', precision => 15, scale => 5 },
24 globalproject_id => { type => 'integer' },
25 id => { type => 'integer', not_null => 1, sequence => 'id' },
26 intnotes => { type => 'text' },
27 itime => { type => 'timestamp', default => 'now()' },
28 language_id => { type => 'integer' },
29 mtime => { type => 'timestamp' },
30 netamount => { type => 'numeric', precision => 15, scale => 5 },
31 notes => { type => 'text' },
32 payment_id => { type => 'integer' },
33 record_number => { type => 'text', not_null => 1 },
34 record_type => { type => 'enum', check_in => [ 'sales_reclamation', 'purchase_reclamation' ], db_type => 'reclamation_types', not_null => 1 },
35 reqdate => { type => 'date' },
36 salesman_id => { type => 'integer' },
37 shippingpoint => { type => 'text' },
38 shipto_id => { type => 'integer' },
39 shipvia => { type => 'text' },
40 tax_point => { type => 'date' },
41 taxincluded => { type => 'boolean', not_null => 1 },
42 taxzone_id => { type => 'integer', not_null => 1 },
43 transaction_description => { type => 'text' },
44 transdate => { type => 'date', default => 'now()' },
45 vendor_id => { type => 'integer' },
48 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
50 __PACKAGE__->meta->allow_inline_column_values(1);
52 __PACKAGE__->meta->foreign_keys(
54 class => 'SL::DB::AdditionalBillingAddress',
55 key_columns => { billing_address_id => 'id' },
59 class => 'SL::DB::Contact',
60 key_columns => { contact_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' },
74 class => 'SL::DB::DeliveryTerm',
75 key_columns => { delivery_term_id => 'id' },
79 class => 'SL::DB::Department',
80 key_columns => { department_id => 'id' },
84 class => 'SL::DB::Employee',
85 key_columns => { employee_id => 'id' },
89 class => 'SL::DB::Project',
90 key_columns => { globalproject_id => 'id' },
94 class => 'SL::DB::Language',
95 key_columns => { language_id => 'id' },
99 class => 'SL::DB::PaymentTerm',
100 key_columns => { payment_id => 'id' },
104 class => 'SL::DB::Employee',
105 key_columns => { salesman_id => 'id' },
109 class => 'SL::DB::Shipto',
110 key_columns => { shipto_id => 'shipto_id' },
114 class => 'SL::DB::TaxZone',
115 key_columns => { taxzone_id => 'id' },
119 class => 'SL::DB::Vendor',
120 key_columns => { vendor_id => 'id' },