]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/DeliveryOrderItem.pm
kivitendo 3.9.2-0.2
[mfinanz.git] / SL / DB / MetaSetup / DeliveryOrderItem.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::DeliveryOrderItem;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('delivery_order_items');
10
11 __PACKAGE__->meta->columns(
12   active_discount_source => { type => 'text', default => '', not_null => 1 },
13   active_price_source    => { type => 'text', default => '', not_null => 1 },
14   base_qty               => { type => 'float', precision => 4, scale => 4 },
15   cusordnumber           => { type => 'text' },
16   delivery_order_id      => { type => 'integer', not_null => 1 },
17   description            => { type => 'text' },
18   discount               => { type => 'float', precision => 4, scale => 4 },
19   id                     => { type => 'integer', not_null => 1, sequence => 'delivery_order_items_id' },
20   itime                  => { type => 'timestamp', default => 'now()' },
21   lastcost               => { type => 'numeric', precision => 15, scale => 5 },
22   longdescription        => { type => 'text' },
23   marge_price_factor     => { type => 'numeric', default => 1, precision => 15, scale => 5 },
24   mtime                  => { type => 'timestamp' },
25   orderer_id             => { type => 'integer' },
26   ordnumber              => { type => 'text' },
27   parts_id               => { type => 'integer', not_null => 1 },
28   position               => { type => 'integer', not_null => 1 },
29   price_factor           => { type => 'numeric', default => 1, precision => 15, scale => 5 },
30   price_factor_id        => { type => 'integer' },
31   pricegroup_id          => { type => 'integer' },
32   project_id             => { type => 'integer' },
33   qty                    => { type => 'numeric', precision => 25, scale => 5 },
34   reqdate                => { type => 'date' },
35   sellprice              => { type => 'numeric', precision => 15, scale => 5 },
36   serialnumber           => { type => 'text' },
37   transdate              => { type => 'text' },
38   unit                   => { type => 'varchar', length => 20 },
39 );
40
41 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
42
43 __PACKAGE__->meta->allow_inline_column_values(1);
44
45 __PACKAGE__->meta->foreign_keys(
46   delivery_order => {
47     class       => 'SL::DB::DeliveryOrder',
48     key_columns => { delivery_order_id => 'id' },
49   },
50
51   orderer => {
52     class       => 'SL::DB::Employee',
53     key_columns => { orderer_id => 'id' },
54   },
55
56   part => {
57     class       => 'SL::DB::Part',
58     key_columns => { parts_id => 'id' },
59   },
60
61   price_factor_obj => {
62     class       => 'SL::DB::PriceFactor',
63     key_columns => { price_factor_id => 'id' },
64   },
65
66   pricegroup => {
67     class       => 'SL::DB::Pricegroup',
68     key_columns => { pricegroup_id => 'id' },
69   },
70
71   project => {
72     class       => 'SL::DB::Project',
73     key_columns => { project_id => 'id' },
74   },
75
76   unit_obj => {
77     class       => 'SL::DB::Unit',
78     key_columns => { unit => 'name' },
79   },
80 );
81
82 1;
83 ;