#1352 - bisheriger aktueller Stand, vor CalenderDayState
git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3354 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
1716662ac5
commit
a2d4159c88
10 changed files with 48 additions and 27 deletions
|
|
@ -548,8 +548,6 @@ class AdminController extends Controller
|
|||
*/
|
||||
public function adminFewoNewReservationWithStartingDayAction(Request $request, $lodgingId, $fromDate)
|
||||
{
|
||||
//todo price -> season
|
||||
//todo season.minimumStay
|
||||
$em = $this->getEntityManager();
|
||||
$fewoLodgingRepo = $em->getRepository('AppBundle:FewoLodging');
|
||||
$lodging = $fewoLodgingRepo->find($lodgingId);
|
||||
|
|
@ -608,6 +606,7 @@ class AdminController extends Controller
|
|||
$fewoReservationRepo = $em->getRepository('AppBundle:FewoReservation');
|
||||
$lodging = $fewoLodgingRepo->find($lodgingId);
|
||||
$reservation = $fewoReservationRepo->find($reservationId);
|
||||
$reservation->setType(1);
|
||||
$fromDate = $reservation->getFromDate()->format('d.m.Y');
|
||||
|
||||
$form = $this->createForm(FewoReservationType::class, $reservation, [
|
||||
|
|
@ -623,6 +622,7 @@ class AdminController extends Controller
|
|||
|
||||
if ($request->getMethod() == 'POST' && $form->isValid())
|
||||
{
|
||||
$reservation->setType(1); // 0 = Buchung; 1 = Händisch
|
||||
$em->flush();
|
||||
|
||||
return $this->redirect('/admin/fewo/lodgings/'.$lodgingId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue