Projekt

Allgemein

Profil

Herunterladen (3,73 KB) Statistiken
| Zweig: | Markierung: | Revision:
82515b2d Sven Schöling
# This file has been auto-generated. Do not modify it; it will be overwritten
# by rose_auto_create_model.pl automatically.
package SL::DB::PurchaseInvoice;

use strict;

2ea07c13 Sven Schöling
use parent qw(SL::DB::Object);
82515b2d Sven Schöling
b8b112a3 Sven Schöling
__PACKAGE__->meta->table('ap');

__PACKAGE__->meta->columns(
36b8f1ec Sven Schöling
amount => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
3eb3d1b1 Moritz Bunkus
cp_id => { type => 'integer' },
currency_id => { type => 'integer', not_null => 1 },
b8b112a3 Sven Schöling
datepaid => { type => 'date' },
03d3d025 Bernd Bleßmann
delivery_term_id => { type => 'integer' },
3eb3d1b1 Moritz Bunkus
deliverydate => { type => 'date' },
department_id => { type => 'integer' },
direct_debit => { type => 'boolean', default => 'false' },
b8b112a3 Sven Schöling
duedate => { type => 'date' },
employee_id => { type => 'integer' },
3eb3d1b1 Moritz Bunkus
gldate => { type => 'date', default => 'now' },
globalproject_id => { type => 'integer' },
id => { type => 'integer', not_null => 1, sequence => 'glid' },
b8b112a3 Sven Schöling
intnotes => { type => 'text' },
3eb3d1b1 Moritz Bunkus
invnumber => { type => 'text', not_null => 1 },
invoice => { type => 'boolean', default => 'false' },
b8b112a3 Sven Schöling
itime => { type => 'timestamp', default => 'now()' },
language_id => { type => 'integer' },
3eb3d1b1 Moritz Bunkus
mtime => { type => 'timestamp' },
36b8f1ec Sven Schöling
netamount => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
3eb3d1b1 Moritz Bunkus
notes => { type => 'text' },
orddate => { type => 'date' },
ordnumber => { type => 'text' },
36b8f1ec Sven Schöling
paid => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
b8b112a3 Sven Schöling
payment_id => { type => 'integer' },
3eb3d1b1 Moritz Bunkus
quodate => { type => 'date' },
quonumber => { type => 'text' },
shipvia => { type => 'text' },
b8b112a3 Sven Schöling
storno => { type => 'boolean', default => 'false' },
3eb3d1b1 Moritz Bunkus
storno_id => { type => 'integer' },
taxincluded => { type => 'boolean', default => 'false' },
cc872430 Moritz Bunkus
taxzone_id => { type => 'integer', not_null => 1 },
b8b112a3 Sven Schöling
transaction_description => { type => 'text' },
3eb3d1b1 Moritz Bunkus
transdate => { type => 'date', default => 'now' },
type => { type => 'text' },
vendor_id => { type => 'integer' },
b8b112a3 Sven Schöling
);
91bd08d8 Moritz Bunkus
b8b112a3 Sven Schöling
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
91bd08d8 Moritz Bunkus
b8b112a3 Sven Schöling
__PACKAGE__->meta->allow_inline_column_values(1);
82515b2d Sven Schöling
b8b112a3 Sven Schöling
__PACKAGE__->meta->foreign_keys(
contact => {
class => 'SL::DB::Contact',
key_columns => { cp_id => 'cp_id' },
},
91bd08d8 Moritz Bunkus
4bcf8804 Sven Schöling
currency => {
class => 'SL::DB::Currency',
key_columns => { currency_id => 'id' },
},

03d3d025 Bernd Bleßmann
delivery_term => {
class => 'SL::DB::DeliveryTerm',
key_columns => { delivery_term_id => 'id' },
},

4bcf8804 Sven Schöling
department => {
class => 'SL::DB::Department',
key_columns => { department_id => 'id' },
},

employee => {
class => 'SL::DB::Employee',
key_columns => { employee_id => 'id' },
},

b8b112a3 Sven Schöling
globalproject => {
class => 'SL::DB::Project',
key_columns => { globalproject_id => 'id' },
},
91bd08d8 Moritz Bunkus
4bcf8804 Sven Schöling
language => {
class => 'SL::DB::Language',
key_columns => { language_id => 'id' },
},

payment_terms => {
class => 'SL::DB::PaymentTerm',
key_columns => { payment_id => 'id' },
},

b8b112a3 Sven Schöling
storno_obj => {
class => 'SL::DB::PurchaseInvoice',
key_columns => { storno_id => 'id' },
},
82515b2d Sven Schöling
078c9769 Geoffrey Richardson
taxzone => {
class => 'SL::DB::TaxZone',
key_columns => { taxzone_id => 'id' },
},

b8b112a3 Sven Schöling
vendor => {
class => 'SL::DB::Vendor',
key_columns => { vendor_id => 'id' },
},
82515b2d Sven Schöling
);

1;
;