Compare commits
3 commits
fd9509420d
...
8d1f97e2db
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d1f97e2db | ||
|
|
373a0f5f8d | ||
|
|
df6209bc79 |
2 changed files with 9 additions and 8 deletions
|
|
@ -88,13 +88,13 @@ class BookingController extends Controller
|
|||
if ($request->getMethod() == 'POST' && $form->isValid())
|
||||
{
|
||||
|
||||
|
||||
$booking = $this->getDoctrine()->getRepository('AppBundle:TravelBooking')->createFromBookingRequest(
|
||||
$bookingRequest, $travelDate, $bookingPriceInfo);
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
$em->persist($booking);
|
||||
$em->flush();
|
||||
|
||||
|
||||
|
||||
$crmBookingUrl = $this->get('app.booking_exporter')->process($bookingRequest, $travelDate, $bookingPriceInfo);
|
||||
|
||||
if (!$crmBookingUrl)
|
||||
|
|
@ -105,7 +105,7 @@ class BookingController extends Controller
|
|||
{
|
||||
$crmBookingUrl = preg_replace('/\\/api/', '', $crmBookingUrl).'/edit';
|
||||
}
|
||||
|
||||
|
||||
|
||||
$this->get('mailer')->send(\Swift_Message::newInstance()
|
||||
->setSubject('Ihr Buchungsauftrag bei STERN TOURS')
|
||||
|
|
@ -123,7 +123,6 @@ class BookingController extends Controller
|
|||
)
|
||||
);
|
||||
|
||||
|
||||
$this->get('mailer')->send(\Swift_Message::newInstance()
|
||||
->setSubject('BUCHUNG: '. $travelProgram->getTitle() .'('. $travelDate->getName() .')')
|
||||
->setFrom('stern@stern-tours.de', 'STERN TOURS')
|
||||
|
|
|
|||
|
|
@ -50,10 +50,12 @@ class TravelerType extends AbstractType
|
|||
])
|
||||
->add('firstName')
|
||||
->add('lastName')
|
||||
->add('birthDate', StDateType::class, [
|
||||
'format' => 'dd.MM.y'
|
||||
]
|
||||
)
|
||||
->add('birthDate')
|
||||
;
|
||||
/*
|
||||
, StDateType::class, [
|
||||
'format' => 'dd.MM.yyyy'
|
||||
]
|
||||
*/
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue