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:
parent
8ef58d6438
commit
d18777296c
6 changed files with 5 additions and 40 deletions
|
|
@ -283,9 +283,6 @@ class BookingController extends Controller
|
|||
|
||||
$possibleRooms = $this->getRooms($travelDate->getPrices(), $persons);
|
||||
|
||||
if($bookingRequest->getTravelCancellation()){
|
||||
|
||||
}
|
||||
if ($bookingRequest->getComfort())
|
||||
{
|
||||
foreach ($possibleRooms as $room)
|
||||
|
|
|
|||
|
|
@ -39,8 +39,6 @@ class BookingRequest
|
|||
*/
|
||||
private $insurance;
|
||||
|
||||
private $travelCancellation;
|
||||
|
||||
private $comfort = false;
|
||||
|
||||
private $travelOptions = [];
|
||||
|
|
@ -258,23 +256,6 @@ class BookingRequest
|
|||
{
|
||||
$this->insurance = $insurance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function getTravelCancellation()
|
||||
{
|
||||
return $this->travelCancellation;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $comfort
|
||||
*/
|
||||
public function setTravelCancellation($travelCancellation)
|
||||
{
|
||||
$this->travelCancellation = $travelCancellation;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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']);
|
||||
|
|
|
|||
|
|
@ -209,7 +209,6 @@ class BookingRequestType extends AbstractType
|
|||
}
|
||||
|
||||
//$travelDate->getPrices()[0]->getPriceType()
|
||||
$builder->add('travelCancellation', CheckboxType::class, ['required' => false]);
|
||||
|
||||
if ($travelDate->hasComfortCategory())
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue