Reiseversicherung CRM Fehler

wieder rein, dafür display none

git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3372 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
adametz 2018-02-23 08:01:16 +00:00
parent 6b52080186
commit 751a904629
4 changed files with 28 additions and 7 deletions

View file

@ -151,6 +151,27 @@
{% endif %}
</td>
</tr>
<tr style="display:none">
<td>Reiseversicherung</td>
<td>
<div class="radio">
<input id="st-no-insurance-opt" type="radio" value=""
name="{{ form.insurance.vars.full_name }}"
{% if form.insurance.vars.value == '' %}checked{% endif %}
>
<label for="st-no-insurance-opt">keine Reiseversicherung</label>
</div>
{% for insuranceForm in form.insurance %}
{% include 'default/components/booking/insurance.html.twig' with {
'form': insuranceForm,
'insurance': form.insurance.vars.choices[insuranceForm.vars.value].data
} %}
{% endfor %}
{{ form_errors(form.insurance) }}
</td>
</tr>
<tr>
<td>Reiseversicherung</td>

View file

@ -357,8 +357,7 @@ class BookingController extends Controller
Util::formatPrice($singleFullPrice - $singleDiscountPrice) .' pro Person]</strong>'
];
}
/*
Preis für reisekostenversicherung
if ($bookingRequest->getInsurance() && $adultCount > 0)
{
$curAssessmentBasis = $insuranceAssessmentBasis + ($singleDiscountPrice ?? $singleFullPrice);
@ -388,7 +387,7 @@ class BookingController extends Controller
'count' => $adultCount,
];
}
}*/
}
}
}

View file

@ -40,7 +40,8 @@ class TravelBookingRepository extends \Doctrine\ORM\EntityRepository
$ret->setSelectedChild1(0);
$ret->setSelectedChild2(0);
$ret->setSelectedChild3(0);
/*
$insurance = $bookingRequest->getInsurance();
$ret->setInsuranceName($insurance ? $insurance->getName() : '0'); // #TODO Adapted from v2
if (empty($bookingPriceInfo['insurances']))
@ -59,7 +60,8 @@ class TravelBookingRepository extends \Doctrine\ORM\EntityRepository
];
}
$ret->setInsurances($insurances);
}*/
}
$ret->setTravelCancellation($bookingRequest->getTravelCancellation());
$ret->setParticipants($bookingRequest->getTravelers());
$ret->setParticipantsTotal($bookingRequest->getTravelerCount());

View file

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