]> wagnertech.de Git - mfinanz.git/blob - SL/DB/MetaSetup/Reclamation.pm
date error in mapping
[mfinanz.git] / SL / DB / MetaSetup / Reclamation.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::Reclamation;
4
5 use strict;
6
7 use parent qw(SL::DB::Object);
8
9 __PACKAGE__->meta->table('reclamations');
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', not_null => 1 },
15   contact_id              => { type => 'integer' },
16   currency_id             => { type => 'integer', not_null => 1 },
17   customer_id             => { type => 'integer' },
18   cv_record_number        => { type => 'text' },
19   delivered               => { type => 'boolean', default => 'false', not_null => 1 },
20   delivery_term_id        => { type => 'integer' },
21   department_id           => { type => 'integer' },
22   employee_id             => { type => 'integer', not_null => 1 },
23   exchangerate            => { type => 'numeric', precision => 15, scale => 5 },
24   globalproject_id        => { type => 'integer' },
25   id                      => { type => 'integer', not_null => 1, sequence => 'id' },
26   intnotes                => { type => 'text' },
27   itime                   => { type => 'timestamp', default => 'now()' },
28   language_id             => { type => 'integer' },
29   mtime                   => { type => 'timestamp' },
30   netamount               => { type => 'numeric', precision => 15, scale => 5 },
31   notes                   => { type => 'text' },
32   payment_id              => { type => 'integer' },
33   record_number           => { type => 'text', not_null => 1 },
34   record_type             => { type => 'enum', check_in => [ 'sales_reclamation', 'purchase_reclamation' ], db_type => 'reclamation_types', not_null => 1 },
35   reqdate                 => { type => 'date' },
36   salesman_id             => { type => 'integer' },
37   shippingpoint           => { type => 'text' },
38   shipto_id               => { type => 'integer' },
39   shipvia                 => { type => 'text' },
40   tax_point               => { type => 'date' },
41   taxincluded             => { type => 'boolean', not_null => 1 },
42   taxzone_id              => { type => 'integer', not_null => 1 },
43   transaction_description => { type => 'text' },
44   transdate               => { type => 'date', default => 'now()' },
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 => { contact_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 ;