1 package SL::DB::PriceFactor;
5 use SL::DB::MetaSetup::PriceFactor;
6 use SL::DB::Manager::PriceFactor;
7 use SL::DB::Helper::ActsAsList;
9 __PACKAGE__->meta->initialize;
14 die 'not an accessor' if @_ > 1;
16 require SL::DB::DeliveryOrderItem;
17 require SL::DB::InvoiceItem;
18 require SL::DB::OrderItem;
21 return 1 if !$self->id;
23 return 0 if SL::DB::Manager::DeliveryOrderItem->get_first(query => [ price_factor_id => $self->id ]);
24 return 0 if SL::DB::Manager::InvoiceItem ->get_first(query => [ price_factor_id => $self->id ]);
25 return 0 if SL::DB::Manager::OrderItem ->get_first(query => [ price_factor_id => $self->id ]);
26 return 0 if SL::DB::Manager::Part ->get_first(query => [ price_factor_id => $self->id ]);
39 SL::DB::PriceFactor: Model for the 'price_factors' table
43 This is a standard Rose::DB::Object based model and can be used as one.
51 Moritz Bunkus E<lt>m.bunkus@linet-services.deE<gt>