]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/Order.pm
kivitendo 3.9.2-0.2
[mfinanz.git] / SL / DB / MetaSetup / Order.pm
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::Order;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('oe');
10
11 __PACKAGE__->meta->columns(
12   amount                     => { type => 'numeric', precision => 15, scale => 5 },
13   billing_address_id         => { type => 'integer' },
14   closed                     => { type => 'boolean', default => 'false' },
15   cp_id                      => { type => 'integer' },
16   currency_id                => { type => 'integer', not_null => 1 },
17   cusordnumber               => { type => 'text' },
18   customer_id                => { type => 'integer' },
19   delivered                  => { type => 'boolean', default => 'false' },
20   delivery_customer_id       => { type => 'integer' },
21   delivery_term_id           => { type => 'integer' },
22   delivery_vendor_id         => { type => 'integer' },
23   department_id              => { type => 'integer' },
24   employee_id                => { type => 'integer' },
25   exchangerate               => { type => 'numeric', precision => 15, scale => 5 },
26   expected_billing_date      => { type => 'date' },
27   globalproject_id           => { type => 'integer' },
28   id                         => { type => 'integer', not_null => 1, sequence => 'id' },
29   intnotes                   => { type => 'text' },
30   itime                      => { type => 'timestamp', default => 'now()' },
31   language_id                => { type => 'integer' },
32   marge_percent              => { type => 'numeric', precision => 15, scale => 5 },
33   marge_total                => { type => 'numeric', precision => 15, scale => 5 },
34   mtime                      => { type => 'timestamp' },
35   netamount                  => { type => 'numeric', precision => 15, scale => 5 },
36   notes                      => { type => 'text' },
37   order_probability          => { type => 'integer', default => '0', not_null => 1 },
38   order_status_id            => { type => 'integer' },
39   ordnumber                  => { type => 'text', not_null => 1 },
40   payment_id                 => { type => 'integer' },
41   proforma                   => { type => 'boolean', default => 'false' },
42   quonumber                  => { type => 'text' },
43   record_type                => { type => 'enum', check_in => [ 'request_quotation', 'sales_quotation', 'purchase_quotation_intake', 'purchase_order', 'sales_order_intake', 'sales_order', 'purchase_order_confirmation' ], db_type => 'order_types', not_null => 1 },
44   reqdate                    => { type => 'date' },
45   salesman_id                => { type => 'integer' },
46   shippingpoint              => { type => 'text' },
47   shipto_id                  => { type => 'integer' },
48   shipvia                    => { type => 'text' },
49   tax_point                  => { type => 'date' },
50   taxincluded                => { type => 'boolean' },
51   taxzone_id                 => { type => 'integer', not_null => 1 },
52   transaction_description    => { type => 'text' },
53   transdate                  => { type => 'date', default => 'now' },
54   vendor_confirmation_number => { type => 'text' },
55   vendor_id                  => { type => 'integer' },
56 );
57
58 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
59
60 __PACKAGE__->meta->allow_inline_column_values(1);
61
62 __PACKAGE__->meta->foreign_keys(
63   billing_address => {
64     class       => 'SL::DB::AdditionalBillingAddress',
65     key_columns => { billing_address_id => 'id' },
66   },
67
68   contact => {
69     class       => 'SL::DB::Contact',
70     key_columns => { cp_id => 'cp_id' },
71   },
72
73   currency => {
74     class       => 'SL::DB::Currency',
75     key_columns => { currency_id => 'id' },
76   },
77
78   customer => {
79     class       => 'SL::DB::Customer',
80     key_columns => { customer_id => 'id' },
81   },
82
83   delivery_customer => {
84     class       => 'SL::DB::Customer',
85     key_columns => { delivery_customer_id => 'id' },
86   },
87
88   delivery_term => {
89     class       => 'SL::DB::DeliveryTerm',
90     key_columns => { delivery_term_id => 'id' },
91   },
92
93   delivery_vendor => {
94     class       => 'SL::DB::Vendor',
95     key_columns => { delivery_vendor_id => 'id' },
96   },
97
98   department => {
99     class       => 'SL::DB::Department',
100     key_columns => { department_id => 'id' },
101   },
102
103   employee => {
104     class       => 'SL::DB::Employee',
105     key_columns => { employee_id => 'id' },
106   },
107
108   globalproject => {
109     class       => 'SL::DB::Project',
110     key_columns => { globalproject_id => 'id' },
111   },
112
113   language => {
114     class       => 'SL::DB::Language',
115     key_columns => { language_id => 'id' },
116   },
117
118   order_status => {
119     class       => 'SL::DB::OrderStatus',
120     key_columns => { order_status_id => 'id' },
121   },
122
123   payment_terms => {
124     class       => 'SL::DB::PaymentTerm',
125     key_columns => { payment_id => 'id' },
126   },
127
128   salesman => {
129     class       => 'SL::DB::Employee',
130     key_columns => { salesman_id => 'id' },
131   },
132
133   shipto => {
134     class       => 'SL::DB::Shipto',
135     key_columns => { shipto_id => 'shipto_id' },
136   },
137
138   taxzone => {
139     class       => 'SL::DB::TaxZone',
140     key_columns => { taxzone_id => 'id' },
141   },
142
143   vendor => {
144     class       => 'SL::DB::Vendor',
145     key_columns => { vendor_id => 'id' },
146   },
147 );
148
149 1;
150 ;