fix Mail Summary Prices

git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3452 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
adametz 2018-08-23 13:03:57 +00:00
parent a5eb342bd3
commit 0eac480ad5
2 changed files with 12 additions and 30 deletions

View file

@ -135,8 +135,6 @@ class BookingController extends Controller
$crmBookingUrl = preg_replace('/\\/api/', '', $crmBookingUrl).'/edit';
}
$this->get('mailer')->send(\Swift_Message::newInstance()
->setSubject('Ihr Buchungsauftrag bei STERN TOURS')
->setFrom('stern@stern-tours.de', 'STERN TOURS')
@ -148,6 +146,8 @@ class BookingController extends Controller
'booking_price_info' => $bookingPriceInfo,
'travel_date' => $travelDate,
'breadcrumb_entries' => $breadcrumbEntries,
'summary' => $htmlSummary,
]),
'text/plain', 'utf-8'
)
@ -156,7 +156,7 @@ class BookingController extends Controller
$this->get('mailer')->send(\Swift_Message::newInstance()
->setSubject('BUCHUNG: '. $travelProgram->getTitle() .'('. $travelDate->getName() .')')
->setFrom('stern@stern-tours.de', 'STERN TOURS')
->setTo("stern@stern-tours.de")
->setTo("stern@stern-tours.de")
->setBody(
$this->renderView('default/email/bookingServiceEmail.txt.twig', [
'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..').DIRECTORY_SEPARATOR,
@ -166,6 +166,8 @@ class BookingController extends Controller
'booking_price_info' => $bookingPriceInfo,
'travel_date' => $travelDate,
'breadcrumb_entries' => $breadcrumbEntries,
'summary' => $htmlSummary,
]),
'text/plain', 'utf-8'
)
@ -267,6 +269,7 @@ class BookingController extends Controller
{
$insuranceHtmlSummary = [];
}
if (isset($outPriceInfo))
{
$outPriceInfo['rooms'] = [];