Merge branch 'hotfix/teaser-minprice'
This commit is contained in:
@@ -165,6 +165,7 @@ class ProductRepository extends AbstractRepository
|
|||||||
->addGroupBy('date.hotel')
|
->addGroupBy('date.hotel')
|
||||||
->addGroupBy('date.date_start')
|
->addGroupBy('date.date_start')
|
||||||
->addGroupBy('date.nights')
|
->addGroupBy('date.nights')
|
||||||
|
->having('available > 0')
|
||||||
->orderBy('important', 'DESC')
|
->orderBy('important', 'DESC')
|
||||||
->addOrderBy('concept_sorting')
|
->addOrderBy('concept_sorting')
|
||||||
->addOrderBy('date_start')
|
->addOrderBy('date_start')
|
||||||
|
|||||||
@@ -561,7 +561,7 @@ class DateImportService implements SingletonInterface, LoggerAwareInterface
|
|||||||
$pax = (int) $roomXml->attributes()['MaxPax'];
|
$pax = (int) $roomXml->attributes()['MaxPax'];
|
||||||
$availableTotal += $available * $pax;
|
$availableTotal += $available * $pax;
|
||||||
|
|
||||||
if ($code !== static::CODE_BABYROOM && ($minPrice === 0 || $price < $minPrice)) {
|
if ($code !== static::CODE_BABYROOM && $available > 0 && ($minPrice === 0 || $price < $minPrice)) {
|
||||||
$minPrice = $price;
|
$minPrice = $price;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user