Remove travelCancellation from booking form

git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3378 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
adametz 2018-03-09 15:14:40 +00:00
parent 8ef58d6438
commit d18777296c
6 changed files with 5 additions and 40 deletions

View file

@ -42,14 +42,6 @@ Nicht eingeschlossene, zubuchbare Leistungen:
[o] {{ travel_program_service|raw }}
{% endfor %}
=====================================================================================
Reise-Rücktrittskosten-Versicherung:
=====================================================================================
{% if(booking_request.travelCancellation == 1) %}
[x] Informationen angefordert
{% else %}
[o] Keine Informationen gewünscht
{% endif %}
=====================================================================================
Reiseanmelder{% if booking_request.salutation == 2 %}in{% endif %}

View file

@ -176,14 +176,10 @@
<tr>
<td>Reiseversicherung</td>
<td>
{% if form.travelCancellation is defined %}
<div class="checkbox">
{{ form_widget(form.travelCancellation) }}
<label for="{{ form.travelCancellation.vars.id }}" style="white-space: normal;">
STERN TOURS GmbH empfiehlt generell den Abschluss einer Reise-Rücktrittskosten-Versicherung und einer Auslands-Reisekrankenversicherung mit Rücktransport. Wenn Sie eine Versicherung wünschen, dann teilen Sie uns das bitte hier (Checkbox auswählen) mit und wir senden Ihnen alle Informationen per Email zu.
</label>
</div>
{% endif %}
<p style="white-space: normal;">
<br>
STERN TOURS GmbH empfiehlt generell den Abschluss einer Reise-Rücktrittskosten-Versicherung und einer Auslands-Reisekrankenversicherung mit Rücktransport. Im Anschluss der Buchung senden wir Ihnen diesbezüglich Informationen zu.
</p>
</td>
</tr>

View file

@ -283,9 +283,6 @@ class BookingController extends Controller
$possibleRooms = $this->getRooms($travelDate->getPrices(), $persons);
if($bookingRequest->getTravelCancellation()){
}
if ($bookingRequest->getComfort())
{
foreach ($possibleRooms as $room)

View file

@ -39,8 +39,6 @@ class BookingRequest
*/
private $insurance;
private $travelCancellation;
private $comfort = false;
private $travelOptions = [];
@ -259,23 +257,6 @@ class BookingRequest
$this->insurance = $insurance;
}
/**
* @return mixed
*/
public function getTravelCancellation()
{
return $this->travelCancellation;
}
/**
* @param mixed $comfort
*/
public function setTravelCancellation($travelCancellation)
{
$this->travelCancellation = $travelCancellation;
}
/**
* @return mixed

View file

@ -62,7 +62,7 @@ class TravelBookingRepository extends \Doctrine\ORM\EntityRepository
$ret->setInsurances($insurances);
}
$ret->setTravelCancellation($bookingRequest->getTravelCancellation());
//$ret->setTravelCancellation($bookingRequest->getTravelCancellation());
$ret->setParticipants($bookingRequest->getTravelers());
$ret->setParticipantsTotal($bookingRequest->getTravelerCount());
$ret->setRooms($bookingPriceInfo['rooms']);

View file

@ -209,7 +209,6 @@ class BookingRequestType extends AbstractType
}
//$travelDate->getPrices()[0]->getPriceType()
$builder->add('travelCancellation', CheckboxType::class, ['required' => false]);
if ($travelDate->hasComfortCategory())
{