X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/13fb6d811d39a8af7144451ada59f2f7d4eb491a..94f556855ab8e7ccdfcdcd7c3e2a6bf722041ebc:/SL/Controller/Part.pm?ds=inline diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index 5622193c4..9458a83f3 100644 --- a/SL/Controller/Part.pm +++ b/SL/Controller/Part.pm @@ -23,7 +23,7 @@ use Rose::Object::MakeMethods::Generic ( assortment assortment_items assembly assembly_items all_pricegroups all_translations all_partsgroups all_units all_buchungsgruppen all_payment_terms all_warehouses - all_languages all_units all_pricefactors) ], + all_languages all_units all_price_factors) ], 'scalar' => [ qw(warehouse bin) ], ); @@ -872,7 +872,8 @@ sub init_all_languages { } sub init_all_partsgroups { - SL::DB::Manager::PartsGroup->get_all_sorted; + my ($self) = @_; + SL::DB::Manager::PartsGroup->get_all_sorted(query => [ or => [ id => $self->part->partsgroup_id, obsolete => 0 ] ]); } sub init_all_buchungsgruppen {