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 parent qw(SL::DB::Object);
9 __PACKAGE__->meta->table('ar');
11 __PACKAGE__->meta->columns(
12 amount => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
13 billing_address_id => { type => 'integer' },
14 cp_id => { type => 'integer' },
15 currency_id => { type => 'integer', not_null => 1 },
16 cusordnumber => { type => 'text' },
17 customer_id => { type => 'integer' },
18 datepaid => { type => 'date' },
19 delivery_customer_id => { type => 'integer' },
20 delivery_term_id => { type => 'integer' },
21 delivery_vendor_id => { type => 'integer' },
22 deliverydate => { type => 'date' },
23 department_id => { type => 'integer' },
24 direct_debit => { type => 'boolean', default => 'false' },
25 donumber => { type => 'text' },
26 duedate => { type => 'date' },
27 dunning_config_id => { type => 'integer' },
28 employee_id => { type => 'integer' },
29 exchangerate => { type => 'numeric', precision => 15, scale => 5 },
30 gldate => { type => 'date', default => 'now' },
31 globalproject_id => { type => 'integer' },
32 id => { type => 'integer', not_null => 1, sequence => 'glid' },
33 intnotes => { type => 'text' },
34 invnumber => { type => 'text', not_null => 1 },
35 invnumber_for_credit_note => { type => 'text' },
36 invoice => { type => 'boolean', default => 'false' },
37 itime => { type => 'timestamp', default => 'now()' },
38 language_id => { type => 'integer' },
39 marge_percent => { type => 'numeric', precision => 15, scale => 5 },
40 marge_total => { type => 'numeric', precision => 15, scale => 5 },
41 mtime => { type => 'timestamp' },
42 netamount => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
43 notes => { type => 'text' },
44 orddate => { type => 'date' },
45 ordnumber => { type => 'text' },
46 paid => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
47 payment_id => { type => 'integer' },
48 qr_reference => { type => 'text' },
49 qr_unstructured_message => { type => 'text' },
50 qrbill_without_amount => { type => 'boolean', default => 'false' },
51 quodate => { type => 'date' },
52 quonumber => { type => 'text' },
53 salesman_id => { type => 'integer' },
54 shippingpoint => { type => 'text' },
55 shipto_id => { type => 'integer' },
56 shipvia => { type => 'text' },
57 storno => { type => 'boolean', default => 'false' },
58 storno_id => { type => 'integer' },
59 tax_point => { type => 'date' },
60 taxincluded => { type => 'boolean' },
61 taxzone_id => { type => 'integer', not_null => 1 },
62 transaction_description => { type => 'text' },
63 transdate => { type => 'date', default => 'now' },
64 type => { type => 'text' },
67 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
69 __PACKAGE__->meta->allow_inline_column_values(1);
71 __PACKAGE__->meta->foreign_keys(
73 class => 'SL::DB::AdditionalBillingAddress',
74 key_columns => { billing_address_id => 'id' },
78 class => 'SL::DB::Contact',
79 key_columns => { cp_id => 'cp_id' },
83 class => 'SL::DB::Currency',
84 key_columns => { currency_id => 'id' },
88 class => 'SL::DB::Customer',
89 key_columns => { customer_id => 'id' },
93 class => 'SL::DB::DeliveryTerm',
94 key_columns => { delivery_term_id => 'id' },
98 class => 'SL::DB::Department',
99 key_columns => { department_id => 'id' },
103 class => 'SL::DB::DunningConfig',
104 key_columns => { dunning_config_id => 'id' },
108 class => 'SL::DB::Employee',
109 key_columns => { employee_id => 'id' },
113 class => 'SL::DB::Project',
114 key_columns => { globalproject_id => 'id' },
118 class => 'SL::DB::Language',
119 key_columns => { language_id => 'id' },
123 class => 'SL::DB::PaymentTerm',
124 key_columns => { payment_id => 'id' },
128 class => 'SL::DB::Employee',
129 key_columns => { salesman_id => 'id' },
133 class => 'SL::DB::Shipto',
134 key_columns => { shipto_id => 'shipto_id' },
138 class => 'SL::DB::Invoice',
139 key_columns => { storno_id => 'id' },
143 class => 'SL::DB::TaxZone',
144 key_columns => { taxzone_id => 'id' },