Revision cf35a74f
Von Sven Schöling vor mehr als 10 Jahren hinzugefügt
SL/PriceSource.pm | ||
---|---|---|
}
|
||
|
||
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 {
|
Auch abrufbar als: Unified diff
PriceSource: 0,0000 Preise nicht als best_price erlauben
Auch wenn es im Einzelfall valide Preise sein können, sollte das
Standardverhalten keine Umsonstpreise vorschlagen.