X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FMetaSetup%2FPriceFactor.pm;h=a67b805eb1a24416a5f0007f7042005f8e069b48;hb=35bd55ae9e1249e11f18ebb6580a7037acdf8087;hp=3d0aa778cd6018bf79b3dc2d18b8fbfba36dfd75;hpb=b8b112a39bd601b0bc717646d78de470631da22a;p=kivitendo-erp.git diff --git a/SL/DB/MetaSetup/PriceFactor.pm b/SL/DB/MetaSetup/PriceFactor.pm index 3d0aa778c..a67b805eb 100644 --- a/SL/DB/MetaSetup/PriceFactor.pm +++ b/SL/DB/MetaSetup/PriceFactor.pm @@ -9,35 +9,13 @@ use base qw(SL::DB::Object); __PACKAGE__->meta->table('price_factors'); __PACKAGE__->meta->columns( - id => { type => 'integer', not_null => 1, sequence => 'id' }, description => { type => 'text' }, - factor => { type => 'numeric', precision => 5, scale => 15 }, + factor => { type => 'numeric', precision => 15, scale => 5 }, + id => { type => 'integer', not_null => 1, sequence => 'id' }, sortkey => { type => 'integer' }, ); __PACKAGE__->meta->primary_key_columns([ 'id' ]); -__PACKAGE__->meta->relationships( - invoice => { - class => 'SL::DB::InvoiceItem', - column_map => { id => 'price_factor_id' }, - type => 'one to many', - }, - - orderitems => { - class => 'SL::DB::OrderItem', - column_map => { id => 'price_factor_id' }, - type => 'one to many', - }, - - parts => { - class => 'SL::DB::Part', - column_map => { id => 'price_factor_id' }, - type => 'one to many', - }, -); - -# __PACKAGE__->meta->initialize; - 1; ;