]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/DeliveryOrder.pm
kivitendo 3.9.2-0.2
[mfinanz.git] / SL / DB / MetaSetup / DeliveryOrder.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::DeliveryOrder;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('delivery_orders');
10
11 __PACKAGE__->meta->columns(
12   billing_address_id         => { type => 'integer' },
13   closed                     => { type => 'boolean', default => 'false' },
14   cp_id                      => { type => 'integer' },
15   currency_id                => { type => 'integer', not_null => 1 },
16   cusordnumber               => { type => 'text' },
17   customer_id                => { type => 'integer' },
18   delivered                  => { type => 'boolean', default => 'false' },
19   delivery_term_id           => { type => 'integer' },
20   department_id              => { type => 'integer' },
21   donumber                   => { type => 'text', not_null => 1 },
22   employee_id                => { type => 'integer' },
23   globalproject_id           => { type => 'integer' },
24   id                         => { type => 'integer', not_null => 1, sequence => 'id' },
25   intnotes                   => { type => 'text' },
26   itime                      => { type => 'timestamp', default => 'now()' },
27   language_id                => { type => 'integer' },
28   mtime                      => { type => 'timestamp' },
29   notes                      => { type => 'text' },
30   ordnumber                  => { type => 'text' },
31   oreqnumber                 => { type => 'text' },
32   payment_id                 => { type => 'integer' },
33   record_type                => { type => 'enum', check_in => [ 'sales_delivery_order', 'purchase_delivery_order', 'supplier_delivery_order', 'rma_delivery_order' ], db_type => 'delivery_order_types', not_null => 1 },
34   reqdate                    => { type => 'date' },
35   salesman_id                => { type => 'integer' },
36   shippingpoint              => { type => 'text' },
37   shipto_id                  => { type => 'integer' },
38   shipvia                    => { type => 'text' },
39   tax_point                  => { type => 'date' },
40   taxincluded                => { type => 'boolean' },
41   taxzone_id                 => { type => 'integer', not_null => 1 },
42   transaction_description    => { type => 'text' },
43   transdate                  => { type => 'date', default => 'now()' },
44   vendor_confirmation_number => { type => 'text' },
45   vendor_id                  => { type => 'integer' },
46 );
47
48 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
49
50 __PACKAGE__->meta->allow_inline_column_values(1);
51
52 __PACKAGE__->meta->foreign_keys(
53   billing_address => {
54     class       => 'SL::DB::AdditionalBillingAddress',
55     key_columns => { billing_address_id => 'id' },
56   },
57
58   contact => {
59     class       => 'SL::DB::Contact',
60     key_columns => { cp_id => 'cp_id' },
61   },
62
63   currency => {
64     class       => 'SL::DB::Currency',
65     key_columns => { currency_id => 'id' },
66   },
67
68   customer => {
69     class       => 'SL::DB::Customer',
70     key_columns => { customer_id => 'id' },
71   },
72
73   delivery_term => {
74     class       => 'SL::DB::DeliveryTerm',
75     key_columns => { delivery_term_id => 'id' },
76   },
77
78   department => {
79     class       => 'SL::DB::Department',
80     key_columns => { department_id => 'id' },
81   },
82
83   employee => {
84     class       => 'SL::DB::Employee',
85     key_columns => { employee_id => 'id' },
86   },
87
88   globalproject => {
89     class       => 'SL::DB::Project',
90     key_columns => { globalproject_id => 'id' },
91   },
92
93   language => {
94     class       => 'SL::DB::Language',
95     key_columns => { language_id => 'id' },
96   },
97
98   payment => {
99     class       => 'SL::DB::PaymentTerm',
100     key_columns => { payment_id => 'id' },
101   },
102
103   salesman => {
104     class       => 'SL::DB::Employee',
105     key_columns => { salesman_id => 'id' },
106   },
107
108   shipto => {
109     class       => 'SL::DB::Shipto',
110     key_columns => { shipto_id => 'shipto_id' },
111   },
112
113   taxzone => {
114     class       => 'SL::DB::TaxZone',
115     key_columns => { taxzone_id => 'id' },
116   },
117
118   vendor => {
119     class       => 'SL::DB::Vendor',
120     key_columns => { vendor_id => 'id' },
121   },
122 );
123
124 1;
125 ;