Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 9f666261

Von Sven Schöling vor fast 10 Jahren hinzugefügt

  • ID 9f66626118ec0cdcee8082b3d81f288bbfa23648
  • Vorgänger 226002b0
  • Nachfolger 30590722

PriceSource: Priorität auf Preisquellenebene verstehen und umsetzen.

Priorität kann jetzt von den einzelnen Preisquellen durchgereicht werden

Unterschiede anzeigen:

SL/PriceSource.pm
}
sub best_price {
min_by { $_->price } grep { $_->price > 0 } grep { $_ } map { $_->best_price } $_[0]->all_price_sources;
min_by { $_->price } max_by { $_->priority } grep { $_->price > 0 } grep { $_ } map { $_->best_price } $_[0]->all_price_sources;
}
sub best_discount {
max_by { $_->discount } grep { $_->discount } grep { $_ } map { $_->best_discount } $_[0]->all_price_sources;
max_by { $_->discount } max_by { $_->priority } grep { $_->discount } grep { $_ } map { $_->best_discount } $_[0]->all_price_sources;
}
sub empty_price {

Auch abrufbar als: Unified diff