bin_id => { type => 'integer' },
bom => { type => 'boolean', default => 'false' },
buchungsgruppen_id => { type => 'integer' },
+ classification_id => { type => 'integer', default => '0' },
description => { type => 'text' },
drawing => { type => 'text' },
ean => { type => 'text' },
- expense_accno_id => { type => 'integer' },
formel => { type => 'text' },
gv => { type => 'numeric', precision => 15, scale => 5 },
has_sernumber => { type => 'boolean', default => 'false' },
id => { type => 'integer', not_null => 1, sequence => 'id' },
image => { type => 'text' },
- income_accno_id => { type => 'integer' },
- inventory_accno_id => { type => 'integer' },
itime => { type => 'timestamp', default => 'now()' },
lastcost => { type => 'numeric', precision => 15, scale => 5 },
listprice => { type => 'numeric', precision => 15, scale => 5 },
payment_id => { type => 'integer' },
price_factor_id => { type => 'integer' },
priceupdate => { type => 'date', default => 'now' },
- rop => { type => 'float', scale => 4 },
+ rop => { type => 'float', precision => 4, scale => 4 },
sellprice => { type => 'numeric', precision => 15, scale => 5 },
shop => { type => 'boolean', default => 'false' },
stockable => { type => 'boolean', default => 'false' },
unit => { type => 'varchar', length => 20, not_null => 1 },
ve => { type => 'integer' },
warehouse_id => { type => 'integer' },
- weight => { type => 'float', scale => 4 },
+ weight => { type => 'float', precision => 4, scale => 4 },
);
__PACKAGE__->meta->primary_key_columns([ 'id' ]);
key_columns => { buchungsgruppen_id => 'id' },
},
- expense_account => {
- class => 'SL::DB::Chart',
- key_columns => { expense_accno_id => 'id' },
- },
-
- income_account => {
- class => 'SL::DB::Chart',
- key_columns => { income_accno_id => 'id' },
- },
-
- inventory_account => {
- class => 'SL::DB::Chart',
- key_columns => { inventory_accno_id => 'id' },
+ classification => {
+ class => 'SL::DB::PartClassification',
+ key_columns => { classification_id => 'id' },
},
partsgroup => {