Projekt

Allgemein

Profil

Herunterladen (4,72 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::Invoice;

use strict;

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

__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 },
cusordnumber => { type => 'text' },
customer_id => { type => 'integer' },
b8b112a3 Sven Schöling
datepaid => { type => 'date' },
3eb3d1b1 Moritz Bunkus
delivery_customer_id => { type => 'integer' },
03d3d025 Bernd Bleßmann
delivery_term_id => { type => 'integer' },
3eb3d1b1 Moritz Bunkus
delivery_vendor_id => { type => 'integer' },
b8b112a3 Sven Schöling
deliverydate => { type => 'date' },
3eb3d1b1 Moritz Bunkus
department_id => { type => 'integer' },
direct_debit => { type => 'boolean', default => 'false' },
donumber => { type => 'text' },
duedate => { type => 'date' },
dunning_config_id => { type => 'integer' },
b8b112a3 Sven Schöling
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 },
invnumber_for_credit_note => { type => 'text' },
invoice => { type => 'boolean', default => 'false' },
b8b112a3 Sven Schöling
itime => { type => 'timestamp', default => 'now()' },
language_id => { type => 'integer' },
a3511b2d Moritz Bunkus
marge_percent => { type => 'numeric', precision => 15, scale => 5 },
marge_total => { type => 'numeric', precision => 15, scale => 5 },
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' },
b8b112a3 Sven Schöling
orddate => { type => 'date' },
3eb3d1b1 Moritz Bunkus
ordnumber => { type => 'text' },
36b8f1ec Sven Schöling
paid => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 },
3eb3d1b1 Moritz Bunkus
payment_id => { type => 'integer' },
b8b112a3 Sven Schöling
quodate => { type => 'date' },
3eb3d1b1 Moritz Bunkus
quonumber => { type => 'text' },
b8b112a3 Sven Schöling
salesman_id => { type => 'integer' },
3eb3d1b1 Moritz Bunkus
shippingpoint => { type => 'text' },
shipto_id => { type => 'integer' },
shipvia => { type => 'text' },
storno => { type => 'boolean', default => 'false' },
b8b112a3 Sven Schöling
storno_id => { type => 'integer' },
3eb3d1b1 Moritz Bunkus
taxincluded => { type => 'boolean' },
cc872430 Moritz Bunkus
taxzone_id => { type => 'integer', not_null => 1 },
3eb3d1b1 Moritz Bunkus
transaction_description => { type => 'text' },
transdate => { type => 'date', default => 'now' },
type => { type => 'text' },
b8b112a3 Sven Schöling
);
91bd08d8 Moritz Bunkus
b8b112a3 Sven Schöling
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
82515b2d Sven Schöling
b8b112a3 Sven Schöling
__PACKAGE__->meta->allow_inline_column_values(1);
91bd08d8 Moritz Bunkus
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' },
},

b8b112a3 Sven Schöling
customer => {
class => 'SL::DB::Customer',
key_columns => { customer_id => 'id' },
},
4fd22b56 Sven Schöling
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' },
},

dunning_config => {
class => 'SL::DB::DunningConfig',
key_columns => { dunning_config_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' },
},

salesman => {
class => 'SL::DB::Employee',
key_columns => { salesman_id => 'id' },
},

shipto => {
class => 'SL::DB::Shipto',
key_columns => { shipto_id => 'shipto_id' },
},

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

1;
;