Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.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   ordnumber               => { type => 'text', not_null => 1 },
39   payment_id              => { type => 'integer' },
40   proforma                => { type => 'boolean', default => 'false' },
41   quonumber               => { type => 'text' },
42   quotation               => { type => 'boolean', default => 'false' },
43   reqdate                 => { type => 'date' },
44   salesman_id             => { type => 'integer' },
45   shippingpoint           => { type => 'text' },
46   shipto_id               => { type => 'integer' },
47   shipvia                 => { type => 'text' },
48   tax_point               => { type => 'date' },
49   taxincluded             => { type => 'boolean' },
50   taxzone_id              => { type => 'integer', not_null => 1 },
51   transaction_description => { type => 'text' },
52   transdate               => { type => 'date', default => 'now' },
53   vendor_id               => { type => 'integer' },
54 );
55
56 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
57
58 __PACKAGE__->meta->allow_inline_column_values(1);
59
60 __PACKAGE__->meta->foreign_keys(
61   billing_address => {
62     class       => 'SL::DB::AdditionalBillingAddress',
63     key_columns => { billing_address_id => 'id' },
64   },
65
66   contact => {
67     class       => 'SL::DB::Contact',
68     key_columns => { cp_id => 'cp_id' },
69   },
70
71   currency => {
72     class       => 'SL::DB::Currency',
73     key_columns => { currency_id => 'id' },
74   },
75
76   customer => {
77     class       => 'SL::DB::Customer',
78     key_columns => { customer_id => 'id' },
79   },
80
81   delivery_customer => {
82     class       => 'SL::DB::Customer',
83     key_columns => { delivery_customer_id => 'id' },
84   },
85
86   delivery_term => {
87     class       => 'SL::DB::DeliveryTerm',
88     key_columns => { delivery_term_id => 'id' },
89   },
90
91   delivery_vendor => {
92     class       => 'SL::DB::Vendor',
93     key_columns => { delivery_vendor_id => 'id' },
94   },
95
96   department => {
97     class       => 'SL::DB::Department',
98     key_columns => { department_id => 'id' },
99   },
100
101   employee => {
102     class       => 'SL::DB::Employee',
103     key_columns => { employee_id => 'id' },
104   },
105
106   globalproject => {
107     class       => 'SL::DB::Project',
108     key_columns => { globalproject_id => 'id' },
109   },
110
111   language => {
112     class       => 'SL::DB::Language',
113     key_columns => { language_id => 'id' },
114   },
115
116   payment_terms => {
117     class       => 'SL::DB::PaymentTerm',
118     key_columns => { payment_id => 'id' },
119   },
120
121   salesman => {
122     class       => 'SL::DB::Employee',
123     key_columns => { salesman_id => 'id' },
124   },
125
126   shipto => {
127     class       => 'SL::DB::Shipto',
128     key_columns => { shipto_id => 'shipto_id' },
129   },
130
131   taxzone => {
132     class       => 'SL::DB::TaxZone',
133     key_columns => { taxzone_id => 'id' },
134   },
135
136   vendor => {
137     class       => 'SL::DB::Vendor',
138     key_columns => { vendor_id => 'id' },
139   },
140 );
141
142 1;
143 ;