kivitendo/SL/DB/MetaSetup/PurchaseInvoice.pm @ 4d67a19b
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;
|
||||
use base qw(SL::DB::Object);
|
||||
b8b112a3 | Sven Schöling | __PACKAGE__->meta->table('ap');
|
||
__PACKAGE__->meta->columns(
|
||||
a3511b2d | Moritz Bunkus | amount => { type => 'numeric', 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' },
|
||
a3511b2d | Moritz Bunkus | netamount => { type => 'numeric', precision => 15, scale => 5 },
|
||
3eb3d1b1 | Moritz Bunkus | notes => { type => 'text' },
|
||
orddate => { type => 'date' },
|
||||
ordnumber => { type => 'text' },
|
||||
a3511b2d | Moritz Bunkus | paid => { type => 'numeric', 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' },
|
||||
b8b112a3 | Sven Schöling | taxzone_id => { type => 'integer' },
|
||
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;
|
||||
;
|