]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/PriceSource.pm
PriceSource: 0,0000 Preise nicht als best_price erlauben
[kivitendo-erp.git] / SL / PriceSource.pm
index 5237003fec05f199351dd20bf90ac2c478b98a92..9f7c11090f5d2acdf1528b619b3c2feb5b893edd 100644 (file)
@@ -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 {