git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3357 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
uli 2017-11-02 08:56:48 +00:00
parent 3bb0bb53a7
commit fd01254e8f
7 changed files with 10 additions and 11 deletions

View file

@ -129,7 +129,7 @@ class FewoBookingController extends Controller
$perDayTotalPrice = $this->calculatePerDayTotalPrice($fewoBookingRequest, $price);
$fewoBookingRequest->setTotalPrice($totalPrice);
if($action == '/fewo-buchen')
if($action == '/buchen')
{
if ($request->getMethod() == 'POST' && $form->isValid())
@ -211,7 +211,7 @@ class FewoBookingController extends Controller
]);
}
elseif($action == '/fewo-berechne-gesamtpreis')
elseif($action == '/berechne-gesamtpreis')
{
return $this->render('default/components/booking/fewoSummary.html.twig', [
'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..').DIRECTORY_SEPARATOR,
@ -223,7 +223,7 @@ class FewoBookingController extends Controller
]);
}
throw new \Exception('Unknow FewoBookingController action: '. $action);
throw new \Exception('Unknown FewoBookingController action: '. $action);
}
public function calculatePrice(FewoBookingRequest $fewoBookingRequest, FewoLodging $fewoLodging, FewoPrice $fewoPrice)