X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDB%2FPart.pm;h=5c795f197b07409fe3594e1e3bbcae339e21eb81;hb=dd6282f6e20d531511ae35cadc491a8c7ab8bad5;hp=952bce278ba93057f3ef3e4523b7aaab379253f6;hpb=1b69969f8d9fedd218b059b7148bc3778ee600f3;p=kivitendo-erp.git diff --git a/SL/DB/Part.pm b/SL/DB/Part.pm index 952bce278..5c795f197 100644 --- a/SL/DB/Part.pm +++ b/SL/DB/Part.pm @@ -21,16 +21,6 @@ __PACKAGE__->meta->add_relationships( class => 'SL::DB::Assembly', column_map => { id => 'id' }, }, - partsgroup => { - type => 'one to one', - class => 'SL::DB::PartsGroup', - column_map => { partsgroup_id => 'id' }, - }, - price_factor => { - type => 'one to one', - class => 'SL::DB::PriceFactor', - column_map => { price_factor_id => 'id' }, - }, prices => { type => 'one to many', class => 'SL::DB::Price', @@ -55,7 +45,7 @@ __PACKAGE__->before_save('_before_save_set_partnumber'); sub _before_save_set_partnumber { my ($self) = @_; - $self->create_trans_number if $self->partnumber eq ''; + $self->create_trans_number if !$self->partnumber; return 1; }