X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/13fb6d811d39a8af7144451ada59f2f7d4eb491a..55a40c09b26dac84a3d4193f83fe8a27d142fa40:/SL/Controller/Part.pm diff --git a/SL/Controller/Part.pm b/SL/Controller/Part.pm index 5622193c4..6b40493f4 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 { @@ -894,7 +895,8 @@ sub init_all_units { } sub init_all_payment_terms { - SL::DB::Manager::PaymentTerm->get_all_sorted; + my ($self) = @_; + SL::DB::Manager::PaymentTerm->get_all_sorted(query => [ or => [ id => $self->part->payment_id, obsolete => 0 ] ]); } sub init_all_price_factors {