Merge branch 'release/2020.02-04'

This commit is contained in:
Björn Fromme
2020-02-05 14:55:37 +01:00
4 changed files with 19 additions and 4 deletions
@@ -369,11 +369,11 @@ class DateImportService implements SingletonInterface
'important' => $product['important'], 'important' => $product['important'],
]; ];
$skiPass = $this->parseSelectionGroup($xmlDate, 'Leistungen Skipass');
$servicesBoard = $this->parseSelectionGroup($xmlDate, 'Leistungen Verpflegung'); $servicesBoard = $this->parseSelectionGroup($xmlDate, 'Leistungen Verpflegung');
$skiPass = $this->parseSelectionGroup($xmlDate, 'Leistungen Skipass');
$servicesIncluded = $this->parseSelectionGroup($xmlDate, 'Leistungen Sonstige'); $servicesIncluded = $this->parseSelectionGroup($xmlDate, 'Leistungen Sonstige');
$date['services_included'] = serialize($this->combineServices($servicesIncluded, $skiPass, $servicesBoard)); $date['services_included'] = serialize($this->combineServices($servicesBoard, $skiPass, $servicesIncluded));
if ($servicesBoard) { if ($servicesBoard) {
$date['board'] = reset($servicesBoard); $date['board'] = reset($servicesBoard);
@@ -128,7 +128,7 @@ class IcalService implements SingletonInterface
foreach ($events as $event) { foreach ($events as $event) {
/** @var Contingent $event */ /** @var Contingent $event */
if (null === $item && Contingent::STATUS_BLOCKED === $event->getStatus()) { if (null === $item && (Contingent::STATUS_BLOCKED === $event->getStatus() || Contingent::STATUS_ONREQUEST === $event->getStatus())) {
$item = [ $item = [
'from' => $event->getBegin(), 'from' => $event->getBegin(),
]; ];
@@ -162,6 +162,10 @@ class IcalService implements SingletonInterface
*/ */
protected function addOccupancyItem( array $item): void protected function addOccupancyItem( array $item): void
{ {
if (0 === $item['occupancy']) {
return;
}
$summary = sprintf('Part-occupied:%d', $item['occupancy']); $summary = sprintf('Part-occupied:%d', $item['occupancy']);
try { try {
@@ -18,7 +18,7 @@
<type>select</type> <type>select</type>
<renderType>selectSingle</renderType> <renderType>selectSingle</renderType>
<foreign_table>tx_epproducts_domain_model_product</foreign_table> <foreign_table>tx_epproducts_domain_model_product</foreign_table>
<foreign_table_where>AND tx_epproducts_domain_model_product.hidden = 0 AND tx_epproducts_domain_model_product.deleted = 0 ORDER BY tx_epproducts_domain_model_product.name</foreign_table_where> <foreign_table_where>AND tx_epproducts_domain_model_product.hidden = 0 AND tx_epproducts_domain_model_product.deleted = 0 ORDER BY tx_epproducts_domain_model_product.name_internal</foreign_table_where>
<minitems>1</minitems> <minitems>1</minitems>
<maxitems>1</maxitems> <maxitems>1</maxitems>
</config> </config>
@@ -6,6 +6,17 @@
<f:layout name="Default"/> <f:layout name="Default"/>
<f:section name="Main"> <f:section name="Main">
<f:if condition="{pricetable}">
<f:then>
<f:render section="Table" arguments="{_all}"/>
</f:then>
<f:else>
<f:render partial="NotBookable" arguments="{_all}"/>
</f:else>
</f:if>
</f:section>
<f:section name="Table">
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-bordered table-hover pricetable"> <table class="table table-bordered table-hover pricetable">
<f:for each="{categories}" as="category" key="categoryKey"> <f:for each="{categories}" as="category" key="categoryKey">