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::Invoice;
7 use base qw(SL::DB::Object);
9 __PACKAGE__->meta->table('ar');
11 __PACKAGE__->meta->columns(
12 amount => { type => 'numeric', precision => 5, scale => 15 },
13 cp_id => { type => 'integer' },
14 currency_id => { type => 'integer', not_null => 1 },
15 cusordnumber => { type => 'text' },
16 customer_id => { type => 'integer' },
17 datepaid => { type => 'date' },
18 delivery_customer_id => { type => 'integer' },
19 delivery_vendor_id => { type => 'integer' },
20 deliverydate => { type => 'date' },
21 department_id => { type => 'integer' },
22 direct_debit => { type => 'boolean', default => 'false' },
23 donumber => { type => 'text' },
24 duedate => { type => 'date' },
25 dunning_config_id => { type => 'integer' },
26 employee_id => { type => 'integer' },
27 gldate => { type => 'date', default => 'now' },
28 globalproject_id => { type => 'integer' },
29 id => { type => 'integer', not_null => 1, sequence => 'glid' },
30 intnotes => { type => 'text' },
31 invnumber => { type => 'text', not_null => 1 },
32 invnumber_for_credit_note => { type => 'text' },
33 invoice => { type => 'boolean', default => 'false' },
34 itime => { type => 'timestamp', default => 'now()' },
35 language_id => { type => 'integer' },
36 marge_percent => { type => 'numeric', precision => 5, scale => 15 },
37 marge_total => { type => 'numeric', precision => 5, scale => 15 },
38 mtime => { type => 'timestamp' },
39 netamount => { type => 'numeric', precision => 5, scale => 15 },
40 notes => { type => 'text' },
41 orddate => { type => 'date' },
42 ordnumber => { type => 'text' },
43 paid => { type => 'numeric', precision => 5, scale => 15 },
44 payment_id => { type => 'integer' },
45 quodate => { type => 'date' },
46 quonumber => { type => 'text' },
47 salesman_id => { type => 'integer' },
48 shippingpoint => { type => 'text' },
49 shipto_id => { type => 'integer' },
50 shipvia => { type => 'text' },
51 storno => { type => 'boolean', default => 'false' },
52 storno_id => { type => 'integer' },
53 taxincluded => { type => 'boolean' },
54 taxzone_id => { type => 'integer' },
55 terms => { type => 'integer', default => '0' },
56 transaction_description => { type => 'text' },
57 transdate => { type => 'date', default => 'now' },
58 type => { type => 'text' },
61 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
63 __PACKAGE__->meta->allow_inline_column_values(1);
65 __PACKAGE__->meta->foreign_keys(
67 class => 'SL::DB::Contact',
68 key_columns => { cp_id => 'cp_id' },
72 class => 'SL::DB::Currency',
73 key_columns => { currency_id => 'id' },
77 class => 'SL::DB::Customer',
78 key_columns => { customer_id => 'id' },
82 class => 'SL::DB::Department',
83 key_columns => { department_id => 'id' },
87 class => 'SL::DB::DunningConfig',
88 key_columns => { dunning_config_id => 'id' },
92 class => 'SL::DB::Employee',
93 key_columns => { employee_id => 'id' },
97 class => 'SL::DB::Project',
98 key_columns => { globalproject_id => 'id' },
102 class => 'SL::DB::Language',
103 key_columns => { language_id => 'id' },
107 class => 'SL::DB::PaymentTerm',
108 key_columns => { payment_id => 'id' },
112 class => 'SL::DB::Employee',
113 key_columns => { salesman_id => 'id' },
117 class => 'SL::DB::Shipto',
118 key_columns => { shipto_id => 'shipto_id' },
122 class => 'SL::DB::Invoice',
123 key_columns => { storno_id => 'id' },