X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/65d2537d658b99b005a18c6663bc1293b41a1d83..f217d072d76183bc07723dcc29503b732bd2022d:/SL/DB/MetaSetup/Part.pm diff --git a/SL/DB/MetaSetup/Part.pm b/SL/DB/MetaSetup/Part.pm index 6e758e499..eacff8fd2 100644 --- a/SL/DB/MetaSetup/Part.pm +++ b/SL/DB/MetaSetup/Part.pm @@ -29,22 +29,25 @@ __PACKAGE__->meta->columns( mtime => { type => 'timestamp' }, not_discountable => { type => 'boolean', default => 'false' }, notes => { type => 'text' }, - obsolete => { type => 'boolean', default => 'false' }, + obsolete => { type => 'boolean', default => 'false', not_null => 1 }, onhand => { type => 'numeric', default => '0', precision => 25, scale => 5 }, + order_locked => { type => 'boolean', default => 'false' }, + order_qty => { type => 'numeric', default => '0', not_null => 1, precision => 15, scale => 5 }, part_type => { type => 'enum', check_in => [ 'part', 'service', 'assembly', 'assortment' ], db_type => 'part_type_enum', not_null => 1 }, partnumber => { type => 'text', not_null => 1 }, partsgroup_id => { type => 'integer' }, 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' }, + tariff_code => { type => 'text' }, 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' ]);