X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FRequirementSpecItem.pm;h=50c167deda61d437c4d8fd7c192ac52f2afafece;hb=5d1790289c565ace01143d524538bd505859a57c;hp=ba2d4cbb1a5ddcafc9621c5985f6b71f093aa8ee;hpb=1561b7f3d98390ba97bd5a81945f16e82d96915b;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/RequirementSpecItem.pm b/SL/DB/MetaSetup/RequirementSpecItem.pm index ba2d4cbb1..50c167ded 100644 --- a/SL/DB/MetaSetup/RequirementSpecItem.pm +++ b/SL/DB/MetaSetup/RequirementSpecItem.pm @@ -4,7 +4,7 @@ package SL::DB::RequirementSpecItem; use strict; -use base qw(SL::DB::Object); +use parent qw(SL::DB::Object); __PACKAGE__->meta->table('requirement_spec_items'); @@ -19,12 +19,13 @@ __PACKAGE__->meta->columns( item_type => { type => 'text', not_null => 1 }, itime => { type => 'timestamp', default => 'now()', not_null => 1 }, mtime => { type => 'timestamp' }, - net_sum => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 }, + order_part_id => { type => 'integer' }, parent_id => { type => 'integer' }, position => { type => 'integer', not_null => 1 }, requirement_spec_id => { type => 'integer', not_null => 1 }, risk_id => { type => 'integer' }, - time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 2, scale => 12 }, + sellprice_factor => { type => 'numeric', default => 1, precision => 10, scale => 5 }, + time_estimation => { type => 'numeric', default => '0', not_null => 1, precision => 12, scale => 2 }, title => { type => 'text' }, ); @@ -43,6 +44,11 @@ __PACKAGE__->meta->foreign_keys( key_columns => { complexity_id => 'id' }, }, + order_part => { + class => 'SL::DB::Part', + key_columns => { order_part_id => 'id' }, + }, + parent => { class => 'SL::DB::RequirementSpecItem', key_columns => { parent_id => 'id' },