X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/47bded0e2297a91b7e725278b301ea47db2d7008..cf35a74f94bfe0451dfe9498e0a07ce20ae098ed:/SL/PriceSource.pm diff --git a/SL/PriceSource.pm b/SL/PriceSource.pm index 5237003fe..9f7c11090 100644 --- a/SL/PriceSource.pm +++ b/SL/PriceSource.pm @@ -35,7 +35,7 @@ sub available_prices { } sub best_price { - min_by { $_->price } map { $_->best_price } $_[0]->all_price_sources; + min_by { $_->price } grep { $_->price > 0 } map { $_->best_price } $_[0]->all_price_sources; } sub empty_price {