]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/PurchaseInvoice.pm
Merge branch 'master' of http://wagnertech.de/git/mfinanz
[mfinanz.git] / SL / DB / MetaSetup / PurchaseInvoice.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::PurchaseInvoice;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('ap');
10
11 __PACKAGE__->meta->columns(
12   amount                  => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
13   cp_id                   => { type => 'integer' },
14   currency_id             => { type => 'integer', not_null => 1 },
15   datepaid                => { type => 'date' },
16   delivery_term_id        => { type => 'integer' },
17   deliverydate            => { type => 'date' },
18   department_id           => { type => 'integer' },
19   direct_debit            => { type => 'boolean', default => 'false' },
20   duedate                 => { type => 'date' },
21   employee_id             => { type => 'integer' },
22   exchangerate            => { type => 'numeric', precision => 15, scale => 5 },
23   gldate                  => { type => 'date', default => 'now' },
24   globalproject_id        => { type => 'integer' },
25   id                      => { type => 'integer', not_null => 1, sequence => 'glid' },
26   intnotes                => { type => 'text' },
27   invnumber               => { type => 'text', not_null => 1 },
28   invoice                 => { type => 'boolean', default => 'false' },
29   is_sepa_blocked         => { type => 'boolean', default => 'false' },
30   itime                   => { type => 'timestamp', default => 'now()' },
31   language_id             => { type => 'integer' },
32   mtime                   => { type => 'timestamp' },
33   netamount               => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
34   notes                   => { type => 'text' },
35   orddate                 => { type => 'date' },
36   ordnumber               => { type => 'text' },
37   paid                    => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
38   payment_id              => { type => 'integer' },
39   qrbill_data             => { type => 'text' },
40   quodate                 => { type => 'date' },
41   quonumber               => { type => 'text' },
42   shipvia                 => { type => 'text' },
43   storno                  => { type => 'boolean', default => 'false' },
44   storno_id               => { type => 'integer' },
45   tax_point               => { type => 'date' },
46   taxincluded             => { type => 'boolean', default => 'false' },
47   taxzone_id              => { type => 'integer', not_null => 1 },
48   transaction_description => { type => 'text' },
49   transdate               => { type => 'date', default => 'now' },
50   type                    => { type => 'text' },
51   vendor_id               => { type => 'integer' },
52 );
53
54 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
55
56 __PACKAGE__->meta->allow_inline_column_values(1);
57
58 __PACKAGE__->meta->foreign_keys(
59   contact => {
60     class       => 'SL::DB::Contact',
61     key_columns => { cp_id => 'cp_id' },
62   },
63
64   currency => {
65     class       => 'SL::DB::Currency',
66     key_columns => { currency_id => 'id' },
67   },
68
69   delivery_term => {
70     class       => 'SL::DB::DeliveryTerm',
71     key_columns => { delivery_term_id => 'id' },
72   },
73
74   department => {
75     class       => 'SL::DB::Department',
76     key_columns => { department_id => 'id' },
77   },
78
79   employee => {
80     class       => 'SL::DB::Employee',
81     key_columns => { employee_id => 'id' },
82   },
83
84   globalproject => {
85     class       => 'SL::DB::Project',
86     key_columns => { globalproject_id => 'id' },
87   },
88
89   language => {
90     class       => 'SL::DB::Language',
91     key_columns => { language_id => 'id' },
92   },
93
94   payment_terms => {
95     class       => 'SL::DB::PaymentTerm',
96     key_columns => { payment_id => 'id' },
97   },
98
99   storno_obj => {
100     class       => 'SL::DB::PurchaseInvoice',
101     key_columns => { storno_id => 'id' },
102   },
103
104   taxzone => {
105     class       => 'SL::DB::TaxZone',
106     key_columns => { taxzone_id => 'id' },
107   },
108
109   vendor => {
110     class       => 'SL::DB::Vendor',
111     key_columns => { vendor_id => 'id' },
112   },
113 );
114
115 1;
116 ;