Projekt

Allgemein

Profil

Herunterladen (3,57 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::InvoiceItem;

use strict;

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

__PACKAGE__->meta->columns(
89b26688 Sven Schöling
active_discount_source => { type => 'text', default => '', not_null => 1 },
active_price_source => { type => 'text', default => '', not_null => 1 },
f228ac9b Moritz Bunkus
allocated => { type => 'float', precision => 4, scale => 4 },
89b26688 Sven Schöling
assemblyitem => { type => 'boolean', default => 'false' },
f228ac9b Moritz Bunkus
base_qty => { type => 'float', precision => 4, scale => 4 },
89b26688 Sven Schöling
cusordnumber => { type => 'text' },
deliverydate => { type => 'date' },
description => { type => 'text' },
f228ac9b Moritz Bunkus
discount => { type => 'float', precision => 4, scale => 4 },
89b26688 Sven Schöling
donumber => { type => 'text' },
c6df901c Tamino Steinert
expense_chart_id => { type => 'integer' },
89b26688 Sven Schöling
fxsellprice => { type => 'numeric', precision => 15, scale => 5 },
id => { type => 'integer', not_null => 1, sequence => 'invoiceid' },
c6df901c Tamino Steinert
inventory_chart_id => { type => 'integer' },
89b26688 Sven Schöling
itime => { type => 'timestamp', default => 'now()' },
lastcost => { type => 'numeric', precision => 15, scale => 5 },
longdescription => { type => 'text' },
marge_percent => { type => 'numeric', precision => 15, scale => 5 },
marge_price_factor => { type => 'numeric', default => 1, precision => 15, scale => 5 },
marge_total => { type => 'numeric', precision => 15, scale => 5 },
mtime => { type => 'timestamp' },
ordnumber => { type => 'text' },
parts_id => { type => 'integer' },
942291e4 Bernd Bleßmann
position => { type => 'integer', not_null => 1 },
89b26688 Sven Schöling
price_factor => { type => 'numeric', default => 1, precision => 15, scale => 5 },
price_factor_id => { type => 'integer' },
pricegroup_id => { type => 'integer' },
project_id => { type => 'integer' },
b403498c Jan Büren
qty => { type => 'numeric', precision => 25, scale => 5 },
89b26688 Sven Schöling
sellprice => { type => 'numeric', precision => 15, scale => 5 },
serialnumber => { type => 'text' },
subtotal => { type => 'boolean', default => 'false' },
b0d92ef6 Tamino Steinert
tax_chart_type => { type => 'varchar', length => 20 },
c6df901c Tamino Steinert
tax_id => { type => 'integer' },
89b26688 Sven Schöling
trans_id => { type => 'integer' },
transdate => { type => 'text' },
unit => { type => 'varchar', length => 20 },
b8b112a3 Sven Schöling
);
82515b2d Sven Schöling
b8b112a3 Sven Schöling
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
b632cee8 Moritz Bunkus
b8b112a3 Sven Schöling
__PACKAGE__->meta->allow_inline_column_values(1);
b632cee8 Moritz Bunkus
b8b112a3 Sven Schöling
__PACKAGE__->meta->foreign_keys(
c6df901c Tamino Steinert
expense_chart => {
class => 'SL::DB::Chart',
key_columns => { expense_chart_id => 'id' },
},

inventory_chart => {
class => 'SL::DB::Chart',
key_columns => { inventory_chart_id => 'id' },
},

4bcf8804 Sven Schöling
part => {
b8b112a3 Sven Schöling
class => 'SL::DB::Part',
key_columns => { parts_id => 'id' },
},
b632cee8 Moritz Bunkus
4bcf8804 Sven Schöling
price_factor_obj => {
class => 'SL::DB::PriceFactor',
key_columns => { price_factor_id => 'id' },
},

pricegroup => {
class => 'SL::DB::Pricegroup',
key_columns => { pricegroup_id => 'id' },
},

b8b112a3 Sven Schöling
project => {
class => 'SL::DB::Project',
key_columns => { project_id => 'id' },
},
6cde4d1d Moritz Bunkus
c6df901c Tamino Steinert
tax => {
class => 'SL::DB::Tax',
key_columns => { tax_id => 'id' },
},

6cde4d1d Moritz Bunkus
unit_obj => {
class => 'SL::DB::Unit',
key_columns => { unit => 'name' },
},
82515b2d Sven Schöling
);

1;
;