... |
... |
@@ -474,9 +474,6 @@ class WeinanlieferungSlotAssistantController extends AbstractController
|
474 |
474 |
&& $intTime + $intDuration + $intBuffer < $checkslot['end']
|
475 |
475 |
)
|
476 |
476 |
) {
|
477 |
|
-// dump('Konflikt Start: ' . Date::parse(Date::getNumericDatimFormat(),$checkslot['start']));
|
478 |
|
-// dump('Konflikt Ende: ' . Date::parse(Date::getNumericDatimFormat(),$checkslot['end']));
|
479 |
|
-
|
480 |
477 |
$arrConflicts[] = $checkslot['end'];
|
481 |
478 |
}
|
482 |
479 |
}
|
... |
... |
@@ -487,7 +484,6 @@ class WeinanlieferungSlotAssistantController extends AbstractController
|
487 |
484 |
continue;
|
488 |
485 |
}
|
489 |
486 |
|
490 |
|
-// dump(Date::parse(Date::getNumericDatimFormat(),$intTime));
|
491 |
487 |
|
492 |
488 |
$NewDateTime = new Date($intTime);
|
493 |
489 |
$NewSlot = new WeinanlieferungSlotsModel();
|
... |
... |
@@ -496,7 +492,7 @@ class WeinanlieferungSlotAssistantController extends AbstractController
|
496 |
492 |
'tstamp' => $now,
|
497 |
493 |
'date' => $NewDateTime->dayBegin,
|
498 |
494 |
'time' => $intTime,
|
499 |
|
- 'duration' => $intDuration/3600,
|
|
495 |
+ 'duration' => $intDuration/60,
|
500 |
496 |
'behaelter' => $SlotType->containers,
|
501 |
497 |
'anmerkungen' => Input::post('annotation'),
|
502 |
498 |
'buchbar_ab' => (int) $intTime-intval(Input::post('bookableFrom'))*3600,
|
... |
... |
@@ -519,6 +515,6 @@ class WeinanlieferungSlotAssistantController extends AbstractController
|
519 |
515 |
}
|
520 |
516 |
|
521 |
517 |
Message::addConfirmation(sprintf('Es wurden %s neue Zeitslots angelegt.',$intNewSlots));
|
522 |
|
-// Backend::reload();
|
|
518 |
+ Backend::reload();
|
523 |
519 |
}
|
524 |
520 |
}
|