]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/InvoiceItem.pm
kivitendo 3.9.2-0.2
[mfinanz.git] / SL / DB / MetaSetup / InvoiceItem.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::InvoiceItem;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('invoice');
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   allocated              => { type => 'float', precision => 4, scale => 4 },
15   assemblyitem           => { type => 'boolean', default => 'false' },
16   base_qty               => { type => 'float', precision => 4, scale => 4 },
17   cusordnumber           => { type => 'text' },
18   deliverydate           => { type => 'date' },
19   description            => { type => 'text' },
20   discount               => { type => 'float', precision => 4, scale => 4 },
21   donumber               => { type => 'text' },
22   expense_chart_id       => { type => 'integer' },
23   fxsellprice            => { type => 'numeric', precision => 15, scale => 5 },
24   id                     => { type => 'integer', not_null => 1, sequence => 'invoiceid' },
25   inventory_chart_id     => { type => 'integer' },
26   itime                  => { type => 'timestamp', default => 'now()' },
27   lastcost               => { type => 'numeric', precision => 15, scale => 5 },
28   longdescription        => { type => 'text' },
29   marge_percent          => { type => 'numeric', precision => 15, scale => 5 },
30   marge_price_factor     => { type => 'numeric', default => 1, precision => 15, scale => 5 },
31   marge_total            => { type => 'numeric', precision => 15, scale => 5 },
32   mtime                  => { type => 'timestamp' },
33   ordnumber              => { type => 'text' },
34   parts_id               => { type => 'integer' },
35   position               => { type => 'integer', not_null => 1 },
36   price_factor           => { type => 'numeric', default => 1, precision => 15, scale => 5 },
37   price_factor_id        => { type => 'integer' },
38   pricegroup_id          => { type => 'integer' },
39   project_id             => { type => 'integer' },
40   qty                    => { type => 'numeric', precision => 25, scale => 5 },
41   sellprice              => { type => 'numeric', precision => 15, scale => 5 },
42   serialnumber           => { type => 'text' },
43   subtotal               => { type => 'boolean', default => 'false' },
44   tax_chart_type         => { type => 'varchar', length => 20 },
45   tax_id                 => { type => 'integer' },
46   trans_id               => { type => 'integer' },
47   transdate              => { type => 'text' },
48   unit                   => { type => 'varchar', length => 20 },
49 );
50
51 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
52
53 __PACKAGE__->meta->allow_inline_column_values(1);
54
55 __PACKAGE__->meta->foreign_keys(
56   expense_chart => {
57     class       => 'SL::DB::Chart',
58     key_columns => { expense_chart_id => 'id' },
59   },
60
61   inventory_chart => {
62     class       => 'SL::DB::Chart',
63     key_columns => { inventory_chart_id => 'id' },
64   },
65
66   part => {
67     class       => 'SL::DB::Part',
68     key_columns => { parts_id => 'id' },
69   },
70
71   price_factor_obj => {
72     class       => 'SL::DB::PriceFactor',
73     key_columns => { price_factor_id => 'id' },
74   },
75
76   pricegroup => {
77     class       => 'SL::DB::Pricegroup',
78     key_columns => { pricegroup_id => 'id' },
79   },
80
81   project => {
82     class       => 'SL::DB::Project',
83     key_columns => { project_id => 'id' },
84   },
85
86   tax => {
87     class       => 'SL::DB::Tax',
88     key_columns => { tax_id => 'id' },
89   },
90
91   unit_obj => {
92     class       => 'SL::DB::Unit',
93     key_columns => { unit => 'name' },
94   },
95 );
96
97 1;
98 ;