<?php
namespace App\MDS\GreenPatioBundle\Controller;
use App\Entity\Client;
use App\Entity\ClientContact;
use App\Entity\Supplier;
use App\Entity\User;
use App\Entity\HtFile;
use App\MDS\AvexpressBundle\Entity\AveFiles;
use App\Entity\WidgetNotes;
use App\Form\WidgetNotesType;
use App\MDS\DevelupBundle\Entity\MdvTelegramUser;
use App\MDS\EventsBundle\Entity\Proposal;
use App\MDS\GreenPatioBundle\Entity\CvrReservationInvoice;
use App\MDS\GreenPatioBundle\Entity\CvrReservationInvoiceRec;
use App\MDS\GreenPatioBundle\Entity\ExternalUser;
use App\MDS\GreenPatioBundle\Entity\Reservation;
use App\MDS\GreenPatioBundle\Entity\ReservationDeposit;
use App\MDS\GreenPatioBundle\Entity\ReservationLounge;
use App\MDS\GreenPatioBundle\Entity\ReservationLoungeDescription;
use App\MDS\GreenPatioBundle\Entity\ReservationLoungeDetails;
use App\MDS\GreenPatioBundle\Entity\ReservationLoungePicture;
use App\MDS\GreenPatioBundle\Entity\ReservationLoungeProfile;
use App\MDS\GreenPatioBundle\Entity\ReservationLoungeSimple;
use App\MDS\GreenPatioBundle\Entity\ReservationLoungeVideo;
use App\MDS\GreenPatioBundle\Entity\ReservationMailAlertClient;
use App\MDS\GreenPatioBundle\Entity\ReservationPeriod;
use App\MDS\GreenPatioBundle\Entity\ReservationService;
use App\MDS\GreenPatioBundle\Entity\ReservationVisit;
use App\MDS\GreenPatioBundle\Entity\ReservationAlertStarted;
use App\MDS\GreenPatioBundle\Entity\ReservationAlertSecondDeposit;
use App\MDS\GreenPatioBundle\Entity\ReservationInvoice;
use App\MDS\GreenPatioBundle\Entity\ReservationInvoiceDepositItems;
use App\MDS\GreenPatioBundle\Entity\ReservationInvoiceItems;
use App\MDS\GreenPatioBundle\Entity\ReservationInvoiceRec;
use App\MDS\GreenPatioBundle\Entity\ReservationPaymentsClient;
use App\MDS\GreenPatioBundle\Form\ReservationLoungeDetailsType;
use App\MDS\GreenPatioBundle\Form\ReservationLoungeProfileType;
use App\MDS\GreenPatioBundle\Form\ReservationLoungeType;
use App\MDS\GreenPatioBundle\Form\ReservationPeriodType;
use App\MDS\GreenPatioBundle\Form\ReservationType;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\JsonResponse;
use Google_Client;
use Google_Service_Calendar;
use Psr\Log\LoggerInterface;
use DateTime;
use DatePeriod;
use DateInterval;
use Symfony\Contracts\Translation\TranslatorInterface;
use Doctrine\ORM\EntityManagerInterface;
class ReservationsController extends AbstractController
{
private $translator;
protected $googleCalendar;
public function __construct(TranslatorInterface $translator)
{
// $redirect_uri='urn:ietf:wg:oauth:2.0:oob';
$redirect_uri = 'https://' . $_SERVER['HTTP_HOST']. '/calendar/token';
$googleCalendar = new Google_Client();
$googleCalendar->setApplicationName('Google Calendar API PHP Quickstart');
//campos a extraer de la base de datos User
$googleCalendar->setClientId('2790497987-57qc3vu4pr7vb0s8phpub2me58pe34lb.apps.googleusercontent.com');
$googleCalendar->setClientSecret('nj2C7unaTO68DRhyORsyipSj');
//fin campos user
// $api_key = "AIzaSyBR84cS1IU2BPvk5V3VnbqdkJESlv440Ac";
// $client->setDeveloperKey($api_key);
$googleCalendar->setRedirectUri($redirect_uri);
$googleCalendar->addScope(Google_Service_Calendar::CALENDAR);
$guzzleClient = new \GuzzleHttp\Client(array('curl' => array(CURLOPT_SSL_VERIFYPEER => false)));
$googleCalendar->setHttpClient($guzzleClient);
$this->googleCalendar = $googleCalendar;
$this->translator = $translator;
}
/**
* @Route("/connectGoogle", name="homepage_Connect_Google")
*/
public function indexConnectGoogleAction(Request $request) {
$session = new Session();
$token=$session->get('tokenGoogleCalendar');
if (!is_null($token)) {
$this->googleCalendar->setAccessToken($token);
}
// If there is no previous token or it's expired.
$data=array();
if ($this->googleCalendar->isAccessTokenExpired()) {
// Refresh the token if possible, else fetch a new one.
if ($this->googleCalendar->getRefreshToken()) {
$this->googleCalendar->fetchAccessTokenWithRefreshToken($this->googleCalendar->getRefreshToken());
} else {
// Request authorization from the user.
$authUrl = $this->googleCalendar->createAuthUrl();
return $this->redirect($authUrl);
}
}
return $this->redirectToRoute('homepage');
}
/**
* @Route("/add", name="reservations_greenpatio_add")
*/
public function addReservationAction( Request $request)
{
return $this->redirectToRoute('reservations_greenpatio_add_simple');
}
/**
* @Route("/create", name="reservations_greenpatio_create")
*/
public function createAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
$reserva = new Reservation();
$form = $this->createReservationCreateForm($reserva);
$form->handleRequest($request);
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$hoy = new \DateTime("now", NULL);
// Fin: Verificamos la disponibilidad del horario de reserva
if($form->isValid())
{
$reserva->setUpdatedBy($user_id);
$reserva->setUpdatedAt($hoy);
// El proveedor de catering no es obligatorio
if (is_null($reserva->getCateringName())){
$reserva->setSupplier(null);
$reserva->setCateringName(null);
} else {
$reserva->setSupplier($reserva->getCateringName()->getId());
$reserva->setCateringName($reserva->getCateringName()->getName());
}
if (!empty($reserva->getClient())){
$reserva->setClient($reserva->getClient()->getId());
}
$reserva->setCreatedAt($hoy);
$reserva->setCreatedBy($user_id);
$reserva->setDateStart(new \DateTime('2078-01-01'));
$reserva->setDateEnd(new \DateTime('2000-01-01'));
if(is_null($reserva->getStatus())){$reserva->setStatus('Cotizado');}
if(is_null($reserva->getPriority()) or empty($reserva->getPriority()) or ($reserva->getPriority() == 'Auto')){
$reserva->setPriority(1);
} else {
// Se ha establecido una prioridad y todas las prioridades que coincidan con este evento deben ser alteradas
// PENDIENTE A HABLAR CON RAFA
}
// Buscamos la menor fecha de sala para el inicio y la mayor para determinar el fin del evento
$salas = $request->request->get('salas');
// crea una reserva sin sala. que fechas le pongo al evento
if (!is_null($salas)) {
foreach ($salas as $sala) {
if (sizeof($sala['mountingHourStart']) != 5){
// Necesitamos la hora en formato HH:mm
switch (strlen($sala['mountingHourStart'])) {
case 0:
// Vacio
$sala['mountingHourStart'] = '00:00';
break;
case 1:
// H -> 0H:00
if (is_numeric($sala['mountingHourStart'])){
$sala['mountingHourStart'] = '0'.$sala['mountingHourStart'].':00';
} else {
$sala['mountingHourStart'] = '00:00';
}
break;
case 2:
// HH -> HH:00
$sala['mountingHourStart'] = $sala['mountingHourStart'].':00';
break;
case 3:
// Hmm -> 0H:mm
$sala['mountingHourStart'] = '0'.$sala['mountingHourStart'];
break;
case 4:
// HHmm -> HH:mm
$sala['mountingHourStart'] = substr($sala['mountingHourStart'], 0, 2) . ':' . substr($sala['mountingHourStart'], 2, 2);
break;
default:
// XXXXyyy
$sala['mountingHourStart'] = '00:00';
break;
}
}
if (sizeof($sala['removalHourEnd']) != 5){
// Necesitamos la hora en formato HH:mm
switch (strlen($sala['removalHourEnd'])) {
case 0:
// Vacio
$sala['removalHourEnd'] = '00:00';
break;
case 1:
// H -> 0H:00
if (is_numeric($sala['removalHourEnd'])){
$sala['removalHourEnd'] = '0'.$sala['removalHourEnd'].':00';
} else {
$sala['removalHourEnd'] = '00:00';
}
break;
case 2:
// HH -> HH:00
$sala['removalHourEnd'] = $sala['removalHourEnd'].':00';
break;
case 3:
// Hmm -> 0H:mm
$sala['removalHourEnd'] = '0'.$sala['removalHourEnd'];
break;
case 4:
// HHmm -> HH:mm
$sala['removalHourEnd'] = substr($sala['removalHourEnd'], 0, 2) . ':' . substr($sala['removalHourEnd'], 2, 2);
break;
default:
// XXXXyyy
$sala['removalHourEnd'] = '00:00';
break;
}
}
// Verificamos el montaje
if ($reserva->getDateStart() > (new \DateTime($sala['mountingDate']))) {
$reserva->setDateStart((new \DateTime($sala['mountingDate']." ".$sala['mountingHourStart'])));
}
if ($reserva->getDateStart() > (new \DateTime($sala['dateStart']))) {
$reserva->setDateStart((new \DateTime($sala['dateStart']." ".$sala['hourStart'])));
}
if ($reserva->getDateEnd() < (new \DateTime($sala['dateEnd']))) {
$reserva->setDateEnd((new \DateTime($sala['dateEnd']." ".$sala['hourEnd'])));
}
//Verificamos el desmontaje
if ($reserva->getDateEnd() < (new \DateTime($sala['removalDate']))) {
$reserva->setDateEnd((new \DateTime($sala['removalDate']." ".$sala['removalHourEnd'])));
}
}
} else {
// No hay salas, se asigna a la reserva la fecha del dia actual
$reserva->setDateStart((new \DateTime()));
$reserva->setDateEnd((new \DateTime()));
}
// INICIO: se determina el numero de opcion o prioridad que tiene el evento
$salasTemp =$request->request->get('salas');
// Pendiente reunion con Rafa (se determina el numero de opcion o prioridad que tiene el evento)
// FIN: se determina el numero de opcion o prioridad que tiene el evento
try{
$em->persist($reserva);
$em->flush();
$event = 'The Reservation has been created.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
} else {
$errorMessagebase = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajetracingerror', $errorMessagebase);
$periods = $em->getRepository(ReservationPeriod::class)->findAll();
return $this->render('MDS/GreenPatioBundle/reservations/add-reservations.html.twig',
array(
'form' => $form->createView(),
'periods' => $periods,
)
);
}
/* Fin Gestión de eventos en Log */
$salas =$request->request->get('salas');
// Inicio: Verificamos que hayan metido bien las salas, toda sala para poder facturar debe tener IdLounge, Fecha de inicio y fecha de fin
for ($i=0; $i<sizeof($salas); $i++){
if (empty($salas[$i]['idLounge']) or empty($salas[$i]['dateStart']) or empty($salas[$i]['dateEnd'])){
unset($salas[$i]);
}
}
// Fin: Verificamos que hayan metido bien las salas, toda sala para poder facturar debe tener IdLounge, Fecha de inicio y fecha de fin
if (!is_null($reserva->getId())){
if (!is_null($salas)) {
foreach ($salas as $sala) {
// Se guarda una sala si hay una sala seleccionada
// IdLounge es el ID en la tabla reservation profile
if (!empty(($sala['idLounge']))) {
// consulto la tabla de precios para obtener el id de salon desde el id de precios
$queryProfile = $em->getRepository(ReservationLoungeProfile::class)->findOneById($sala['idLounge']);
$reservaLounge = new ReservationLounge();
$reservaLounge->setIdLounge($queryProfile->getLoungeId());
$reservaLounge->setLoungeName(($em->getRepository(ReservationLoungeDetails::class)->findOneById($queryProfile->getLoungeId()))->getName());
$reservaLounge->setCreatedAt($hoy);
$reservaLounge->setCreatedBy($user_id);
$reservaLounge->setUpdatedAt($hoy);
$reservaLounge->setUpdatedBy($user_id);
$reservaLounge->setIdReservation($reserva->getId());
$reservaLounge->setDateStart(new \DateTime($sala['dateStart']." ".$sala['hourStart']));
$reservaLounge->setDateEnd(new \DateTime($sala['dateEnd']." ".$sala['hourEnd']));
$reservaLounge->setHourStart(substr($sala['hourStart'], 0, 2));
$reservaLounge->setMinStart(substr($sala['hourStart'], 3, 2));
$reservaLounge->setHourEnd(substr($sala['hourEnd'], 0, 2));
$reservaLounge->setMinEnd(substr($sala['hourEnd'], 3, 2));
$reservaLounge->setServicePrice($sala['servicePrice']);
// el service name es la descripcion
$reservaLounge->setServiceName($sala['serviceName']);
$reservaLounge->setIdPeriod($sala['idLoungePrice']);
if (empty($sala['servicePax'])){$reservaLounge->setPax(null);} else {$reservaLounge->setPax($sala['servicePax']);}
$reservaLounge->setMounting($sala['serviceMounting']);
if (empty($sala['mountingPrice'])){$reservaLounge->setMountingPrice(0);} else {$reservaLounge->setMountingPrice($sala['mountingPrice']);}
$reservaLounge->setMountingLapse($sala['mountingLapse']);
switch (strlen($sala['mountingHourStart'])) {
case 0:
// Vacio
$reservaLounge->setMountingHourStart('00');
$reservaLounge->setMountingMinStart('00');
break;
case 1:
// H -> 0H:00
if (is_numeric($sala['mountingHourStart'])){
$reservaLounge->setMountingHourStart('0'.$sala['mountingHourStart']);
} else {
$reservaLounge->setMountingHourStart('00');
}
$reservaLounge->setMountingMinStart('00');
break;
case 2:
// HH -> HH:00
$reservaLounge->setMountingHourStart($sala['mountingHourStart']);
$reservaLounge->setMountingMinStart('00');
break;
case 3:
// Hmm -> 0H:mm
$reservaLounge->setMountingHourStart('0'.substr($sala['mountingHourStart'], 0, 1));
$reservaLounge->setMountingMinStart(substr($sala['mountingHourStart'], 1, 2));
break;
case 4:
// HHmm -> HH:mm
$reservaLounge->setMountingHourStart(substr($sala['mountingHourStart'], 0, 2));
$reservaLounge->setMountingMinStart(substr($sala['mountingHourStart'], 2, 2));
break;
case 5:
// HH:mm -> HH:mm
$reservaLounge->setMountingHourStart(substr($sala['mountingHourStart'], 0, 2));
$reservaLounge->setMountingMinStart(substr($sala['mountingHourStart'], 3, 2));
break;
default:
// XXXXyyy
$reservaLounge->setMountingHourStart('00');
$reservaLounge->setMountingMinStart('00');
break;
}
switch (strlen($sala['mountingHourEnd'])) {
case 0:
// Vacio
$reservaLounge->setMountingHourEnd('00');
$reservaLounge->setMountingMinEnd('00');
break;
case 1:
// H -> 0H:00
if (is_numeric($sala['mountingHourEnd'])){
$reservaLounge->setMountingHourEnd('0'.$sala['mountingHourEnd']);
} else {
$reservaLounge->setMountingHourEnd('00');
}
$reservaLounge->setMountingMinEnd('00');
break;
case 2:
// HH -> HH:00
$reservaLounge->setMountingHourEnd($sala['mountingHourEnd']);
$reservaLounge->setMountingMinEnd('00');
break;
case 3:
// Hmm -> 0H:mm
$reservaLounge->setMountingHourEnd('0'.substr($sala['mountingHourEnd'], 0, 1));
$reservaLounge->setMountingMinEnd(substr($sala['mountingHourEnd'], 1, 2));
break;
case 4:
// HHmm -> HH:mm
$reservaLounge->setMountingHourEnd(substr($sala['mountingHourEnd'], 0, 2));
$reservaLounge->setMountingMinEnd(substr($sala['mountingHourEnd'], 2, 2));
break;
case 5:
// HH:mm -> HH:mm
$reservaLounge->setMountingHourEnd(substr($sala['mountingHourEnd'], 0, 2));
$reservaLounge->setMountingMinEnd(substr($sala['mountingHourEnd'], 3, 2));
break;
default:
// XXXXyyy
$reservaLounge->setMountingHourEnd('00');
$reservaLounge->setMountingMinEnd('00');
break;
}
$reservaLounge->setMountingDate(new \DateTime($sala['mountingDate'].' '.$reservaLounge->getMountingHourStart().':'.$reservaLounge->getMountingMinStart()));
$reservaLounge->setRemovalLapse($sala['removalLapse']);
$reservaLounge->setRemovalDate(new \DateTime($sala['removalDate']));
switch (strlen($sala['removalHourStart'])) {
case 0:
// Vacio
$reservaLounge->setRemovalHourStart('00');
$reservaLounge->setRemovalMinStart('00');
break;
case 1:
// H -> 0H:00
if (is_numeric($sala['removalHourStart'])){
$reservaLounge->setRemovalHourStart('0'.$sala['removalHourStart']);
} else {
$reservaLounge->setRemovalHourStart('00');
}
$reservaLounge->setRemovalMinStart('00');
break;
case 2:
// HH -> HH:00
$reservaLounge->setRemovalHourStart($sala['removalHourStart']);
$reservaLounge->setRemovalMinStart('00');
break;
case 3:
// Hmm -> 0H:mm
$reservaLounge->setRemovalHourStart('0'.substr($sala['removalHourStart'], 0, 1));
$reservaLounge->setRemovalMinStart(substr($sala['removalHourStart'], 1, 2));
break;
case 4:
// HHmm -> HH:mm
$reservaLounge->setRemovalHourStart(substr($sala['removalHourStart'], 0, 2));
$reservaLounge->setRemovalMinStart(substr($sala['removalHourStart'], 2, 2));
break;
case 5:
// HH:mm -> HH:mm
$reservaLounge->setRemovalHourStart(substr($sala['removalHourStart'], 0, 2));
$reservaLounge->setRemovalMinStart(substr($sala['removalHourStart'], 3, 2));
break;
default:
// XXXXyyy
$reservaLounge->setRemovalHourStart('00');
$reservaLounge->setRemovalMinStart('00');
break;
}
switch (strlen($sala['removalHourEnd'])) {
case 0:
// Vacio
$reservaLounge->setRemovalHourEnd('00');
$reservaLounge->setRemovalMinEnd('00');
break;
case 1:
// H -> 0H:00
if (is_numeric($sala['removalHourEnd'])){
$reservaLounge->setRemovalHourEnd('0'.$sala['removalHourEnd']);
} else {
$reservaLounge->setRemovalHourEnd('00');
}
$reservaLounge->setRemovalMinEnd('00');
break;
case 2:
// HH -> HH:00
$reservaLounge->setRemovalHourEnd($sala['removalHourEnd']);
$reservaLounge->setRemovalMinEnd('00');
break;
case 3:
// Hmm -> 0H:mm
$reservaLounge->setRemovalHourEnd('0'.substr($sala['removalHourEnd'], 0, 1));
$reservaLounge->setRemovalMinEnd(substr($sala['removalHourEnd'], 1, 2));
break;
case 4:
// HHmm -> HH:mm
$reservaLounge->setRemovalHourEnd(substr($sala['removalHourEnd'], 0, 2));
$reservaLounge->setRemovalMinEnd(substr($sala['removalHourEnd'], 2, 2));
break;
case 5:
// HH:mm -> HH:mm
$reservaLounge->setRemovalHourEnd(substr($sala['removalHourEnd'], 0, 2));
$reservaLounge->setRemovalMinEnd(substr($sala['removalHourEnd'], 3, 2));
break;
default:
// XXXXyyy
$reservaLounge->setRemovalHourEnd('00');
$reservaLounge->setRemovalMinEnd('00');
break;
}
if (empty($sala['removalPrice'])){$reservaLounge->setRemovalPrice(0);} else {$reservaLounge->setRemovalPrice($sala['removalPrice']);}
// INICIO: Verificamos si choca con otra reserva
// Si sucede se usara el booleano OtherPriceSave para indicarlo
$resFun = $this->VerificarCoflictosEnSalas($reservaLounge);
$tempBool = $resFun['bool'];
if($tempBool){
$reservaLounge->setOtherPriceSave(true);
$reserva->setPriority($resFun['priority']);
// Se debe modificar la prioridad de la nueva reserva, que ya se habia guardado previamente
try {
$em->persist($reserva);
$em->flush();
} catch (\Exception $e) {
$event = 'Error al actualizar la prioridad del evento ' . $e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
} else {
$reservaLounge->setOtherPriceSave(false);
}
// FIN: Verificamos si choca con otra reserva
// INICIO: Si es necesario se actualizan fechas de inicio y fin usando dia de montaje y desmontaje
if (($reservaLounge->getMountingDate() < $reserva->getDateStart()) or ($reserva->getDateEnd() < $reservaLounge->getRemovalDate())){
if ($reservaLounge->getMountingDate() < $reserva->getDateStart()){
$reserva->setDateStart($reservaLounge->getMountingDate());
}
if ($reserva->getDateEnd() < $reservaLounge->getRemovalDate()){
$reserva->setDateEnd($reservaLounge->getRemovalDate());
}
try {
$em->persist($reserva);
$em->flush();
} catch (\Exception $e) {
$event = 'Error al actualizar fechas de inicio y fin, por montaje y desmontaje de sala: ' . $e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
}
// FIN: Si es necesario se actualizan fechas de inicio y fin usando dia de montaje y desmontaje
try {
$em->persist($reservaLounge);
$em->flush();
} catch (\Exception $e) {
$event = 'Al agregar la sala ha ocurrido un error: ' . $e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
}
}
// INICIO: Verificamos la prioridad
$numeroPriority = 1;
//INICIO: Buscamos las salas que coincidan en tiempo de reserva
foreach ($salas as $sala){
$newdateStar = $sala['dateStart'].' '.$sala['hourStart'];
$newdateEnd = $sala['dateEnd'].' '.$sala['hourEnd'];
$reservaProfile = $em->getRepository(ReservationLoungeProfile::class)->findOneById($sala['idLounge']);
$parameters = array(
'dateStar' => $newdateStar,
'dateEnd' => $newdateEnd,
'idLounge' => $reservaProfile->getLoungeId(),
'idRes' => $reserva->getId(),
);
$dql = 'SELECT i
FROM GreenPatioBundle:ReservationLounge i
WHERE (i.dateStart >= :dateStar
and i.dateStart <= :dateEnd
and i.idLounge = :idLounge
and i.idReservation != :idRes)
or
(i.dateStart <= :dateStar
and i.dateStart >= :dateEnd
and i.idLounge = :idLounge
and i.idReservation != :idRes)
';
$query = $em->createQuery($dql)->setParameters($parameters);
$reservationLounge = $query->getResult();
}
//FIN: Buscamos las salas que coincidan en tiempo de reserva
// INICIO: Buscamos el numero de opcion a asignar
$modificarPrior = false;
if (!empty($reservaLounge)){
foreach($reservationLounge as $resLoung){
$reservaClash = $em->getRepository(Reservation::class)->findOneById($resLoung->getIdReservation());
$tempPrior = $reservaClash->getPriority();
if ($numeroPriority <= $tempPrior){
// Ya tenemos una reserva con opcion de mayor relevancia (un numero de opción inferior)
$numeroPriority = $tempPrior +1;
$modificarPrior = true;
}
}
if ($modificarPrior){
// Se debe modificar la prioridad
$reserva->setPriority($numeroPriority);
try{
$em->persist($reserva);
$em->flush();
$event = 'The Reservation has been created.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
}
} else {
// El numero de opción asignada fue el correcto
}
// FIN: Buscamos el numero de opcion a asignar
// FIN: Verificamos la prioridad
}
} else {
$lounges = null; // Si fallo la reserva no habrá salas
}
return $this->redirectToRoute('reservations_greenpatio_index');
}
public function VerificarCoflictosEnSalas($nuevaSala)
{
$em = $this->getDoctrine()->getManager();
$allSalas = $em->getRepository(ReservationLounge::class)->findAll();
$tempBool = false; //Aun no se ha detectado un conflicto
$prioridad =1;
foreach ($allSalas as $sala){
if ($sala->getIdReservation()== $nuevaSala->getIdReservation()){
// No hay conflicto son de la misma reserva
$tempBool = ($tempBool or false);
} else {
if (!($sala->getIdLounge() == $nuevaSala->getIdLounge())) {
// No hay conflicto no son la misma sala
$tempBool = ($tempBool or false);
} else {
// Caso 1: F. inicio de $nuevaSala entre las feachas de $sala
if (($nuevaSala->getDateStart()>$sala->getDateStart()) and ($nuevaSala->getDateStart()<$sala->getDateEnd())){
$tempBool = true;
// Buscamos la prioridad que tiene el evento de la sala que colisiona para determinar la nueva prioridad del evento que se está creando
$resTemp = $em->getRepository(Reservation::class)->findOneById($sala->getIdReservation());
if (($prioridad < $resTemp->getPriority()) or ($prioridad == $resTemp->getPriority())){
$prioridad = $resTemp->getPriority() +1;
}
}
// Caso 2: F. fin de $nuevaSala entre las feachas de $sala
if (($nuevaSala->getDateEnd()>$sala->getDateStart()) and ($nuevaSala->getDateEnd()<$sala->getDateEnd())){
$tempBool = true;
// Buscamos la prioridad que tiene el evento de la sala que colisiona para determinar la nueva prioridad del evento que se está creando
$resTemp = $em->getRepository(Reservation::class)->findOneById($sala->getIdReservation());
if (($prioridad <= $resTemp->getPriority()) or ($prioridad == $resTemp->getPriority())){
$prioridad = $resTemp->getPriority() +1;
}
}
// Caso 3: F. inicio de $sala entre las feachas de $nuevaSala
if (($sala->getDateStart()>$nuevaSala->getDateStart()) and ($sala->getDateStart()<$nuevaSala->getDateEnd())){
$tempBool = true;
// Buscamos la prioridad que tiene el evento de la sala que colisiona para determinar la nueva prioridad del evento que se está creando
$resTemp = $em->getRepository(Reservation::class)->findOneById($sala->getIdReservation());
if (($prioridad <= $resTemp->getPriority()) or ($prioridad == $resTemp->getPriority())){
$prioridad = $resTemp->getPriority() +1;
}
}
// Caso 4: F. fin de $sala entre las feachas de $nuevaSala
if (($sala->getDateEnd()>$nuevaSala->getDateStart()) and ($sala->getDateEnd()<$nuevaSala->getDateEnd())){
$tempBool = true;
// Buscamos la prioridad que tiene el evento de la sala que colisiona para determinar la nueva prioridad del evento que se está creando
$resTemp = $em->getRepository(Reservation::class)->findOneById($sala->getIdReservation());
if (($prioridad <= $resTemp->getPriority()) or ($prioridad == $resTemp->getPriority())){
$prioridad = $resTemp->getPriority() +1;
}
}
// Caso 5: fechas iguales
if (($nuevaSala->getDateStart()==$sala->getDateStart()) or
($nuevaSala->getDateStart()==$sala->getDateEnd()) or
($nuevaSala->getDateEnd()==$sala->getDateStart()) or
($nuevaSala->getDateEnd()==$sala->getDateEnd())) {
$tempBool = true;
}
}
}
}
$res = array('bool' => $tempBool,'priority' => $prioridad);
return ($res);
}
public function CalculoPrioridad($reserva)
{
$em = $this->getDoctrine()->getManager();
$listAllReservas = $em->getRepository(Reservation::class)->findAll();
// logico para controlar el conflicto entre salas
$logSalasError = false;
// valor original de la prioridad
$oldPriority = $reserva->getPriority();
foreach ($listAllReservas as $resv)
{
$reservaSala = explode(",", $reserva->getSalas()); // Arreglo de salas para agregar
$resSala = explode(",", $resv->getSalas()); // Arreglo de salas que ya estan en
foreach ($reservaSala as $item){
if (in_array($item, $resSala)){
$logSalasError = ($logSalasError or true); // Este logico indica si hay conflicto entre las salas
}
}
if ((($reserva->getDateStart()==$resv->getDateStart()) or ($reserva->getDateStart() < $resv->getDateStart())) and
($resv->getDateStart() < $reserva->getDateEnd()) and ($resv->getStatus()=='Confirmed')) {
if ($resv->getPriority() == $reserva->getPriority()){
$reserva->setPriority($reserva->getPriority()-1);
} else {
if ($resv->getPriority() < $reserva->getPriority()){
$reserva->setPriority($resv->getPriority()-1);
} else {
// ($resv->getPriority() > $reserva->getPriority())
// No se debe cambiar la prioridad ya que esta por debajo de la reserva ya creada
}
}
}
if ((($resv->getDateStart()==$reserva->getDateStart()) or ($resv->getDateStart() < $reserva->getDateStart())) and
($reserva->getDateEnd() < $resv->getDateEnd()) and ($resv->getStatus()=='Confirmed')) {
if ($resv->getPriority() == $reserva->getPriority()){
$reserva->setPriority($reserva->getPriority()-1);
} else {
if ($resv->getPriority() < $reserva->getPriority()){
$reserva->setPriority($resv->getPriority()-1);
} else {
// ($resv->getPriority() > $reserva->getPriority())
// No se debe cambiar la prioridad ya que esta por debajo de la reserva ya creada
}
}
}
if ((($reserva->getDateStart()==$resv->getDateStart()) or ($reserva->getDateStart() < $resv->getDateStart())) and
(($resv->getDateEnd()==$reserva->getDateEnd()) or ($resv->getDateEnd() < $reserva->getDateEnd())) and
($resv->getStatus()=='Confirmed')) {
if ($resv->getPriority() == $reserva->getPriority()){
$reserva->setPriority($reserva->getPriority()-1);
} else {
if ($resv->getPriority() < $reserva->getPriority()){
$reserva->setPriority($resv->getPriority()-1);
} else {
// ($resv->getPriority() > $reserva->getPriority())
// No se debe cambiar la prioridad ya que esta por debajo de la reserva ya creada
}
}
}
if ((($resv->getDateStart()==$reserva->getDateStart()) or ($resv->getDateStart()<$reserva->getDateStart())) and
(($resv->getDateEnd()==$reserva->getDateEnd()) or ($resv->getDateEnd()<$reserva->getDateEnd())) and
($resv->getStatus()=='Confirmed')) {
if ($resv->getPriority() == $reserva->getPriority()){
$reserva->setPriority($reserva->getPriority()-1);
} else {
if ($resv->getPriority() < $reserva->getPriority()){
$reserva->setPriority($resv->getPriority()-1);
} else {
// ($resv->getPriority() > $reserva->getPriority())
// No se debe cambiar la prioridad ya que esta por debajo de la reserva ya creada
}
}
}
}
$priority = $reserva->getPriority();
$reserva->setPriority($oldPriority); // Se restablece el valor de origen de la prioridad
$data = array(
'prioridad' => $priority
);
return $data;
}
public function NombreSalasPrecios()
{
$em = $this->getDoctrine()->getManager();
$reservaLoungeDetails = $em->getRepository(ReservationLoungeDetails::class)->findAll();
$data = array();
foreach ($reservaLoungeDetails as $res){
if (!empty($data['salas'])) {
$data['salas'] = $data['salas'] . ',' . $res->getName();
} else {
$data['salas'] = $res->getName();
}
}
$dataArray = array('-1');
foreach ($reservaLoungeDetails as $res){
array_push($dataArray,array($res->getId(), $res->getName()));
}
unset($dataArray[0]);
$data['arraySalas'] = $dataArray;
// $reservaGpPrice = $em->getRepository('GreenPatioBundle:ReservationGpPrice')->findAll();
$parameters = array();
$dql = 'SELECT p
FROM GreenPatioBundle:ReservationGpPrice p
ORDER BY p.idService ASC ';
$query = $em->createQuery($dql)->setParameters($parameters);
$reservaGpPrice = $query->getResult();
foreach ($reservaGpPrice as $res){
if (!empty($data['precios'])) {
$data['precios'] = $data['precios'] . ',' . $res->getNameAndPrice();
} else {
$data['precios'] = $res->getNameAndPrice();
}
}
$dataArray = array('-1');
foreach ($reservaGpPrice as $res){
array_push($dataArray,array($res->getIdService(), $res->getNameAndPrice()));
}
unset($dataArray[0]);
$data['arrayPrecios'] = $dataArray;
return $data;
}
private function CalculosTotalesEdit($id)
{
$em = $this->getDoctrine()->getManager();
$reservaLounges = $em->getRepository(ReservationLounge::class)->findByIdReservation($id);
$reservaServices = $em->getRepository(ReservationService::class)->findByReservationId($id);
$data_iva = array(
'iva' => 21,
'ivaMontoVeintiUno' => 0,
'ivaMontoDiez' => 0,
'ivaMontoCero' => 0,
);
$lounge = array(
'neto' => 0,
'sumSubT' => 0,
); // Acumula sumatoria de netos y sumantoria de subtotales
$service = array(
'neto' => 0,
'sumSubT' => 0,
); // Acumula sumatoria de netos y sumantoria de subtotales
$totales_neto_all = 0;
foreach ($reservaLounges as $item){
if (is_null($item->getServicePrice()) or empty($item->getServicePrice())){
$subtotal = 0;
$neto = 0;
$subnetoMounting = 0;
$subtotalLounge = 0;
$subnetoRemoval = 0;
} else {
if (!empty($item->getMountingPrice()) and ($item->getMountingPrice() != 0 )){
$subtotalMounting = $item->getMountingPrice() * 1.21;
$subnetoMounting = $item->getMountingPrice();
} else {
$subtotalMounting = 0;
$subnetoMounting = 0;
}
$subtotalLounge = $item->getServicePrice() * 1.21;
$subneto = $item->getServicePrice();
if (!empty($item->getRemovalPrice()) and ($item->getRemovalPrice() != 0 )){
$subtotalRemoval = $item->getRemovalPrice() * 1.21;
$subnetoRemoval = $item->getRemovalPrice();
} else {
$subtotalRemoval = 0;
$subnetoRemoval = 0;
}
$subtotal = $subtotalMounting + $subtotalLounge + $subtotalRemoval;
$neto = $subnetoMounting + $subneto + $subnetoRemoval;
// Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP),
$subtotal = round($subtotal,2,PHP_ROUND_HALF_UP);
$neto = round($neto,2,PHP_ROUND_HALF_UP);
}
// Acumula netos totales e IVA
$totales_neto_all = $totales_neto_all + $neto;
$data_iva['ivaMontoVeintiUno'] = $data_iva['ivaMontoVeintiUno'] + ($neto * 0.21);
// Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
$totales_neto_all = round($totales_neto_all,2,PHP_ROUND_HALF_UP);
$data_iva['ivaMontoVeintiUno'] = round($data_iva['ivaMontoVeintiUno'],2,PHP_ROUND_HALF_UP);
// Acumula netos totales e IVA
$lounge['neto'] = $lounge['neto'] + $neto;
$lounge['sumSubT'] = $lounge['sumSubT'] + $subtotal;
// // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
$lounge['neto'] = round($lounge['neto'],2,PHP_ROUND_HALF_UP);
$lounge['sumSubT'] = round($lounge['sumSubT'],2,PHP_ROUND_HALF_UP);
}
foreach ($reservaServices as $item){
if (is_null($item->getPrice()) or empty($item->getPrice())){
$subtotal = 0;
$neto = 0;
$subtotalService = 0;
} else {
$subtotalService = $item->getPrice();
$subneto = $item->getPrice();
// Commission
if ($item->getOpCommission()=='1'){
$subtotalService = $subtotalService * (1 + ($item->getCommission()/100));
$subneto = $subneto * (1 + ($item->getCommission()/100));
} else {
$subtotalService = $subtotalService * (1 - ($item->getCommission()/100));
$subneto = $subneto * (1 - ($item->getCommission()/100));
}
// Over
if ($item->getOpOver()=='1'){
$subtotalService = $subtotalService + $item->getOver();
$subneto = $subneto + $item->getOver();
} else {
$subtotalService = $subtotalService - $item->getOver();
$subneto = $subneto - $item->getOver();
}
// IVA
if ($item->getOpIva()=='1'){
$subtotalService = $subtotalService * (1 + ($item->getIva()/100));
} else {
$subtotalService = $item->getPrice();
$subneto = ($subneto * 100) / (100 + $item->getIva());
}
switch ($item->getServiceCatId()){
case 1: // Alojamiento
// el numero de noches $numNoches; precio unitario $subneto
$numNoches = (($item->getDateOutAt())->diff($item->getDateInAt()))->days;
// La personas no afectan este calculo
$subtotal = $subtotalService * $numNoches * $item->getUnits();
$subnetoUnit = $subneto;
$subneto = $subneto * $numNoches * $item->getUnits();
break;
case 2: //Actividades
// El número de personas es considerado en el calculo
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$subtotal = $subtotalService * $days * $item->getUnits();
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $item->getUnits();
break;
case 3: // AV
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 4: //Creative
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 5: //Cruise
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 6: //Entertaiment
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 7: // Gifts
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
// $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
$days = 1;
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 8: //Guide
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 9: //Itineraries
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 10: //Lounge -- No Aplica
break;
case 11: //Menu
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 12: //Others
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 13: //Transport
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 14: //Technology
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
// $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
$days = 1;
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 15: //Assisstant
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 16: //DDR
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
default:
$pax = $item->getPax();
if (empty($pax) or $pax == "0") { $pax = 1; }
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") { $unitsServ = 1; }
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
}
// Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP),
$subtotal = round($subtotal,2,PHP_ROUND_HALF_UP);
$neto = round($subneto,2,PHP_ROUND_HALF_UP);
}
switch ($item->getIva()){
// Acumula IVA
case 21:
$data_iva['ivaMontoVeintiUno'] = $data_iva['ivaMontoVeintiUno'] + ($neto * ($item->getIva()/100));
break;
case 10:
$data_iva['ivaMontoDiez'] = $data_iva['ivaMontoDiez'] + ($neto * ($item->getIva()/100));
break;
case 0:
break;
default:
break;
}
$totales_neto_all = $totales_neto_all + $neto;
// Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
$totales_neto_all = round($totales_neto_all,2,PHP_ROUND_HALF_UP);
$data_iva['ivaMontoVeintiUno'] = round($data_iva['ivaMontoVeintiUno'],2,PHP_ROUND_HALF_UP);
$data_iva['ivaMontoDiez'] = round($data_iva['ivaMontoDiez'],2,PHP_ROUND_HALF_UP);
// Acumula netos totales e IVA
$service['neto'] = $service['neto'] + $neto;
$service['sumSubT'] = $service['sumSubT'] + $subtotal;
// Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
$service['neto'] = round($service['neto'],2,PHP_ROUND_HALF_UP);
$service['sumSubT'] = round($service['sumSubT'],2,PHP_ROUND_HALF_UP);
// $i++;
}
$data = array(
'totales_global_con_iva' => $lounge['sumSubT'],
'totales_global_iva' => $lounge['sumSubT'] - $lounge['neto'],
'totales_global_neto' => $lounge['neto'],
'totales_global_servicios_neto' => $service['neto'],
'totales_global_servicios_con_iva' => $service['sumSubT'],
'totales_global_servicios_iva' => $service['sumSubT'] - $service['neto'],
'sumatoria_totales_global_con_iva' => $lounge['sumSubT'] + $service['sumSubT'],
'sumatoria_totales_global_neto' => $lounge['neto'] + $service['neto'],
'sumatoria_totales_global_iva' => $lounge['sumSubT'] + $service['sumSubT'] - $lounge['neto'] - $service['neto'],
);
return $data;
}
private function CalculosTotalesEditSimple($id)
{
$em = $this->getDoctrine()->getManager();
$reservaLounges = $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($id);
$reservaServices = $em->getRepository(ReservationService::class)->findByReservationId($id);
$data_iva = array(
'iva' => 21,
'ivaMontoVeintiUno' => 0,
'ivaMontoDiez' => 0,
'ivaMontoCero' => 0,
);
$lounge = array(
'neto' => 0,
'sumSubT' => 0,
); // Acumula sumatoria de netos y sumantoria de subtotales
$service = array(
'neto' => 0,
'sumSubT' => 0,
); // Acumula sumatoria de netos y sumantoria de subtotales
$totales_neto_all = 0;
foreach ($reservaLounges as $item){
if (is_null($item->getServicePrice()) or empty($item->getServicePrice())){
$subtotal = 0;
$neto = 0;
$subnetoMounting = 0;
$subtotalLounge = 0;
$subnetoRemoval = 0;
} else {
// if (!empty($item->getMountingPrice()) and ($item->getMountingPrice() != 0 )){
// $subtotalMounting = $item->getMountingPrice() * 1.21;
// $subnetoMounting = $item->getMountingPrice();
// } else {
// $subtotalMounting = 0;
// $subnetoMounting = 0;
// }
$subtotalLounge = $item->getServicePrice() * 1.21;
$subneto = $item->getServicePrice();
// if (!empty($item->getRemovalPrice()) and ($item->getRemovalPrice() != 0 )){
// $subtotalRemoval = $item->getRemovalPrice() * 1.21;
// $subnetoRemoval = $item->getRemovalPrice();
// } else {
// $subtotalRemoval = 0;
// $subnetoRemoval = 0;
// }
$subtotal = $subtotalLounge;
$neto = $subneto;
// Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP),
$subtotal = round($subtotal,2,PHP_ROUND_HALF_UP);
$neto = round($neto,2,PHP_ROUND_HALF_UP);
}
// Acumula netos totales e IVA
$totales_neto_all = $totales_neto_all + $neto;
$data_iva['ivaMontoVeintiUno'] = $data_iva['ivaMontoVeintiUno'] + ($neto * 0.21);
// Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
$totales_neto_all = round($totales_neto_all,2,PHP_ROUND_HALF_UP);
$data_iva['ivaMontoVeintiUno'] = round($data_iva['ivaMontoVeintiUno'],2,PHP_ROUND_HALF_UP);
// Acumula netos totales e IVA
$lounge['neto'] = $lounge['neto'] + $neto;
$lounge['sumSubT'] = $lounge['sumSubT'] + $subtotal;
// // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
$lounge['neto'] = round($lounge['neto'],2,PHP_ROUND_HALF_UP);
$lounge['sumSubT'] = round($lounge['sumSubT'],2,PHP_ROUND_HALF_UP);
}
foreach ($reservaServices as $item){
$subtotal = 0;
$neto = 0;
$subtotalService = 0;
if (!is_null($item->getPrice()) and !empty($item->getPrice())){
$subtotalService = $item->getPrice();
$subneto = $item->getPrice();
// Commission
if ($item->getOpCommission()=='1'){
$subtotalService = (float)$subtotalService * (1 + ((float)$item->getCommission()/100));
$subneto = (float)$subneto * (1 + ($item->getCommission()/100));
} else {
$subtotalService = (float)$subtotalService * (1 - ((float)$item->getCommission()/100));
$subneto = (float)$subneto * (1 - ($item->getCommission()/100));
}
// Over
if ($item->getOpOver()=='1'){
$subtotalService = $subtotalService + $item->getOver();
$subneto = $subneto + $item->getOver();
} else {
$subtotalService = $subtotalService - $item->getOver();
$subneto = $subneto - $item->getOver();
}
// IVA
if ($item->getOpIva()=='1'){
$subtotalService = $subtotalService * (1 + ($item->getIva()/100));
} else {
$subtotalService = $item->getPrice();
$subneto = ($subneto * 100) / (100 + $item->getIva());
}
switch ($item->getServiceCatId()){
case 1: // Alojamiento
// el numero de noches $numNoches; precio unitario $subneto
$numNoches = (($item->getDateOutAt())->diff($item->getDateInAt()))->days;
// La personas no afectan este calculo
$subtotal = $subtotalService * $numNoches * $item->getUnits();
$subnetoUnit = $subneto;
$subneto = $subneto * $numNoches * $item->getUnits();
break;
case 2: //Actividades
// El número de personas es considerado en el calculo
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$subtotal = $subtotalService * $days * $item->getUnits();
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $item->getUnits();
break;
case 3: // AV
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 4: //Creative
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 5: //Cruise
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 6: //Entertaiment
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 7: // Gifts
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
// $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
$days = 1;
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 8: //Guide
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 9: //Itineraries
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 10: //Lounge -- No Aplica
// $pax = $item->getPax();
// if (empty($pax) or $pax == "0") {
// $pax = 1;
// }
//
// $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
// if ($days > 1){
// $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
// } else {
// $dateServ = ($item->getDateInAt())->format('d/m/Y');
// }
//
// $unitsServ = $item->getUnits();
// if (empty($unitsServ) or $unitsServ == "0") {
// $unitsServ = 1;
// }
//
// $subtotal = $subtotalService * $days * $unitsServ * $pax;
// $subnetoUnit = $subneto;
// $subneto = $subneto * $days * $unitsServ * $pax;
//
// $data_supplier['service'][$i] = array (
// 'id' => $item->getId(),
// 'serviceCatId' => $item->getServiceCatId(),
// 'serviceName' => $item->getName(),
// 'serviceType' => 'Itinerarios',
// 'date' => $dateServ,
// 'qty' => $unitsServ,
// 'iva' => $item->getIva(),
// 'pax' => $item->getPax(),
// 'precioUnit' => $subnetoUnit,
// 'subneto' => $subneto,
// 'subtotal' => $subtotal,
// );
break;
case 11: //Menu
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 12: //Others
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 13: //Transport
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 14: //Technology
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = 1;
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 15: //Assisstant
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
case 16: //DDR
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
if ($days > 1){
$dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
} else {
$dateServ = ($item->getDateInAt())->format('d/m/Y');
}
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
default:
$pax = $item->getPax();
if (empty($pax) or $pax == "0") {
$pax = 1;
}
$days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
$unitsServ = $item->getUnits();
if (empty($unitsServ) or $unitsServ == "0") {
$unitsServ = 1;
}
$subtotal = $subtotalService * $days * $unitsServ * $pax;
$subnetoUnit = $subneto;
$subneto = $subneto * $days * $unitsServ * $pax;
break;
}
// Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP),
$subtotal = round($subtotal,2,PHP_ROUND_HALF_UP);
$neto = round($subneto,2,PHP_ROUND_HALF_UP);
}
switch ($item->getIva()){
// Acumula IVA
case 21:
$data_iva['ivaMontoVeintiUno'] = $data_iva['ivaMontoVeintiUno'] + ($neto * ($item->getIva()/100));
break;
case 10:
$data_iva['ivaMontoDiez'] = $data_iva['ivaMontoDiez'] + ($neto * ($item->getIva()/100));
break;
case 0:
break;
default:
break;
}
$totales_neto_all = $totales_neto_all + $neto;
// Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
$totales_neto_all = round($totales_neto_all,2,PHP_ROUND_HALF_UP);
$data_iva['ivaMontoVeintiUno'] = round($data_iva['ivaMontoVeintiUno'],2,PHP_ROUND_HALF_UP);
$data_iva['ivaMontoDiez'] = round($data_iva['ivaMontoDiez'],2,PHP_ROUND_HALF_UP);
// Acumula netos totales e IVA
$service['neto'] = $service['neto'] + $neto;
$service['sumSubT'] = $service['sumSubT'] + $subtotal;
// Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
$service['neto'] = round($service['neto'],2,PHP_ROUND_HALF_UP);
$service['sumSubT'] = round($service['sumSubT'],2,PHP_ROUND_HALF_UP);
}
$data = array(
'totales_global_con_iva' => $lounge['sumSubT'],
'totales_global_iva' => $lounge['sumSubT'] - $lounge['neto'],
'totales_global_neto' => $lounge['neto'],
'totales_global_servicios_neto' => $service['neto'],
'totales_global_servicios_con_iva' => $service['sumSubT'],
'totales_global_servicios_iva' => $service['sumSubT'] - $service['neto'],
'sumatoria_totales_global_con_iva' => $lounge['sumSubT'] + $service['sumSubT'],
'sumatoria_totales_global_neto' => $lounge['neto'] + $service['neto'],
'sumatoria_totales_global_iva' => $lounge['sumSubT'] + $service['sumSubT'] - $lounge['neto'] - $service['neto'],
);
return $data;
}
/**
* @Route("/", name="reservations_greenpatio")
*/
public function calendarReservationAction(Request $request) {
// Enviar correos a los agentes de las reservas que se deban Cotizar
$this->notificacionReservasPorCotizar();
// Enviar correos a los agentes de las reservas que tienen depositos pendientes por recibir
$this->notificacionReservasPendientesDelSegundoDeposito();
$session = new Session();
$token=$session->get('tokenGoogleCalendar');
if (!is_null($token)) {
$this->googleCalendar->setAccessToken($token);
$connectGoogle = "1";
}else{
$connectGoogle = "0";
}
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
// $user_userrol = $user_logueado->getUserrol();
$user_id = $user_logueado->getId();
$wnotes = new WidgetNotes();
$wnotes->setDateAt(new \DateTime("now"));
$form = $this->createWidgetNotesCreateForm($wnotes);
return $this->render('MDS/GreenPatioBundle/reservations/calendar-reservations.html.twig',
array(
// 'tracking' => $commercial_tracking,
// 'alertTodo' => $alertTodo,
// 'notes' => $notes,
'form' => $form->createView(),
'user'=> $user_id,
'connectGoogle' => $connectGoogle,
// 'token' => $user_logueado->getAccessKey(),
)
);
}
private function createWidgetNotesCreateForm(WidgetNotes $entity)
{
$form = $this->createForm(WidgetNotesType::class, $entity, array(
'action' => $this->generateUrl('widget_notes_calendar_create'),
'method' => 'POST'
));
return $form;
}
private function createWidgetNotesEditForm(WidgetNotes $entity, $id)
{
$form = $this->createForm(WidgetNotesType::class, $entity, array(
'action' => $this->generateUrl('widget_notes_edit',
array(
'id' => $id
)),
'method' => 'PUT'
));
return $form;
}
/**
* @Route("/widget/notes/calendar/create/", name="widget_notes_calendar_create")
*/
public function addNotesAction(Request $request, LoggerInterface $logger)
{
$em = $this->getDoctrine()->getManager();
$notes = $em->getRepository(WidgetNotes::class)->findAll();
$wnotes = new WidgetNotes();
$form = $this->createWidgetNotesCreateForm($wnotes);
$form->handleRequest($request);
$forAgent = $form->get('forAgent')->getData();
if(!is_null($forAgent)){
$wnotes->setForAgent($forAgent->getId());
}
if($form->isValid())
{
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$wnotes->setCreatedId($user_id);
$wnotes->setUpdatedId($user_id);
/* Gestión de eventos en Log */
$user_lastname = $user_logueado->getLastname();
$user_name = $user_logueado->getName();
$user_email = $user_logueado->getEmail();
$user_rol = $user_logueado->getRoles();
$event_url = $request->getPathInfo();
$event_complete = $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
try{
$em->persist($wnotes);
$em->flush();
$event = 'The Note has been created succesfully.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensaje', $successMessage);
$logger->info($event_complete.' | '.$event);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el log */
$logger->error($event_complete.' | '.$event);
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajeerror', $errorMessage);
}
/* Fin Gestión de eventos en Log */
}else{
$errorMessage = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajeerror', $errorMessage);
}
return $this->redirectToRoute('homepage');
}
/**
* @Route("/list/{idgroup}", defaults={"idgroup" = 0}, name="reservations_greenpatio_index")
*/
public function indexAction($idgroup, Request $request) {
$em = $this->getDoctrine()->getManager();
$parameters = array(
'statusdel' => 'Deleted'
);
$dql = 'SELECT i
FROM GreenPatioBundle:Reservation i
WHERE i.status <> :statusdel
ORDER BY i.dateStart ASC';
$query = $em->createQuery($dql)->setParameters($parameters);
$ref = array();
$reservas = $query->getResult();
$reservasZero = array();
foreach ($reservas as $res){
$client = $em->getRepository(Client::class)->findOneById($res->getClient());
if (!empty($client)){
$res->setClient($client->getName());
} else {
$res->setClient(null);
}
$res->setCreatedBy(
($em->getRepository(User::class)->findOneById($res->getCreatedBy()))->getName() . ' '.
($em->getRepository(User::class)->findOneById($res->getCreatedBy()))->getLastName());
$ref[$res->getId()] = '#'.($res->getDateStart())->format('ymd').($res->getDateEnd())->format('ymd');
switch ($res->getStatus()){
case 'Bloqueo': $res->setStatus('BLOQUEO'); break;
case 'Confirmed': $res->setStatus('CONFIRMADO'); break;
case 'Invoiced': $res->setStatus('FACTURADO'); break;
case 'Cotizado': $res->setStatus('COTIZADO'); break;
case 'Deleted': $res->setStatus('CANCELADO'); break;
default: $res->setStatus('INICIADO'); break;
}
$reservasZero[] = array(
'dateStart' => $res->getDateStart(),
'dateEnd' => $res->getDateEnd(),
'id' => $res->getId(),
'title' => $res->getTitle(),
'client' => $res->getClient(),
'createdBy' => $res->getCreatedBy(),
'ref' => $ref[$res->getId()],
'status' => $res->getStatus(),
);
}
$reservas = $reservasZero;
return $this->render('MDS/GreenPatioBundle/reservations/list-reservations.html.twig',
array(
'groups' => null,
'titleView' => '',
'reservations' => $reservas
)
);
}
/**
* @Route("/listcanceled/{idgroup}", defaults={"idgroup" = 0}, name="reservations_canceled")
*/
public function indexCanceledAction($idgroup, Request $request) {
$em = $this->getDoctrine()->getManager();
$parameters = array(
'status' => 'Deleted'
);
$dql = 'SELECT i
FROM GreenPatioBundle:Reservation i
WHERE i.status = :status
ORDER BY i.dateStart ASC';
$query = $em->createQuery($dql)->setParameters($parameters);
$ref = array();
$reservas = $query->getResult();
foreach ($reservas as $res){
$client = $em->getRepository(Client::class)->findOneById($res->getClient());
if (!empty($client)){
$res->setClient($client->getName());
} else {
$res->setClient(null);
}
$res->setCreatedBy(
($em->getRepository(User::class)->findOneById($res->getCreatedBy()))->getName() . ' '.
($em->getRepository(User::class)->findOneById($res->getCreatedBy()))->getLastName());
$ref[$res->getId()] = '#'.($res->getDateStart())->format('ymd').($res->getDateEnd())->format('ymd');
}
// for ($i = 0; $i<sizeof($reservas);$i++){
// if ($reservas[$i]->getStatus() == "Deleted"){
// unset($reservas[$i]);
// }
// }
$reservasZero = array();
foreach ($reservas as $res){
$reservasZero[] = array(
'dateStart' => $res->getDateStart(),
'dateEnd' => $res->getDateEnd(),
'id' => $res->getId(),
'title' => $res->getTitle(),
'client' => $res->getClient(),
'createdBy' => $res->getCreatedBy(),
'ref' => $ref[$res->getId()],
'status' => $res->getStatus(),
);
}
$reservas = $reservasZero;
return $this->render('MDS/GreenPatioBundle/reservations/list-reservations.html.twig',
array(
'groups' => null,
'titleView' => ' Canceladas',
'reservations' => $reservas
)
);
}
/**
* @Route("/listquoted/{idgroup}", defaults={"idgroup" = 0}, name="reservations_quoted")
*/
public function indexQuotedAction($idgroup, Request $request) {
$em = $this->getDoctrine()->getManager();
$parameters = array(
'status' => 'Cotizado'
);
$dql = 'SELECT i
FROM GreenPatioBundle:Reservation i
WHERE i.status = :status
ORDER BY i.createdAt ASC';
$query = $em->createQuery($dql)->setParameters($parameters);
$ref = array();
$reservas = $query->getResult();
foreach ($reservas as $res){
$client = $em->getRepository(Client::class)->findOneById($res->getClient());
if (!empty($client)){
$res->setClient($client->getName());
} else {
$res->setClient(null);
}
$res->setCreatedBy(
($em->getRepository(User::class)->findOneById($res->getCreatedBy()))->getName() . ' '.
($em->getRepository(User::class)->findOneById($res->getCreatedBy()))->getLastName());
// $ref[$res->getId()] = '#'.($res->getDateStart())->format('ymd').($res->getDateEnd())->format('ymd');
$ref[$res->getId()] = '#'.($res->getCreatedAt())->format('ymdHi');
}
$reservasZero = array();
foreach ($reservas as $res){
$data = $this->CalculosTotalesEditSimple($res->getId());
$reservasZero[] = array(
'dateStart' => $res->getDateStart(),
'dateEnd' => $res->getDateEnd(),
'id' => $res->getId(),
'title' => $res->getTitle(),
'client' => $res->getClient(),
'sales' => $data['sumatoria_totales_global_con_iva'],
'ref' => $ref[$res->getId()],
'createdAt' => $res->getCreatedAt(),
);
}
$reservas = $reservasZero;
return $this->render('MDS/GreenPatioBundle/reservations/list-reservations-quotation.html.twig',
array(
'groups' => null,
'titleView' => ' Cotizadas',
'reservations' => $reservas
)
);
}
/**
* @Route("/edit/{id}", name="reservations_greenpatio_edit")
*/
public function editAction($id)
{
return $this->redirectToRoute('reservations_greenpatio_edit_simple', array( 'id' => $id, 'token' => null ));
}
private function createEditReservationsForm(Reservation $entity, $id)
{
$form = $this->createForm(ReservationType::class, $entity,
array(
'action' => $this->generateUrl('reservations_update',
array(
'id' => $id
)
), 'method' => 'PUT'));
return $form;
}
/**
* @Route("/update/{id}", name="reservations_update")
*/
public function updateAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
// INICIO: Si la reserva esta facturada no puede ser modificada
$tempoReserva = $em->getRepository(Reservation::class)->findOneById($id);
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$oldPriority = $reserva->getPriority(); // Si no es un administrador la prioridad no se debe modificar
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$hoy = new \DateTime("now", NULL);
$reserva->setUpdatedBy($user_id);
$reserva->setUpdatedAt($hoy);
$arrayRequest = $request->request->get('reservation');
// Verificamos si se desea cambiar el status
$boolConfirmacion = false;
if ($reserva->getStatus() != $arrayRequest['status']){
// Si se pidio cambiar el estado y es un usario de GreenPatio (rol 48) y el estado inicial no es Pendiente
if ($user_logueado->getUserRol() == 48){
if ($reserva->getStatus() != 'Pendiente') {
// $boolConfirmacion = true;
//Ya no es necesario solicitar a Salva o Rafa que confirmen
}
}
}
$clientContact = $request->request->get('clientContact');
$contactUnregistered = $request->request->get('contactUnregistered');
$nameContactUnregistered = $request->request->get('nameContactUnregistered');
$phoneContactUnregistered = $request->request->get('phoneContactUnregistered');
$daysBlockToEmail = $request->request->get('days');
$reserva->setTitle($arrayRequest['title']);
$reserva->setClientContact($clientContact);
if (filter_var($contactUnregistered, FILTER_VALIDATE_EMAIL)) { // Validamos el correo electronico
$reserva->setContactUnregistered($contactUnregistered);
}
if (!empty($nameContactUnregistered)){ $reserva->setNameContactUnregistered($nameContactUnregistered); }
if (!empty($phoneContactUnregistered)){ $reserva->setPhoneContactUnregistered($phoneContactUnregistered); }
if (!empty($daysBlockToEmail)) {
$reserva->setDays($daysBlockToEmail);
}
if(!empty($arrayRequest['client'])){
// Solo se puede cambiar un cliente si no se ha creado una factura
if ($this->verificarCambioCliente($id)){
$reserva->setClient($arrayRequest['client']);
}
} else {
$reserva->setClient(null);
}
if(!empty($arrayRequest['daysBlock'])){
$reserva->setDaysBlock($arrayRequest['daysBlock']);
} else {
$reserva->setDaysBlock(7);
}
// Si se ha cambiado al estado "Bloqueo" se envia un correo al cliente y al agente
if (!empty($arrayRequest['status'])){
if ($arrayRequest['status'] == 'Bloqueo'){
if ((!empty($reserva->getClient())) or (!empty($reserva->getClientContact())) or (!empty($reserva->getContactUnregistered()))) {
//Solo se envia correo de notificacion del correo si hay cliente o contacto o contacto no registrado
$client = $em->getRepository(Client::class)->findOneById($reserva->getClient());
$mailAddressTo = null;
if (!empty($client) and (!empty($client->getEmail()))){ $mailAddressTo = $client->getEmail(); } // Si hay cliente con correo se le envia a este
if (!empty($reserva->getClientContact())){
$contacto = $em->getRepository(ClientContact::class)->findOneById($reserva->getClientContact());
if (!empty($contacto) and (!empty($contacto->getEmail()))){ $mailAddressTo = $contacto->getEmail(); } // Si hay un contacto seleccionado tiene prioridad sobre el contacto de cliente
}
if (!empty($reserva->getContactUnregistered())){ $mailAddressTo = $reserva->getContactUnregistered(); } // Si hay correo de contacto no registrado este tiene prioridad sobre todos
if (!empty($mailAddressTo)) {
$agente = $em->getRepository(User::class)->findOneById($user_id);
$mailAddressFrom = $agente->getEmail();
$mailSubject = 'Notificación de Bloqueo - Reserva de espacio en Green Patio';
$mailBody = 'Estimado cliente,' .
'<br><br> Nos ponemos en contacto con usted para confirmarle que su reserva ha quedado registrada en Green Patio para la realización de su próximo evento.' .
'<br>Le recordamos que esta reserva tiene una validez de ' . $reserva->getDaysBlock() . ' días. Si pasado este tiempo no hemos recibido confirmación de vuestra parte, procederemos a la cancelación de la misma.' .
'<br><br>Reserva: ' . $reserva->getId() .' - '. $reserva->getTitle();
if (!empty($reserva->getDays())){ $mailBody = $mailBody . '<br>Días bloqueados: '.$reserva->getDays(); }
$mailBody = $mailBody . '<br><br><br>Muchas gracias por su colaboración.<br><br><br>';
//Se envia el correo al cliente y al agente
$alertaPrevia = $em->getRepository(ReservationMailAlertClient::class)->findOneByReservationId($reserva->getId());
if (empty($alertaPrevia)){
//El correo solo se enviara si no se ha enviado ya una alerta previamente
$this->sendMail($mailAddressFrom, $mailAddressTo, $mailSubject, $mailBody);
}
//Se genera el control de la alerta
$this->makeAlert($reserva->getId(), $reserva->getClient(), $mailAddressTo, $agente->getId(), $agente->getEmail());
}
}
// Modificar la fecha de notificación
if (!empty($arrayRequest['dateNextMailAlert'])) {
$nextReservaMailAlert = $em->getRepository(ReservationMailAlertClient::class)->findOneByReservationId($id);
if (!empty($nextReservaMailAlert)){
// La nueva fecha tiene que ser de mañana en adelante
if (new \Datetime($arrayRequest['dateNextMailAlert']) > new \Datetime('now')){
if ($nextReservaMailAlert->getAlertSended() == 0){
// Si no se ha enviado el mensaje de alerta se modifican la alerta y la cancelacion (+2 dias)
$newAlertDatetime = new \DateTime($arrayRequest['dateNextMailAlert'].' 15:00');
$newCancelDatetime = date( "Y-m-d H:i", strtotime( $newAlertDatetime->format('Y-m-d H:i') . "+2 days" ));
$newCancelDatetime = new \DateTime($newCancelDatetime);
$nextReservaMailAlert->setAlertDateTime($newAlertDatetime);
$nextReservaMailAlert->setCancelDateTime($newCancelDatetime);
$em->persist($nextReservaMailAlert);
$em->flush();
} else {
// Si no se ha enviado el mensaje de cancelacion (paso a cotizacion)
$newCancelDatetime = new \DateTime($arrayRequest['dateNextMailAlert'].' 15:00');
$nextReservaMailAlert->setCancelDateTime($newCancelDatetime);
$em->persist($nextReservaMailAlert);
$em->flush();
}
}
}
}
}
$newStatus = $this->verificarStatusInicialyFinal($id,$user_id,$reserva->getStatus(),$arrayRequest['status']);
// Despues de estudiar el estatus se actualiza con el valor que puede tomar
$arrayRequest['status'] = $newStatus;
$reserva->setStatus($newStatus);
if (!($arrayRequest['status'] == 'Bloqueo')){
// Si no es un bloqueo, tal vez se deba eliminar una alerta
$alertaPrevia = $em->getRepository(ReservationMailAlertClient::class)->findOneByReservationId($id);
if (!empty($alertaPrevia)){
if ($arrayRequest['status'] == 'Deleted'){
// Si se cancela y hay una alerta previa se debe enviar automaticamente correo al cliente y agente acerca de la cancelacion o desbloqueo
$agent = $em->getRepository(User::class)->findOneById($alertaPrevia->getAgentId());
$mailAddressTo = $alertaPrevia->getClientMail();
$mailAddressFrom = $alertaPrevia->getAgentMail();
$replyTo = array(
$alertaPrevia->getClientMail() => $alertaPrevia->getClientMail(),
$alertaPrevia->getAgentMail() => $agent->getName().' '. $agent->getLastName(),
);
$mailSubject = 'Notificación de Bloqueo - Reserva de espacio en Green Patio';
$mailBody = 'Estimado cliente,'.
'<br><br>Nos ponemos en contacto con usted para informarle de que su reserva ha sido cancelada.'.
'<br><br>Reserva: ' . $reserva->getId() .' - '. $reserva->getTitle();
if (!empty($reserva->getDays())){ $mailBody = $mailBody . '<br>Días bloqueados: '.$reserva->getDays(); }
$mailBody = $mailBody . '<br><br><br>Muchas gracias por su colaboración.<br><br><br>';
//Se envia el correo al cliente y al agente
$this->sendMail($mailAddressFrom, $mailAddressTo, $mailSubject, $mailBody);
$alertaPrevia->setOldReservationId($alertaPrevia->getReservationId());
$alertaPrevia->setReservationId(0);
$alertaPrevia->setCancelSended(1);
} else {
$alertaPrevia->setOldReservationId($alertaPrevia->getReservationId());
$alertaPrevia->setReservationId(0);
}
$em->persist($alertaPrevia);
$em->flush();
}
}
}
$boolConfirmacion = ($boolConfirmacion and ($reserva->getStatus() == 'Pendiente')); // Si se pidio cambiar el estado y se quedo en Pendiente y es un usario de GreenPatio (rol 48)
$reserva->setContract($arrayRequest['contract']);
$reserva->setDescription($arrayRequest['description']);
if(!empty($arrayRequest['advancePayment'])){
$reserva->setAdvancePayment($arrayRequest['advancePayment']);
} else {
$reserva->setAdvancePayment(0);
}
if(!empty($arrayRequest['deposit'])){
$reserva->setDeposit($arrayRequest['deposit']);
} else {
$reserva->setDeposit(0);
}
if(!empty($arrayRequest['pax'])){
$reserva->setPax($arrayRequest['pax']);
} else {
$reserva->setPax(null);
}
if(!empty($arrayRequest['idProposal'])){
$reserva->setIdProposal($arrayRequest['idProposal']);
} else {
$reserva->setIdProposal(null);
}
if (!empty($arrayRequest['cateringName'])){
$reserva->setCateringName($arrayRequest['cateringName']);
}
if(is_null($arrayRequest['priority']) or empty($arrayRequest['priority']) or ($arrayRequest['priority'] == 0)){
// Si viene vacio o proridad 0 (Automatico)
$reserva->setPriority(1);
} else {
$reserva->setPriority($arrayRequest['priority']);
}
if ($user_logueado->getRole() == 'ROLE_USER'){
// La opcion o prioridad solo la pueden modificar los administradores para evitar competencias entre lo agentes
$reserva->setPriority($oldPriority);
}
if(empty($reserva->getStatus())){$reserva->setStatus('Cotizado');} //El estado de reserva en vacio es que esta en el proceso de cotizacion
try{
$em->persist($reserva);
$em->flush();
$event = 'The Reservation has been Updated. Now';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
if ($boolConfirmacion){
// Se debe solicitar la confirmación ed la reserva
return $this->redirectToRoute('reservations_greenpatio_send_confirmation_request_mail', array( 'id' => $id ));
}
if ($reserva->getStatus() == 'Confirmed'){
// Si han confirmado se debe notificar a Salvador y a Rafa, no para que confirmen sino para que esten informados
return $this->redirectToRoute('reservations_greenpatio_send_confirmation_request_mail', array( 'id' => $id ));
}
// Sincronización con HT
if (!empty($reserva)) {
// Rafa indico que siempre se sincronice al abrir un expediente de GP
// if (in_array($reserva->getStatus(), ['Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
if (in_array($reserva->getStatus(), [null, '', 'Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
if ($reserva->getCateringName() == 'HIGO & TRIGO, S.L.') {
// Si no se ha creado aun el expediente de HT debemos crearlo
$htFile = $em->getRepository(HtFile::class)->findByReservation($reserva);
if (empty($htFile)) {
return $this->redirectToRoute('sinc_gp_ht', array('id' => $id,));
}
}
}
}
// Sincronización con Av Express
$cotizable = $this->laReservaEsCotizable($reserva->getId());
if ($cotizable) {
// Rafa indico que siempre se sincronice al abrir un expediente de GP
// if (in_array($reserva->getStatus(), ['Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
if (in_array($reserva->getStatus(), [null, '', 'Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
$AveFile = $em->getRepository(AveFiles::class)->findByReservation($reserva);
if (empty($AveFile)) {
// Si no se ha creado aun el expediente de Av Express debemos crearlo
return $this->redirectToRoute('sinc_gp_ave', array('id' => $id,));
}
}
}
return $this->redirectToRoute('reservations_greenpatio_edit_simple', array( 'id' => $id, 'token' => null ));
}
/**
* @Route("/updateOLD/{id}", name="reservations_updateOLD")
*/
public function updateOLDAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
// INICIO: Si la reserva esta facturada no puede ser modificada
$tempoReserva = $em->getRepository(Reservation::class)->findOneById($id);
if ($tempoReserva->getStatus() == 'Invoiced'){
return $this->redirectToRoute('reservations_greenpatio_index');
}
// FIN: Si la reserva esta facturada no puede ser modificada
$services = $em->getRepository(ReservationService::class)->findByReservationId($id);
$arrayImdicesServices = array();
if (!empty($services)){
foreach ($services as $service){
$arrayImdicesServices[] = $service->getId();
}
//INICIO: Buscamos esos servicios con los indices generados en el request
$arrayOfServices = array();//arreglo de servicios
foreach ($arrayImdicesServices as $ind){
$temp = $request->request->get('services_'.$ind);
// Agregamos el ID del servicio al arreglo
$temp += ["id" => $ind];
$arrayOfServices[] = $temp;
}
foreach ($arrayOfServices as $serv){
if (array_key_exists('boolDelete', $serv)){
// El servicio esta marcado para ser borrado de las tablas
$serviceDelete = $em->getRepository(ReservationService::class)->findOneById($serv['id']);
$em->remove($serviceDelete);
$em->flush();
} else {
// No esta marcado para borrado solo se debe modificar
$serviceUpdated = $em->getRepository(ReservationService::class)->findOneById($serv['id']);
$serviceUpdated->setName($serv['name']);
$serviceUpdated->setPrice($serv['price']);
$serviceUpdated->setCurrency($serv['currency']);
$serviceUpdated->setUnits($serv['units']);
$serviceUpdated->setPax($serv['pax']);
$serviceUpdated->setOpCommission($serv['opCommission']);
$serviceUpdated->setCommission($serv['commission']);
$serviceUpdated->setOpOver($serv['opOver']);
$serviceUpdated->setOver($serv['over']);
$serviceUpdated->setOpIva($serv['opIva']);
$serviceUpdated->setIva($serv['iva']);
$serviceUpdated->setSupplierId($serv['supplier']);
$serviceUpdated->setDateInAt(new \DateTime($serv['dateInAt'].' '. $serv['start']));
$serviceUpdated->setDateOutAt(new \DateTime($serv['dateOutAt'].' '. $serv['end']));
// /* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$serviceUpdated->setUpdatedId($user_id);
$serviceUpdated->setUpdatedId($user_id);
try{
$em->persist($serviceUpdated);
$em->flush();
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el log */
// $logger->error($event_complete.' | '.$event);
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajeclienterror', $errorMessage);
}
}
}
}
//FIN: Buscamos esos servicios con los indices generados en el request
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$oldPriority = $reserva->getPriority(); // Si no es un administrador la prioridad no se debe modificar
$form = $this->createEditReservationsForm($reserva, $id);
$form->handleRequest($request);
// INICIO: Formamos las salas que vienen en request
// salasViejas son las salas que ya existian antes de editar
$salas = $request->request->get('salas');
$lounges = $request->request->get('long');
$salasViejas = array();
$salasViejasBorrar = array();
$salasNuevas = array();
$ind =0;
$nuevoi = 0;
if (!empty($salas)) {
if (array_key_exists('0', $salas)) {
$nuevoi = 0;
} else {
$nuevoi = 1;
}
}
// INICIO: Se verifica que todas las salas tengan el idPeriod
// for ($i = $nuevoi; $i<sizeof($salas); $i++){
// if (sizeof($salas[$i])==8){
// $tempIdPeriod = ($em->getRepository(ReservationLoungeProfile::class)->findOneById($salas[$i]['idLounge']))->getPeriodId();
// $salas[$i]['idPeriod'] = $tempIdPeriod;
// }
// }
// FIN: Se verifica que todas las salas tengan el idPeriod
// INICIO: Se recorre el long del request para determinar que salas pueden estar marcados para borrar por el boolDelete
for ($i = $nuevoi; $i< sizeof($salas); $i++){
if (array_key_exists('boolDelete', $salas[$i])){
//Existe el campo boolDelete, se debe eliminar de $sala
unset($salas[$i]);
}
}
// FIN: Se recorre el long del request para determinar que salas pueden estar marcados para borrar por el boolDelete
// INICIO: Guardamos en BD la reserva y luego las nuevas salas asociadas
$usuarios = $em->getRepository(User::class)->findAll();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$hoy = new \DateTime("now", NULL);
// INICIO: Verificamos si se actualizan las horas de la reserva
$reserva->setDateStart(new \DateTime('2078-01-01'));
$reserva->setDateEnd(new \DateTime('2000-01-01'));
if (!empty($salas)) {
foreach ($salas as $newSala) {
if (!empty($newSala['mountindDate'])) {
if (new \DateTime($newSala['mountindDate']) < $reserva->getDateStart()) {
$reserva->setDateStart(new \DateTime($newSala['mountindDate']));
}
}
if (new \DateTime($newSala['dateStart']) < $reserva->getDateStart()) {
$reserva->setDateStart(new \DateTime($newSala['dateStart']));
}
if (new \DateTime($newSala['dateEnd']) > $reserva->getDateEnd()) {
$reserva->setDateEnd(new \DateTime($newSala['dateEnd']));
}
if (!empty($newSala['removalDate'])) {
if (new \DateTime($newSala['removalDate']) > $reserva->getDateEnd()) {
$reserva->setDateEnd(new \DateTime($newSala['removalDate']));
}
}
}
}
// FIN: Verificamos si se actualizan las horas de la reserva
if($form->isValid())
{
$reserva->setUpdatedBy($user_id);
$reserva->setUpdatedAt($hoy);
if(!empty($reserva->getClient())){
$reserva->setClient($reserva->getClient()->getId());
} else {
$reserva->setClient(null);
}
if (!empty($reserva->getCateringName())){
$reserva->setCateringName($reserva->getCateringName()->getName());
}
if(is_null($reserva->getPriority()) or empty($reserva->getPriority())){$reserva->setPriority(1);}
if ($user_logueado->getRole() == 'ROLE_USER'){
// La opcion o prioridad solo la pueden modificar los administradores para evitar competencias en tre lo agentes
$reserva->setPriority($oldPriority);
}
try{
$em->persist($reserva);
$em->flush();
$event = 'The Reservation has been Updated. Now';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
// INICIO: Guardamos en BD las salas asociadas
// INICIO: Se eliminan las salas asociadas a la reserva para luego ingresar las que vengan en el request
$salasObsoletas = $em->getRepository(ReservationLounge::class)->findByIdReservation($reserva->getId());
if (!is_null($salasObsoletas) and !is_null($salasViejasBorrar)) {
foreach ($salasObsoletas as $item) {
try {
$em->remove($item);
$em->flush();
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
}
}
// FIN: Se eliminan las salas asociadas a la reserva para luego ingresar las que vengan en el request
$em = $this->getDoctrine()->getManager();
if (!empty($salas)) {
foreach ($salas as $newSala) {
$tempIdlounge = $newSala['idLounge'];
// consulto la tabla de precios para obtener el id de salon desde el id de precios
$queryProfile = $em->getRepository(ReservationLoungeProfile::class)->findOneById($tempIdlounge);
$tempIdPeriod = $newSala['idLoungePrice'];
// $temploungepriceid = $em->getRepository(ReservationLoungeProfile::class)->findOneById($tempIdLoung)->getLoungeId();
$temploungeSql = ($em->getRepository(ReservationLoungeDetails::class)->findOneById($queryProfile->getLoungeId()));
$tempNamelounge = $temploungeSql->getName();
$sala = new ReservationLounge();
$sala->setLoungeName(empty($tempNamelounge) ? "" : $tempNamelounge);
$sala->setIdLounge(empty($queryProfile->getLoungeId()) ? "0" : $queryProfile->getLoungeId());
$sala->setDateStart(new \DateTime($newSala['dateStart']));
$sala->setHourStart(substr($newSala['hourStart'], 0, 2));
$sala->setMinStart(substr($newSala['hourStart'], 3, 2));
$sala->setHourEnd(substr($newSala['hourEnd'], 0, 2));
$sala->setMinEnd(substr($newSala['hourEnd'], 3, 2));
$sala->setDateEnd(new \DateTime($newSala['dateEnd']));
$sala->setIdService(empty($newSala['service']) ? "0" : $newSala['service']);
$sala->setServiceName($newSala['serviceName']);
$sala->setServicePrice($newSala['servicePrice']);
$sala->setIdReservation($reserva->getId());
$sala->setOtherPriceSave(null);
$sala->setCreatedAt(new \DateTime());
$sala->setCreatedBy($user_id);
$sala->setUpdatedAt(new \DateTime());
$sala->setUpdatedBy($user_id);
$sala->setIdPeriod($tempIdPeriod);
$sala->setDateStart(new \DateTime($sala->getDateStart()->format('Y-m-d') . " " . $sala->getHourStart() . ":" . $sala->getMinStart()));
$sala->setDateEnd(new \DateTime($sala->getDateEnd()->format('Y-m-d') . " " . $sala->getHourEnd() . ":" . $sala->getMinEnd()));
if (empty($newSala['servicePax']) or is_null($newSala['servicePax'])) {
$sala->setPax(null);
} else {
$sala->setPax($newSala['servicePax']);
}
$sala->setMounting($newSala['serviceMounting']);
$sala->setMountingLapse($newSala['mountingLapse']);
switch (strlen($newSala['mountingHourStart'])) {
case 0:
// Vacio
$sala->setMountingHourStart('00');
$sala->setMountingMinStart('00');
break;
case 1:
// H -> 0H:00
// $sala->setMountingHourStart('0'.$newSala['mountingHourStart']);
if (is_numeric($newSala['mountingHourStart'])){
$sala->setMountingHourStart('0'.$newSala['mountingHourStart']);
} else {
$sala->setMountingHourStart('00');
}
$sala->setMountingMinStart('00');
break;
case 2:
// HH -> HH:00
if (is_numeric($newSala['mountingHourStart'])) {
$sala->setMountingHourStart($newSala['mountingHourStart']);
} else {
$sala->setMountingHourStart('00');
}
$sala->setMountingMinStart('00');
break;
case 3:
// Hmm -> 0H:mm
if (is_numeric($newSala['mountingHourStart'])) {
$sala->setMountingHourStart('0' . substr($newSala['mountingHourStart'], 0, 1));
$sala->setMountingMinStart(substr($newSala['mountingHourStart'], 1, 2));
} else {
$sala->setMountingHourStart('00');
$sala->setMountingMinStart('00');
}
break;
case 4:
// HHmm -> HH:mm
if (is_numeric($newSala['mountingHourStart'])) {
$sala->setMountingHourStart(substr($newSala['mountingHourStart'], 0, 2));
$sala->setMountingMinStart(substr($newSala['mountingHourStart'], 2, 2));
} else {
$sala->setMountingHourStart('00');
$sala->setMountingMinStart('00');
}
break;
case 5:
// HH:mm -> HH:mm
if (is_numeric(substr($newSala['mountingHourStart'], 0, 2)) and is_numeric(substr($newSala['mountingHourStart'], 3, 2))) {
$sala->setMountingHourStart(substr($newSala['mountingHourStart'], 0, 2));
$sala->setMountingMinStart(substr($newSala['mountingHourStart'], 3, 2));
} else {
$sala->setMountingHourStart('00');
$sala->setMountingMinStart('00');
}
break;
default:
// XXXXyyy
$sala->setMountingHourStart('00');
$sala->setMountingMinStart('00');
break;
}
switch (strlen($newSala['mountingHourEnd'])) {
case 0:
// Vacio
$sala->setMountingHourEnd('00');
$sala->setMountingMinEnd('00');
break;
case 1:
// H -> 0H:00
// $sala->setMountingHourEnd('0'.$newSala['mountingHourEnd']);
if (is_numeric($newSala['mountingHourEnd'])){
$sala->setMountingHourEnd('0'.$newSala['mountingHourEnd']);
} else {
$sala->setMountingHourEnd('00');
}
$sala->setMountingMinEnd('00');
break;
case 2:
// HH -> HH:00
if (is_numeric($newSala['mountingHourEnd'])) {
$sala->setMountingHourEnd($newSala['mountingHourEnd']);
} else {
$sala->setMountingHourEnd('00');
}
$sala->setMountingMinEnd('00');
break;
case 3:
// Hmm -> 0H:mm
if (is_numeric($newSala['mountingHourEnd'])) {
$sala->setMountingHourEnd('0' . substr($newSala['mountingHourEnd'], 0, 1));
$sala->setMountingMinEnd(substr($newSala['mountingHourEnd'], 1, 2));
} else {
$sala->setMountingHourEnd('00');
$sala->setMountingMinEnd('00');
}
break;
case 4:
// HHmm -> HH:mm
if (is_numeric($newSala['mountingHourEnd'])) {
$sala->setMountingHourEnd(substr($newSala['mountingHourEnd'], 0, 2));
$sala->setMountingMinEnd(substr($newSala['mountingHourEnd'], 2, 2));
} else {
$sala->setMountingHourEnd('00');
$sala->setMountingMinEnd('00');
}
break;
case 5:
// HH:mm -> HH:mm
if (is_numeric((substr($newSala['mountingHourEnd'], 0, 2))) and is_numeric((substr($newSala['mountingHourEnd'], 3, 2)))) {
$sala->setMountingHourEnd(substr($newSala['mountingHourEnd'], 0, 2));
$sala->setMountingMinEnd(substr($newSala['mountingHourEnd'], 3, 2));
} else {
$sala->setMountingHourEnd('00');
$sala->setMountingMinEnd('00');
}
break;
default:
// XXXXyyy
$sala->setMountingHourEnd('00');
$sala->setMountingMinEnd('00');
break;
}
switch (strlen($newSala['removalHourStart'])) {
case 0:
// Vacio
$sala->setRemovalHourStart('00');
$sala->setRemovalMinStart('00');
break;
case 1:
// H -> 0H:00
// $sala->setRemovalHourStart('0'.$newSala['removalHourStart']);
if (is_numeric($newSala['removalHourStart'])){
$sala->setRemovalHourEnd('0'.$newSala['removalHourStart']);
} else {
$sala->setRemovalHourEnd('00');
}
$sala->setRemovalMinStart('00');
break;
case 2:
// HH -> HH:00
if (is_numeric($newSala['removalHourStart'])) {
$sala->setRemovalHourStart($newSala['removalHourStart']);
} else {
$sala->setRemovalHourStart('00');
}
$sala->setRemovalMinStart('00');
break;
case 3:
// Hmm -> 0H:mm
if (is_numeric($newSala['removalHourStart'])) {
$sala->setRemovalHourStart('0' . substr($newSala['removalHourStart'], 0, 1));
$sala->setRemovalMinStart(substr($newSala['removalHourStart'], 1, 2));
} else {
$sala->setRemovalHourStart('00');
$sala->setRemovalMinStart('00');
}
break;
case 4:
// HHmm -> HH:mm
if (is_numeric($newSala['removalHourStart'])) {
$sala->setRemovalHourStart(substr($newSala['removalHourStart'], 0, 2));
$sala->setRemovalMinStart(substr($newSala['removalHourStart'], 2, 2));
} else {
$sala->setRemovalHourStart('00');
$sala->setRemovalMinStart('00');
}
break;
case 5:
// HH:mm -> HH:mm
if (is_numeric(substr($newSala['removalHourStart'], 0, 2)) and is_numeric(substr($newSala['removalHourStart'], 3, 2))) {
$sala->setRemovalHourStart(substr($newSala['removalHourStart'], 0, 2));
$sala->setRemovalMinStart(substr($newSala['removalHourStart'], 3, 2));
} else {
$sala->setRemovalHourStart('00');
$sala->setRemovalMinStart('00');
}
break;
default:
// XXXXyyy
$sala->setRemovalHourStart('00');
$sala->setRemovalMinStart('00');
break;
}
switch (strlen($newSala['removalHourEnd'])) {
case 0:
// Vacio
$sala->setRemovalHourEnd('00');
$sala->setRemovalMinEnd('00');
break;
case 1:
// H -> 0H:00
if (is_numeric($newSala['removalHourEnd'])){
$sala->setRemovalHourEnd('0'.$newSala['removalHourEnd']);
} else {
$sala->setRemovalHourEnd('00');
}
$sala->setRemovalMinEnd('00');
break;
case 2:
// HH -> HH:00
if (is_numeric($newSala['removalHourEnd'])) {
$sala->setRemovalHourEnd($newSala['removalHourEnd']);
} else {
$sala->setRemovalHourEnd('00');
}
$sala->setRemovalMinEnd('00');
break;
case 3:
// Hmm -> 0H:mm
if (is_numeric($newSala['removalHourEnd'])) {
$sala->setRemovalHourEnd('0' . substr($newSala['removalHourEnd'], 0, 1));
$sala->setRemovalMinEnd(substr($newSala['removalHourEnd'], 1, 2));
} else {
$sala->setRemovalHourEnd('00');
$sala->setRemovalMinEnd('00');
}
break;
case 4:
// HHmm -> HH:mm
if (is_numeric($newSala['removalHourEnd'])) {
$sala->setRemovalHourEnd(substr($newSala['removalHourEnd'], 0, 2));
$sala->setRemovalMinEnd(substr($newSala['removalHourEnd'], 2, 2));
} else {
$sala->setRemovalHourEnd('00');
$sala->setRemovalMinEnd('00');
}
break;
case 5:
// HH:mm -> HH:mm
if (is_numeric(substr($newSala['removalHourEnd'], 0, 2)) and is_numeric(substr($newSala['removalHourEnd'], 3, 2))) {
$sala->setRemovalHourEnd(substr($newSala['removalHourEnd'], 0, 2));
$sala->setRemovalMinEnd(substr($newSala['removalHourEnd'], 3, 2));
} else {
$sala->setRemovalHourEnd('00');
$sala->setRemovalMinEnd('00');
}
break;
default:
// XXXXyyy
$sala->setRemovalHourEnd('00');
$sala->setRemovalMinEnd('00');
break;
}
$sala->setMountingDate(new \DateTime($newSala['mountingDate'].' '.$sala->getMountingHourStart().':'.$sala->getMountingMinStart()));
if (empty($newSala['mountingPrice'])){$sala->setMountingPrice(0);} else {$sala->setMountingPrice($newSala['mountingPrice']);}
$sala->setRemovalLapse($newSala['removalLapse']);
$sala->setRemovalDate(new \DateTime($newSala['removalDate'].' '.$sala->getRemovalHourEnd().':'.$sala->getRemovalMinEnd()));
if (empty($newSala['removalPrice'])){$sala->setRemovalPrice(0);} else {$sala->setRemovalPrice($newSala['removalPrice']);}
if (($sala->getMountingDate() < $reserva->getDateStart()) or ($reserva->getDateEnd() < $sala->getRemovalDate())){
if ($sala->getMountingDate() < $reserva->getDateStart()){
$reserva->setDateStart($sala->getMountingDate());
}
if ($reserva->getDateEnd() < $sala->getRemovalDate()){
$reserva->setDateEnd($sala->getRemovalDate());
}
try {
$em->persist($reserva);
$em->flush();
} catch (\Exception $e) {
$event = 'Error al actualizar fechas de inicio y fin, por montaje y desmontaje de sala: ' . $e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
}
try {
$em->persist($sala);
$em->flush();
} catch (\Exception $e) {
$event = 'An error occurred: ' . $e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
}
}
}
// FIN: Guardamos en BD la reserva y luego las nuevas salas asociadas
return $this->redirectToRoute('reservations_greenpatio_index');
}
/**
* @Route("/events", name="get_reservations")
*/
public function reservationSelectAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
// Obtén el primer día del año anterior
$fechaInicio = new \DateTime('first day of January last year');
// Crea el QueryBuilder para ReservationLoungeSimple
$qb = $em->getRepository(ReservationLoungeSimple::class)->createQueryBuilder('r');
$reservation = $qb->where('r.dateStart >= :fechaInicio')
->andWhere('r.idLounge < :idLounge')
->setParameter('fechaInicio', $fechaInicio)
->setParameter('idLounge', 22)
->getQuery()
->getResult();
// Crea el QueryBuilder para ReservationVisit
$qb = $em->getRepository(ReservationVisit::class)->createQueryBuilder('v');
$visitas = $qb->where('v.dateStart >= :fechaInicio')
->andWhere('v.idLounge = 0')
->setParameter('fechaInicio', $fechaInicio)
->getQuery()
->getResult();
$arrayFechaVisitas = array();
foreach ($visitas as $item) {
//Se agrupan las visitas por fechas
$arrayFechaVisitas[$item->getDateStart()->format('Y-m-d')][] = $item;
}
$newArrayVisitas = array();
//Se agrupan las visitas por agente
foreach ($arrayFechaVisitas as $fecha) {
foreach ($fecha as $item) {
//Se van concatenando los titulos de las visitas en una sola
$loungeNameTemp = '';
if (!empty($newArrayVisitas[$item->getDateStart()->format('Y-m-d') . '-' . $item->getAgentId()])) {
// $loungeNameTemp = $newArrayVisitas[$item->getDateStart()->format('Y-m-d') . '-' . $item->getAgentId()]->getLoungeName();
}
$item->setLoungeName($loungeNameTemp . $item->getDateStart()->format('H:i') . ' ' . $item->getLoungeName() . '<br>');
$newArrayVisitas[$item->getDateStart()->format('Y-m-d') . '-' . $item->getAgentId()] = $item;
}
}
$visitas = $newArrayVisitas;
// foreach ($visitas as $item) { array_push($reservation, $item); }
$xArray = array();
foreach ($arrayFechaVisitas as $elem) { foreach ($elem as $item) { $xArray[] = $item; } }
foreach ($xArray as $item) { array_push($reservation, $item); }
$datos = array();
$datosMontaje = array();
$datosDesMontaje = array();
if (!empty($reservation)) {
foreach ($reservation as $reservaSala) {
if (!empty($reservaSala->getIdReservation())) {
$reserva = $em->getRepository(Reservation::class)->findOneById($reservaSala->getIdReservation());
if ($reservaSala->getType() == 'Visit') {
$reserva->setStatus('Visit');
}
} else {
// Estamos con una visita
$reserva = new Reservation();
$reserva->setStatus('Visit');
$reserva->setTitle($reservaSala->getLoungeName());
}
if ($reservaSala->getDateStart()->format('d') == $reservaSala->getDateEnd()->format('d')) {
$tooltip = $reserva->getTitle() . ' - <b><h3>' . $reservaSala->getLoungeName() . "</h3></b> Del " . $reservaSala->getDateStart()->format('d/m') . ' desde ' . $reservaSala->getHourStart() . ":" . $reservaSala->getMinStart() . " a " . $reservaSala->getHourEnd() . ":" . $reservaSala->getMinEnd();
} else {
$tooltip = $reserva->getTitle() . ' - <b><h3>' . $reservaSala->getLoungeName() . "</h3></b> Del " . $reservaSala->getDateStart()->format('d/m') . ' desde ' . $reservaSala->getHourStart() . ":" . $reservaSala->getMinStart() . " al " . $reservaSala->getDateEnd()->format('d/m') . ' hasta ' . $reservaSala->getHourEnd() . ":" . $reservaSala->getMinEnd();
}
$logicoVisita = false;
if (!is_null($reserva->getStatus())) {
switch ($reserva->getStatus()) {
case 'Bloqueo': //naranja
$color = "#ffaa00";
break;
case 'Confirmed': //verde
$color = "#13ad27";
break;
case 'Invoiced': //verde
$color = "#13ad27";
break;
case 'Deleted': //rojo
$color = "#ff0000";
break;
case 'Cotizado': //Rojo claro
$color = "#faafc3";
break;
case 'Reservado': //verde, se ha adelantado un pago parcial
$color = "#13ad27";
break;
case 'Visit': //Azul Almudena (id user 77), Rosa Gaby
$logicoVisita = true;
if ($reservaSala->getAgentId() == 77) {
$color = "#22cbf5";
} else {
$color = "#f5229a";
}
break;
default: //naranja
$color = "";
break;
}
if (!empty($reservaSala->getType()) and !($reservaSala->getType() == 'Visit')) {
//Es un montaje o desmontaje
$color = "#a5b8a2";
// Si es un montaje o desmontaje pero esta cancelado debe prevalecer el color de cancelado
if ($reserva->getStatus() == 'Deleted') {
$color = "#ff0000";
}
if (($reservaSala->getIdLounge() == 22) or ($reservaSala->getIdLounge() == 23) or
($reservaSala->getIdLounge() == 24) or ($reservaSala->getIdLounge() == 25)){
//Ajustamos el color a una sala de covarrubia
switch ($color) {
case '#ffaa00': $color = "#b873bf"; break; //naranja (bloqueo) => morado
case '#13ad27': $color = "#017362"; break; //verde (Confirmed) => verde olivo
case '#ff0000': $color = "#ff0000"; break; //rojo
case '#faafc3': $color = "#faafc3"; break; //Rojo claro
default: break; //no modificar el color
}
}
//Lo cotizado no se desea ver en el calendario
// if ($reserva->getStatus() == 'Cotizado') {$color = "";}
}
}
$pago1 = "";
$pago2 = "";
$ht = "";
if (!($reserva->getStatus() == 'Visit')) {
$paymentsAll = $em->getRepository(ReservationPaymentsClient::class)->findOneByReservationId($reserva->getId());
} else {
$paymentsAll = null;
}
if (!empty($paymentsAll)) {
$pago2 = "<i class='icon-coin-euro' style='color: #000 !important;'></i>"; //Hay pagos parciales
}
if (!($reserva->getStatus() == 'Visit')) {
$facturas = $em->getRepository(ReservationInvoice::class)->findByReservationId($reserva->getId());
}
if (!empty($facturas)) {
foreach ($facturas as $factura) {
if ($factura->getMaster() == "master") {
$pago1 = "<i class='icon-thumbs-up3' style='color: #000 !important;'></i>";// Se ha pagado la totalidad
}
if ($factura->getMaster() != "master") {
$pago2 = "<i class='icon-coin-euro' style='color: #000 !important;'></i>"; //Hay pagos parciales
}
}
}
if ($reserva->getCateringName() == 'HIGO & TRIGO, S.L.') {
$ht = "<a style='color: #000 !important;'><strong>H&T</strong></a>"; // Es una reserva con servicio de Catering Higo & Trigo
}
// Pagos parciales y totales
if (!empty($reserva)) {
if (!$logicoVisita) {
$datos[] = array(
"title" => $reservaSala->getDateStart()->format('H:i') . ' ' . $pago2 . $pago1 . $ht . ' ' . $reservaSala->getType() . '<br>' . $reservaSala->getLoungeName() . '<br>' . '<br>' . $reserva->getTitle(),
"titleOne" => $reservaSala->getDateStart()->format('H:i') . ' ' . $pago2 . $pago1 . $ht . ' ' . $reservaSala->getType() . '<br>',
"titleTwo" => $reservaSala->getLoungeName(),
"titleThree" => '' . '<br>' . '<br>' . $reserva->getTitle(),
"type" => $reservaSala->getType(),
"id" => $reserva->getId(),
"tooltip" => $tooltip,
"start" => $reservaSala->getDateStart(),
"end" => $reservaSala->getDateEnd(),
"color" => $color,
"loungeId" => $reservaSala->getIdLounge(),
"url" => "/reservations-greenpatio/edit/" . $reserva->getId(),
"status" => $reserva->getStatus(),
);
} else {
// Es una visita
$datos[] = array(
"title" => $reservaSala->getLoungeName(),
"titleOne" => $reservaSala->getDateStart()->format('H:i') . ' ' . ' ' . $reservaSala->getType() . '<br>',
"titleTwo" => $reservaSala->getLoungeName(),
"titleThree" => '' . '<br>' . '<br>' . $reserva->getTitle(),
"type" => $reservaSala->getType(),
"id" => $reservaSala->getId() . 'V',
"tooltip" => $tooltip,
"start" => $reservaSala->getDateStart(),
"end" => $reservaSala->getDateEnd(),
"color" => $color,
"loungeId" => $reservaSala->getIdLounge(),
"url" => '/reservations-greenpatio/addvisit',
"status" => $reserva->getStatus(),
"agentId" => $reservaSala->getAgentId(),
);
}
} else {
$datos = [];
}
}
}
$newDatos = array();
// INICIO: Se unen las salas en una sola reserva por ID de reserva
foreach ($datos as $dato) {
// Inicializamos el arreglo para crear los indices
switch ($dato['color']){
case '#a5b8a2': //Montaje o Desmontaje
if ($dato['type'] == 'Montaje'){
$newDatos[$dato['id'].'M'] = null;
} else {
$newDatos[$dato['id'].'D'] = null;
}
break;
default: //Dia de reserva o Visita (la visita ya viene con su indice #V )
$newDatos[$dato['id']] = null;
break;
}
}
foreach ($datos as $dato) {
switch ($dato['color']){
//Montaje o Desmontaje
case '#a5b8a2':
if ($dato['type'] == "Montaje") {
if (!empty($newDatos[$dato['id'] . 'M'])) {
// El Montaje esta ocupando mas de 1 dia, se deben unir los dias de montaje
if ($newDatos[$dato['id'] . 'M']['start'] > $dato['start']) { $newDatos[$dato['id'] . 'M']['start'] = $dato['start']; }
if ($newDatos[$dato['id'] . 'M']['end'] < $dato['end']) { $newDatos[$dato['id'] . 'M']['end'] = $dato['end']; }
} else {
$newDatos[$dato['id'] . 'M'] = $dato;
}
} else {
if ($dato['type'] == "Desmontaje") {
if (!empty($newDatos[$dato['id'] . 'D'])) {
// El Desmontaje esta ocupando mas de 1 dia, se deben unir los dias de desmontaje
if ($newDatos[$dato['id'] . 'D']['start'] > $dato['start']) { $newDatos[$dato['id'] . 'D']['start'] = $dato['start']; }
if ($newDatos[$dato['id'] . 'D']['end'] < $dato['end']) { $newDatos[$dato['id'] . 'D']['end'] = $dato['end']; }
} else {
$newDatos[$dato['id'] . 'D'] = $dato;
}
}
}
break;
//Visita Almudena (id user 77)
case '#22cbf5':
if ($dato['type'] == "Visit") {
$newDatos[$dato['start']->format('Ymd').'V77'.$dato['id']] = $dato;
if (!empty($newDatos[$dato['start']->format('Ymd').'V77'])) {
// Hay varias visitas ese mismo dia para el agente
// $newDatos[$dato['start']->format('Ymd').'V77']['tooltip'] = $newDatos[$dato['start']->format('Ymd').'V77']['tooltip'] . $dato['tooltip'];
} else {
// $newDatos[$dato['start']->format('Ymd').'V77'] = $dato;
}
}
break;
//Visita Gabriela (id user 82)
case '#f5229a':
if ($dato['type'] == "Visit") {
$newDatos[$dato['start']->format('Ymd').'V82'.$dato['id']] = $dato;
if (!empty($newDatos[$dato['start']->format('Ymd').'V82'])) {
// Hay varias visitas ese mismo dia para el agente
// $newDatos[$dato['start']->format('Ymd').'V82']['tooltip'] = $newDatos[$dato['start']->format('Ymd').'V82']['tooltip'] . $dato['tooltip'];
} else {
// $newDatos[$dato['start']->format('Ymd').'V82'] = $dato;
}
}
break;
//Visita María (id user 120)
case '#157cc2':
if ($dato['type'] == "Visit") {
$newDatos[$dato['start']->format('Ymd').'V120'.$dato['id']] = $dato;
if (!empty($newDatos[$dato['start']->format('Ymd').'V120'])) {
// Hay varias visitas ese mismo dia para el agente
// $newDatos[$dato['start']->format('Ymd').'V120']['tooltip'] = $newDatos[$dato['start']->format('Ymd').'V120']['tooltip'] . $dato['tooltip'];
} else {
// $newDatos[$dato['start']->format('Ymd').'V120'] = $dato;
}
}
break;
//Reserva color naranja Bloqueo
case '#ffaa00':
if (empty($newDatos[$dato['id']])){
$newDatos[$dato['id']] = $dato;
} else {
// Se verifican la actualizacion de incio y fin, para tener el menor inicio y el mayor fin
if ($newDatos[$dato['id']]['start'] > $dato['start']) {
$newDatos[$dato['id']]['start'] = $dato['start'];
}
if ($newDatos[$dato['id']]['end'] < $dato['end']) {
$newDatos[$dato['id']]['end'] = $dato['end'];
}
$newDatos[$dato['id']]['tooltip'] = $newDatos[$dato['id']]['tooltip'] . ' | ' . $dato['tooltip'];
// Verificamos si la sala ya ha sido previamente agregada a la lista de salas para no repetirla
if (strpos($newDatos[$dato['id']]['title'], $dato['titleTwo']) === false) {
// No se encontro la cadena, debemos agregar
$newDatos[$dato['id']]['titleTwo'] = $newDatos[$dato['id']]['titleTwo'] . '<br>' . $dato['titleTwo'];
$newDatos[$dato['id']]['title'] = $newDatos[$dato['id']]['titleOne'] . $newDatos[$dato['id']]['titleTwo'] . $newDatos[$dato['id']]['titleThree'];
}
}
break;
//Reserva color Rojo claro Cotizado
case '#faafc3':
if (empty($newDatos[$dato['id']])){
$newDatos[$dato['id']] = $dato;
} else {
// Se verifican la actualizacion de incio y fin, para tener el menor inicio y el mayor fin
if ($newDatos[$dato['id']]['start'] > $dato['start']) {
$newDatos[$dato['id']]['start'] = $dato['start'];
}
if ($newDatos[$dato['id']]['end'] < $dato['end']) {
$newDatos[$dato['id']]['end'] = $dato['end'];
}
$newDatos[$dato['id']]['tooltip'] = $newDatos[$dato['id']]['tooltip'] . ' | ' . $dato['tooltip'];
// Verificamos si la sala ya ha sido previamente agregada a la lista de salas para no repetirla
if (strpos($newDatos[$dato['id']]['title'], $dato['titleTwo']) === false) {
// No se encontro la cadena, debemos agregar
$newDatos[$dato['id']]['titleTwo'] = $newDatos[$dato['id']]['titleTwo'] . '<br>' . $dato['titleTwo'];
$newDatos[$dato['id']]['title'] = $newDatos[$dato['id']]['titleOne'] . $newDatos[$dato['id']]['titleTwo'] . $newDatos[$dato['id']]['titleThree'];
}
}
break;
//Reserva color Rojo Reserva Cancelada
case '#ff0000':
//Las canceladas no se muestran en el calendario
break;
//Reserva color Verde Reserva Confirmada, Facturada, (se ha adelantado un pago parcial)
case '#13ad27':
if (empty($newDatos[$dato['id']])){
$newDatos[$dato['id']] = $dato;
} else {
// Se verifican la actualizacion de incio y fin, para tener el menor inicio y el mayor fin
if ($newDatos[$dato['id']]['start'] > $dato['start']) {
$newDatos[$dato['id']]['start'] = $dato['start'];
}
if ($newDatos[$dato['id']]['end'] < $dato['end']) {
$newDatos[$dato['id']]['end'] = $dato['end'];
}
$newDatos[$dato['id']]['tooltip'] = $newDatos[$dato['id']]['tooltip'] . ' | ' . $dato['tooltip'];
// Verificamos si la sala ya ha sido previamente agregada a la lista de salas para no repetirla
if (strpos($newDatos[$dato['id']]['title'], $dato['titleTwo']) === false) {
// No se encontro la cadena, debemos agregar
$newDatos[$dato['id']]['titleTwo'] = $newDatos[$dato['id']]['titleTwo'] . '<br>' . $dato['titleTwo'];
$newDatos[$dato['id']]['title'] = $newDatos[$dato['id']]['titleOne'] . $newDatos[$dato['id']]['titleTwo'] . $newDatos[$dato['id']]['titleThree'];
}
}
break;
//Reserva color Verde Reserva Confirmada, Facturada, (Covarrubias)
case '#017362':
if ($newDatos[$dato['id']]['end'] < $dato['end']) {
if (empty($newDatos[$dato['id']])){
$newDatos[$dato['id']]['end'] = $dato['end'];
$newDatos[$dato['id']] = $dato;
} else {
// Se verifican la actualizacion de incio y fin, para tener el menor inicio y el mayor fin
if ($newDatos[$dato['id']]['start'] > $dato['start']) { $newDatos[$dato['id']]['start'] = $dato['start']; }
if ($newDatos[$dato['id']]['end'] < $dato['end']) { $newDatos[$dato['id']]['end'] = $dato['end']; }
$newDatos[$dato['id']]['tooltip'] = $newDatos[$dato['id']]['tooltip'] . ' | ' . $dato['tooltip'];
// Verificamos si la sala ya ha sido previamente agregada a la lista de salas para no repetirla
if (strpos($newDatos[$dato['id']]['title'], $dato['titleTwo']) === false) {
// No se encontro la cadena, debemos agregar
$newDatos[$dato['id']]['titleTwo'] = $newDatos[$dato['id']]['titleTwo'] . '<br>' . $dato['titleTwo'];
$newDatos[$dato['id']]['title'] = $newDatos[$dato['id']]['titleOne'] . $newDatos[$dato['id']]['titleTwo'] . $newDatos[$dato['id']]['titleThree'];
}
}
}
break;
//Se pondra color a negro para resaltar este cualquier caso que no haya sido considerado (status Pendiente)
default:
if (empty($newDatos[$dato['id']])){
$newDatos[$dato['id']] = $dato;
} else {
// Se verifican la actualizacion de incio y fin, para tener el menor inicio y el mayor fin
if ($newDatos[$dato['id']]['start'] > $dato['start']) {
$newDatos[$dato['id']]['start'] = $dato['start'];
}
if ($newDatos[$dato['id']]['end'] < $dato['end']) {
$newDatos[$dato['id']]['end'] = $dato['end'];
}
$newDatos[$dato['id']]['tooltip'] = $newDatos[$dato['id']]['tooltip'] . ' | ' . $dato['tooltip'];
// Verificamos si la sala ya ha sido previamente agregada a la lista de salas para no repetirla
if (strpos($newDatos[$dato['id']]['title'], $dato['titleTwo']) === false) {
// No se encontro la cadena, debemos agregar
$newDatos[$dato['id']]['titleTwo'] = $newDatos[$dato['id']]['titleTwo'] . '<br>' . $dato['titleTwo'];
$newDatos[$dato['id']]['title'] = $newDatos[$dato['id']]['titleOne'] . $newDatos[$dato['id']]['titleTwo'] . $newDatos[$dato['id']]['titleThree'];
}
}
// Se pone en color negro para resaltar este caso que no esta entrando en ninguno de los casos anteriores
$newDatos[$dato['id']]['color'] = '#000000';
if ($dato['type'] == "Visit") {
// Si no es una de los agentes regulares (Gaby, Angie, Cristina) se busca el color del usuario configurado en el perfil
$elAgente = $em->getRepository(User::class)->findOneById($dato['agentId']);
$elAgenteColor = !empty($elAgente) ? $elAgente->getColor() : null;
if (!empty($elAgenteColor)){ $newDatos[$dato['id']]['color'] = $elAgenteColor; }
}
break;
}
}
$datos0 = array();
foreach ($newDatos as $key => $item) {
if (!empty($item['id'])) {
$datos0[$key] = array('title' => $item['title'],
'titleOne' => $item['titleOne'],
'titleTwo' => $item['titleTwo'],
'titleThree' => $item['titleThree'],
'type' => $item['type'],
'id' => $item['id'],
'tooltip' => $item['tooltip'],
'start' => $item['start'],
'end' => $item['end'],
'color' => $item['color'],
'loungeId' => $item['loungeId'],
'url' => $item['url']);
}
}
$newDatos = $datos0;
$datos = array();
foreach ($newDatos as $item) {
if ($item['color'] != '#ff0000') {
// No se agregan al calendario los elementos eliminados oelementos vacios
if (!empty($item)) {
//INICIO: Verificamos por huecos dentro de la reserva
if (empty($item['type'])) {
// solo las reservas se van a verificar en este if
if ((date_diff($item['start'], $item['end'])->d) > 1) { //el evento tiene mas de 2 dias, puede haber huecos
$resSimples = $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($item['id']);
$period = new DatePeriod(
// new DateTime('2010-10-01'),
$item['start'],
new DateInterval('P1D'),
// new DateTime('2010-10-05')
$item['end']
);
$arrayPeriod = array();
foreach ($period as $key => $value) {
//$value->format('Y-m-d')
$arrayPeriod[] = $value;
}
$logAllDiasEnReserva = false;
$logDiaEnReserva = false;
//Verificamos que cada dia tenga su reserva de sala para que no haya hueco
foreach ($arrayPeriod as $day) {
foreach ($resSimples as $resSimple) {
if ($resSimple->getDateStart()->format('Y-m-d') == $day->format('Y-m-d')) {
$logDiaEnReserva = true;
break;
}
}
if (!$logDiaEnReserva) {
//Un dia no se encontraba, hay un hueco
foreach ($resSimples as $resDayToAdd) {
if (empty($resDayToAdd->getType())) { // Solo se deben agregar salsa los montajes y desmontajes aqui no van
$item['start'] = $resDayToAdd->getDateStart();
$item['end'] = $resDayToAdd->getDateEnd();
$br = '<br>';
$br = strpos($item['title'], $br);
$tempText = substr($item['title'], $br + 4);
$item['title'] = $resDayToAdd->getDateStart()->format('H:i') . ' ' . '<br>' . $tempText;
$datos[] = $item;
}
}
break;
} else {
//Se debe evaluar el siguiente dia
$logDiaEnReserva = false;
if ($day->format('Y-m-d') == (end($arrayPeriod))->format('Y-m-d')) { //Si es el ultimo elemento evaluado, todos los dias se encontraban en Reservas Simple
$logAllDiasEnReserva = true;
}
}
}
if ($logAllDiasEnReserva) {
$datos[] = $item;
}
} else {
// El evento es de 1 o 2 dias, no hay posibilidad de hueco
$datos[] = $item;
}
} else {
//Es Visita Las visitas son las unicas entradas que no tienen hueco
if ($item['type'] == 'Visit'){
$datos[] = $item;
} else {
// es montaje o desmontaje, se va verificar por huecos
if ((date_diff($item['start'], $item['end'])->d) > 1) { //el item tiene mas de 2 dias, puede haber huecos
// $resSimples = $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($item['id']);
$parameters = array(
'id' => $item['id'],
'type' => $item['type'],
);
$dql = 'SELECT i
FROM GreenPatioBundle:ReservationLoungeSimple i
WHERE i.idReservation = :id
and i.type = :type';
$query = $em->createQuery($dql)->setParameters($parameters);
$resSimples = $query->getResult();
$period = new DatePeriod(
// new DateTime('2010-10-01'),
$item['start'],
new DateInterval('P1D'),
// new DateTime('2010-10-05')
$item['end']
);
$arrayPeriod = array();
foreach ($period as $key => $value) {
//$value->format('Y-m-d')
$arrayPeriod[] = $value;
}
$logAllDiasEnReserva = false;
$logDiaEnReserva = false;
//Verificamos que cada dia tenga su reserva de sala para que no haya hueco
foreach ($arrayPeriod as $day) {
foreach ($resSimples as $resSimple) {
if ($resSimple->getDateStart()->format('Y-m-d') == $day->format('Y-m-d')) {
$logDiaEnReserva = true;
break;
}
}
if (!$logDiaEnReserva) {
//Un dia no se encontraba, hay un hueco
foreach ($resSimples as $resDayToAdd) {
if (!empty($resDayToAdd->getType())) { // Solo se deben agregar montajes y desmontajes aqui
$item['start'] = $resDayToAdd->getDateStart();
$item['end'] = $resDayToAdd->getDateEnd();
$br = '<br>';
$br = strpos($item['title'], $br);
$tempText = substr($item['title'], $br + 4);
$item['title'] = $resDayToAdd->getDateStart()->format('H:i') . ' ' . '<br>' . $tempText;
$datos[] = $item;
}
}
break;
} else {
//Se debe evaluar el siguiente dia
$logDiaEnReserva = false;
if ($day->format('Y-m-d') == (end($arrayPeriod))->format('Y-m-d')) { //Si es el ultimo elemento evaluado, todos los dias se encontraban en Reservas Simple
$logAllDiasEnReserva = true;
}
}
}
if ($logAllDiasEnReserva) {
$datos[] = $item;
}
} else {
// El montaje o desmontaje es de 1 o 2 dias, no hay posibilidad de hueco
$datos[] = $item;
}
}
}
//FIN: Verificamos por huecos dentro de la reserva
}
}
}
$return = array(
'reservation' => $datos,
);
$response = new JsonResponse($return);
return $response;
}
/**
* @Route("/delete/{id}", name="reservations_delete")
*/
public function deleteAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$hoy = new \DateTime("now", NULL);
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$reserva->setUpdatedBy($user_id);
$reserva->setUpdatedAt($hoy);
$reserva->setStatus('Deleted');
/* Gestión de eventos en Log */
$user_lastname = $user_logueado->getLastname();
$user_name = $user_logueado->getName();
$user_email = $user_logueado->getEmail();
$user_rol = $user_logueado->getRoles();
$event_url = $request->getPathInfo();
$event_complete = $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
try{
$em->persist($reserva);
$em->flush();
$event = 'The Reservation has been Updated. Now';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
/* Fin Gestión de eventos en Log */
return $this->redirectToRoute('reservations_greenpatio_index');
}
/**
* @Route("/listgpprices", name="reservations_greenpatio_prices")
*/
public function indexPricesAction(Request $request) {
$em = $this->getDoctrine()->getManager();
//return $this->redirectToRoute('reservations_greenpatio_edit_general');
$prices = $em->getRepository(ReservationLoungeProfile::class)->findBy(
array(),
array('id' => 'ASC')
);
$data = array();
// INICIO: Estableciendo los valores de los indices (periodos o jornadas, y nombres de salas)
foreach ($prices as $price){
$periodSql = $em->getRepository(ReservationPeriod::class)->findOneById($price->getPeriodId());
$price->setPeriodId($periodSql->getName());
$loungeTemp = $em->getRepository(ReservationLoungeDetails::class)->findOneById($price->getLoungeId());
if(!is_null($loungeTemp))
$price->setLoungeId($loungeTemp->getName());
$data[] = $price;
}
// FIN: Estableciendo los valores de los indices (periodos o jornadas, y nombres de salas)
$reserv = new ReservationLoungeProfile();
$form = $this->createReservationLoungeProfileCreateForm($reserv);
return $this->render('MDS/GreenPatioBundle/reservations/list-reservations-gp-prices.html.twig',
array(
'groups' => null,
'prices' => $data,
'form' => $form->createView()
)
);
}
/**
* @Route("/deletegpprice/{id}", name="reservations_price_delete")
*/
public function deletePriceAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$price = $em->getRepository(ReservationLoungeProfile::class)->findOneById($id);
try{
$em->remove($price);
$em->flush();
$event = 'The Item has been Deleted.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
/* Fin Gestión de eventos en Log */
return $this->redirectToRoute('reservations_greenpatio_prices');
}
/**
* @Route("/editgpprice/{id}", name="reservations_price_edit")
* Editar un profile (Precios - Tarifas - Temporadas)
*/
public function editPriceAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$price = $em->getRepository(ReservationLoungeProfile::class)->findOneById($id);
$lounge = $em->getRepository(ReservationLoungeDetails::class)->findOneById($price->getLoungeId());
$price->setLoungeId($lounge);
$period = $em->getRepository(ReservationPeriod::class)->findOneById($price->getPeriodId());
$price->setPeriodId($period);
$hoy = new \DateTime("now", NULL);
$form = $this->createEditReservationLoungeProfileForm($price, $id);
return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-prices.html.twig',
array(
'id' => $id,
'hoy' => $hoy,
'price' => $price,
'form' => $form->createView()
));
}
private function createEditReservationLoungeProfileForm(ReservationLoungeProfile $entity, $id)
{
$form = $this->createForm(ReservationLoungeProfileType::class, $entity,
array(
'action' => $this->generateUrl('reservations_price_update',
array(
'id' => $id,
'price' => $entity
)
), 'method' => 'PUT'));
return $form;
}
/**
* @Route("/updategpprice/{id}", name="reservations_price_update")
* Update un profile (Precios - Tarifas - Temporadas)
*/
public function updatePriceAction($id, Request $request)
{
$loungeProfile = $request->request->get('lounge_price');
$em = $this->getDoctrine()->getManager();
$price = $em->getRepository(ReservationLoungeProfile::class)->findOneById($id);
$hoy = new \DateTime("now", NULL);
$form = $this->createEditReservationLoungeProfileForm($price, $id);
$form->handleRequest($request);
if($form->isValid())
{
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$price->setUpdatedId($user_id);
$price->setUpdatedAt($hoy);
$periodSql = $em->getRepository(ReservationPeriod::class)->findOneById($form->get('periodId')->getData()->getId());
if (!empty($periodSql)){
$descTemp = $periodSql->getName();
}else{
$descTemp = null;
}
$price->setPeriodId($form->get('periodId')->getData()->getId());
$price->setLoungeId($form->get('loungeId')->getData()->getId());
$price->setTitle($form->get('title')->getData());
$price->setPrice($form->get('price')->getData());
if ((!is_null($price->getLoungeId())) and (!is_null($descTemp))){
$descriptionSql = $em->getRepository(ReservationLoungeDetails::class)->findOneById($form->get('loungeId')->getData()->getId());
$description = $descriptionSql->getName().' - '.$descTemp;
$price->setDescription($description);
} else {
$price->setDescription(null);
}
if (array_key_exists('priceIsActiveBool', $loungeProfile)) { $price->setPriceIsActive(true); } else { $price->setPriceIsActive(false); }
// Agregamos los años
if (array_key_exists('year1', $loungeProfile)) { $price->setYear1($loungeProfile['year1']); } else { $price->setYear1(null); }
if (array_key_exists('year2', $loungeProfile)) { $price->setYear2($loungeProfile['year2']); } else { $price->setYear2(null); }
// Agregamos los meses
if (array_key_exists('month1', $loungeProfile)) { $price->setMonth1(true); } else { $price->setMonth1(false); }
if (array_key_exists('month2', $loungeProfile)) { $price->setMonth2(true); } else { $price->setMonth2(false); }
if (array_key_exists('month3', $loungeProfile)) { $price->setMonth3(true); } else { $price->setMonth3(false); }
if (array_key_exists('month4', $loungeProfile)) { $price->setMonth4(true); } else { $price->setMonth4(false); }
if (array_key_exists('month5', $loungeProfile)) { $price->setMonth5(true); } else { $price->setMonth5(false); }
if (array_key_exists('month6', $loungeProfile)) { $price->setMonth6(true); } else { $price->setMonth6(false); }
if (array_key_exists('month7', $loungeProfile)) { $price->setMonth7(true); } else { $price->setMonth7(false); }
if (array_key_exists('month8', $loungeProfile)) { $price->setMonth8(true); } else { $price->setMonth8(false); }
if (array_key_exists('month9', $loungeProfile)) { $price->setMonth9(true); } else { $price->setMonth9(false); }
if (array_key_exists('month10', $loungeProfile)) { $price->setMonth10(true); } else { $price->setMonth10(false); }
if (array_key_exists('month11', $loungeProfile)) { $price->setMonth11(true); } else { $price->setMonth11(false); }
if (array_key_exists('month12', $loungeProfile)) { $price->setMonth12(true); } else { $price->setMonth12(false); }
// Agregamos los dias
if (array_key_exists('day1', $loungeProfile)) { $price->setDay1(true); } else { $price->setDay1(false); }
if (array_key_exists('day2', $loungeProfile)) { $price->setDay2(true); } else { $price->setDay2(false); }
if (array_key_exists('day3', $loungeProfile)) { $price->setDay3(true); } else { $price->setDay3(false); }
if (array_key_exists('day4', $loungeProfile)) { $price->setDay4(true); } else { $price->setDay4(false); }
if (array_key_exists('day5', $loungeProfile)) { $price->setDay5(true); } else { $price->setDay5(false); }
if (array_key_exists('day6', $loungeProfile)) { $price->setDay6(true); } else { $price->setDay6(false); }
if (array_key_exists('day7', $loungeProfile)) { $price->setDay7(true); } else { $price->setDay7(false); }
try{
$em->persist($price);
$em->flush();
$event = 'The price has been Updated. Now';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
/* Fin Gestión de eventos en Log */
return $this->redirectToRoute('reservations_greenpatio_edit_general');
}else{
$errorMessage = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajereservationerror', $errorMessage);
}
return $this->redirectToRoute('reservations_greenpatio_edit_general');
}
/**
* @Route("/addgpprice/", name="reservations_greenpatio_addgpprice")
*/
public function addReservationGpPriceAction( Request $request)
{
$reserv = new ReservationLoungeProfile();
$form = $this->createReservationLoungeProfileCreateForm($reserv);
$em = $this->getDoctrine()->getManager();
$gpPrices = $em->getRepository(ReservationLoungeProfile::class)->findAll();
return $this->render('MDS/GreenPatioBundle/reservations/add-reservations-gp-price.html.twig',
array('form' => $form->createView(),
'gpPrices' => $gpPrices
));
}
private function createReservationLoungeProfileCreateForm(ReservationLoungeProfile $entity)
{
$form = $this->createForm(ReservationLoungeProfileType::class, $entity, array(
'action' => $this->generateUrl('reservations_greenpatio_price_create'),
'method' => 'POST'
));
return $form;
}
/**
* @Route("/creategpprice", name="reservations_greenpatio_price_create")
*/
public function createGpPriceAction(Request $request){
$em = $this->getDoctrine()->getManager();
$reservaGpPrice = new ReservationLoungeProfile();
$form = $this->createReservationLoungeProfileCreateForm($reservaGpPrice);
$form->handleRequest($request);
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$hoy = new \DateTime("now", NULL);
$reservaGpPrice->setCreatedAt($hoy);
$reservaGpPrice->setCreatedId($user_id);
$reservaGpPrice->setUpdatedAt($hoy);
$reservaGpPrice->setUpdatedId($user_id);
$periodSql = $em->getRepository(ReservationPeriod::class)->findOneById($form->get('periodId')->getData());
if (!empty($periodSql)){
$descTemp = $periodSql->getName();
}else{
$descTemp = null;
}
$reservaGpPrice->setPeriodId($reservaGpPrice->getPeriodId()->getId());
$reservaGpPrice->setLoungeId($reservaGpPrice->getLoungeId()->getId());
if ((!is_null($reservaGpPrice->getLoungeId())) and (!is_null($descTemp))){
$descriptionSql = $em->getRepository(ReservationLoungeDetails::class)->findOneById($form->get('loungeId')->getData());
$description = $descriptionSql->getName().' - '.$descTemp;
$reservaGpPrice->setDescription($description);
} else {
$reservaGpPrice->setDescription(null);
}
if($form->isValid())
{
try{
$em->persist($reservaGpPrice);
$em->flush();
$event = 'The Item Price has been created.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
} else {
$errorMessage = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajereservationerror', $errorMessage);
}
return $this->redirectToRoute('reservations_greenpatio_prices');
}
/**
* @Route("/getReservationLoungeProfile", name="get_reservation_lounge_profile")
*/
public function getReservationLoungeProfileAction(Request $request) {
$codProfile = $_POST['idprofile'];
// $codProfile = "1";
// $codProfile = $request->request->get('idProfile');
// $codProfile = $idProfile;
$em = $this->getDoctrine()->getManager();
$salasPorPerfil = $em->getRepository(ReservationLoungeProfile::class)->findBy(
array(
'periodId' => $codProfile
)
);
$datos = array();
if (!empty($salasPorPerfil)){
foreach($salasPorPerfil as $sala){
$datos[] = array(
"id" => $sala->getId(),
"idlounge" => $sala->getLoungeId(),
"nameDescription" => $sala->getDescription(),
"price" => $sala->getPrice(),
);
}
}
$return = array(
'salasPerfil' => $datos,
'id' => $codProfile,
);
$response = new JsonResponse($return);
return $response;
}
/**
* @Route("/getReservationPeriod", name="get_reservation_Period")
*/
public function getReservationPeriodAction(Request $request) {
$id = $_POST['id'];
// $codProfile = "1";
// $id = $request->request->get('id');
// $codProfile = $idProfile;
$em = $this->getDoctrine()->getManager();
$period = $em->getRepository(ReservationPeriod::class)->findOneById($id);
$datos = array();
if (!empty($period)){
$datos = array(
"id" => $period->getId(),
"hourStart" => is_null($period->getHourStart())?"":$period->getHourStart()->format('H:i'),
"hourEnd" => is_null($period->getHourEnd())?"":$period->getHourEnd()->format('H:i'),
);
}
$return = $datos;
$response = new JsonResponse($return);
return $response;
}
/**
* @Route("/getReservationLoungePrice", name="get_reservation_lounge_price")
*/
public function getReservationLoungePriceAction(Request $request) {
$id = $_POST['id'];
// $codProfile = "1";
// $codProfile = $request->request->get('idProfile');
// $codProfile = $idProfile;
$em = $this->getDoctrine()->getManager();
$precio = $em->getRepository(ReservationLoungeProfile::class)->findOneById($id);
$datos = array();
if (!empty($precio)){
$datos = array(
"id" => $precio->getId(),
"price" => $precio->getPrice()
);
}
$return = $datos;
$response = new JsonResponse($return);
return $response;
}
/**
* @Route("/addloungedetails/", name="reservations_greenpatio_addloungedetails")
*/
public function addReservationLoungeDetailsAction( Request $request)
{
$lounge = new ReservationLoungeDetails();
$form = $this->createReservationLoungeDetailsCreateForm($lounge);
return $this->render('MDS/GreenPatioBundle/reservations/add-reservations-lounge-details.html.twig',
array('form' => $form->createView()
));
}
private function createReservationLoungeDetailsCreateForm(ReservationLoungeDetails $entity)
{
$form = $this->createForm(ReservationLoungeDetailsType::class, $entity, array(
'action' => $this->generateUrl('reservations_greenpatio_lounge_details_create'),
'method' => 'POST'
));
return $form;
}
/**
* @Route("/createloungedetails", name="reservations_greenpatio_lounge_details_create")
*/
public function createLoungeDetailsAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
$lounge = new ReservationLoungeDetails();
$form = $this->createReservationLoungeDetailsCreateForm($lounge);
$form->handleRequest($request);
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$hoy = new \DateTime("now", NULL);
$lounge->setCreatedAt($hoy);
$lounge->setCreatedId($user_id);
$lounge->setUpdatedAt($hoy);
$lounge->setUpdatedId($user_id);
if($form->isValid()){
try{
$em->persist($lounge);
$em->flush();
$event = 'The Lounge has been created.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
$this->reordenarSalas($lounge->getRankLounge(), $lounge->getId());
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
} else {
$errorMessage = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajereservationerror', $errorMessage);
}
return $this->redirectToRoute('reservations_greenpatio_list_lounges');
}
/**
* @Route("/listloungedetails", name="reservations_greenpatio_list_lounges")
*/
public function indexLoungesAction(Request $request) {
// return $this->redirectToRoute('reservations_greenpatio_edit_general');
$em = $this->getDoctrine()->getManager();
$salas = $em->getRepository(ReservationLoungeDetails::class)->findAll();
$lounge = new ReservationLoungeDetails();
$form = $this->createReservationLoungeDetailsCreateForm($lounge);
return $this->render('MDS/GreenPatioBundle/reservations/list-reservations-lounges-details.html.twig',
array(
'groups' => null,
'salas' => $salas,
'form' => $form->createView()
)
);
}
/**
* @Route("/editloungedetails/{id}", name="reservations_lounge_details")
*/
public function editLoungeDetailsAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$lounge = $em->getRepository(ReservationLoungeDetails::class)->findOneById($id);
$loungePictures = $em->getRepository(ReservationLoungePicture::class)->findBy(
array('loungeId' => $id,
'title' => null,));
$loungeVideos = $em->getRepository(ReservationLoungeVideo::class)->findByLoungeId($id);
$loungeDescriptions = $em->getRepository(ReservationLoungeDescription::class)->findByLoungeId($id);
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
/* Gestión de eventos en Log */
$user_lastname = $user_logueado->getLastname();
$user_name = $user_logueado->getName();
$user_email = $user_logueado->getEmail();
$user_rol = $user_logueado->getRoles();
$event_url = $request->getPathInfo();
$event_complete = $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
$hoy = new \DateTime("now", NULL);
$form = $this->createEditReservationLoungeDetailsForm($lounge, $id);
// Para evitar le duplicidad de idiomas en las descripciones
$loungeDescriptionsPreexistentes = $em->getRepository(ReservationLoungeDescription::class)->findByLoungeId($id);
$idiomasPreexistentes = array();
foreach ($loungeDescriptionsPreexistentes as $item){
$idiomasPreexistentes[] = $item->getLanguage();
}
$datos_videos = array();
foreach ($loungeVideos as $video){
$urvideo_final = '<iframe class="embed-responsive-item" src="'.$video->getVideo().'"></iframe>';
$datos_videos[] = array(
'id' => $video->getId(),
'urlvideo' => $urvideo_final
);
}
$blueprints = $em->getRepository(ReservationLoungePicture::class)->findBy(
array('loungeId' => $id,
'title' => 'Blueprint',
)
);
$pictTeatro = $em->getRepository(ReservationLoungePicture::class)->findBy(
array('loungeId' => $id,
'title' => 'Teatro',
)
);
if (sizeof($pictTeatro) == 0) {$pictTeatro = null;}
$pictCoctel = $em->getRepository(ReservationLoungePicture::class)->findBy(
array('loungeId' => $id,
'title' => 'Coctel',
)
);
if (sizeof($pictCoctel) == 0) {$pictCoctel = null;}
$pictEscuela = $em->getRepository(ReservationLoungePicture::class)->findBy(
array('loungeId' => $id,
'title' => 'Escuela',
)
);
if (sizeof($pictEscuela) == 0) {$pictEscuela = null;}
$picsMontaje = array (
'pictTeatro' => $pictTeatro,
'pictCoctel' => $pictCoctel,
'pictEscuela' => $pictEscuela
);
if(empty($picsMontaje['pictTeatro']) and empty($picsMontaje['pictCoctel']) and empty($picsMontaje['pictEscuela'])){
$picsMontaje = null;
}
$loungedimmensions = $em->getRepository(ReservationLoungeDetails::class)->findOneById($id);
return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-lounge-details.html.twig',
array(
'id' => $id,
'hoy' => $hoy,
'lounge' => $lounge,
'descriptions' => $loungeDescriptions,
'pictures' => $loungePictures,
'blueprints' => $blueprints,
'picsMontaje' => $picsMontaje,
'loungedimmensions' => $loungedimmensions,
'videos' => $datos_videos,
'idiomasPreexistentes' => $idiomasPreexistentes,
'form' => $form->createView()
));
}
private function createEditReservationLoungeDetailsForm(ReservationLoungeDetails $entity, $id)
{
$form = $this->createForm(ReservationLoungeDetailsType::class, $entity,
array(
'action' => $this->generateUrl('reservations_lounge_details_update',
array(
'id' => $id,
'price' => $entity
)
), 'method' => 'PUT'));
return $form;
}
/**
* @Route("/updateloungedetails/{id}", name="reservations_lounge_details_update")
*/
public function updateLoungeDetailsAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$lounge = $em->getRepository(ReservationLoungeDetails::class)->findOneById($id);
$lounge->setName($request->request->get('mds_greenpatiobundle_reservationloungedetails')['name']);
$preNumber = $lounge->getRankLounge();
$postNumber = $request->request->get('mds_greenpatiobundle_reservationloungedetails')['rankLounge'];
$hoy = new \DateTime("now", NULL);
$form = $this->createEditReservationLoungeDetailsForm($lounge, $id);
$form->handleRequest($request);
if($form->isValid())
{
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
/* Gestión de eventos en Log */
$user_lastname = $user_logueado->getLastname();
$user_name = $user_logueado->getName();
$user_email = $user_logueado->getEmail();
$user_rol = $user_logueado->getRoles();
$event_url = $request->getPathInfo();
$event_complete = $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
$lounge->setUpdatedId($user_id);
$lounge->setUpdatedAt($hoy);
try{
// Reordenar salas si se ha cambiado el rank number de la sala
if (!( $preNumber == $postNumber)){ $this->reordenarSalas($postNumber, $lounge->getId()); }
$em->persist($lounge);
$em->flush();
$event = 'The lounge has been Updated. Now';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
/* Fin Gestión de eventos en Log */
return $this->redirectToRoute('reservations_greenpatio_list_lounges');
}else{
$errorMessage = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajereservationerror', $errorMessage);
}
return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-lounge-details.html.twig',
array(
'id' => $lounge->getId(),
'lounge' => $lounge,
'form' => $form->createView()
)
);
}
/**
* @Route("/deleteloungedetails/{id}", name="reservations_lounge_details_delete")
*/
public function deleteLoungeDetailsAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$lounge = $em->getRepository(ReservationLoungeDetails::class)->findOneById($id);
try{
$em->remove($lounge);
$em->flush();
// INICIO: Eliminamos los precios asociados a la sala
$profiles = $em->getRepository(ReservationLoungeProfile::class)->findByLoungeId($id);
foreach ($profiles as $item){
$em->remove($item);
$em->flush();
}
// FIN: Eliminamos los precios asociados a la sala
$event = 'The Reservation has been Deleted. Now';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
/* Fin Gestión de eventos en Log */
return $this->redirectToRoute('reservations_greenpatio_list_lounges');
}
/**
* @Route("/deleteloungeelement/{idlounge}/{idtype}/{idelement}", name="reservations_lounge_element_delete")
*/
public function deleteLoungeElementAction($idlounge, $idtype, $idelement, Request $request)
{
$em = $this->getDoctrine()->getManager();
switch ($idtype){
case 1: //Descripcion
$item = $em->getRepository(ReservationLoungeDescription::class)->findOneById($idelement);
break;
case 2: //Imagenes
$item = $em->getRepository(ReservationLoungePicture::class)->findOneById($idelement);
break;
case 3: //Videos
$item = $em->getRepository(ReservationLoungeVideo::class)->findOneById($idelement);
break;
default:
$item = null;
break;
}
try{
$em->remove($item);
$em->flush();
$event = 'The Item has been Deleted. Now';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
/* Fin Gestión de eventos en Log */
return $this->redirectToRoute('reservations_lounge_details',
array(
'id' => $idlounge
));
}
/**
*@Route("/exclamation", name="get_exclamation")
*/
public function exclamationAction( Request $request) {
// public function exclamationAction($dateStar, $dateEnd, $hourStar, $hourEnd, $profileId, Request $request) {
//@Route("/exclamation/{dateStar}/{dateEnd}/{hourStar}/{hourEnd}/{profileId}", name="get_exclamation")
$dateStar = $request->request->get('dateStar');
$dateEnd = $request->request->get('dateEnd');
$hourStar = $request->request->get('hourStar');
$hourEnd = $request->request->get('hourEnd');
$profileId = $request->request->get('profileId');
$mountingDate = $request->request->get('mountingDate');
$mountingHourStart = $request->request->get('mountingHourStart');
$removalDate = $request->request->get('removalDate');
$removalHourEnd = $request->request->get('removalHourEnd');
// INICIO: Si hay montaje o desmontaje en el evento nuevo las fechas a utilizar son estas y no las del evento
if (!empty($mountingDate)){
$dateStar = $mountingDate;
if (!empty($mountingHourStart)){
$hourStar = $mountingHourStart;
}
}
if (!empty($removalDate)){
$dateEnd = $removalDate;
if (!empty($removalHourEnd)){
$hourEnd = $removalHourEnd;
}
}
// FIN: Si hay montaje o desmontaje en el evento nuevo las fechas a utilizar son estas y no las del evento
$em = $this->getDoctrine()->getManager();
$loungeId = $em->getRepository(ReservationLoungeProfile::class)->findOneById($profileId);
$newdateStar = $dateStar.' '.$hourStar.':00';
$newdateEnd = $dateEnd .' '.$hourEnd.':00';
$parameters = array(
'dateStar' => $newdateStar,
'dateEnd' => $newdateEnd,
'idLounge' => $loungeId->getLoungeId(),
);
$dql = 'SELECT i
FROM GreenPatioBundle:ReservationLounge i
WHERE i.dateStart >= :dateStar
and i.dateStart <= :dateEnd
and i.idLounge = :idLounge';
$query = $em->createQuery($dql)->setParameters($parameters);
$reservationLounge1 = $query->getResult();
$dql = 'SELECT i
FROM GreenPatioBundle:ReservationLounge i
WHERE i.dateEnd >= :dateStar
and i.dateEnd <= :dateEnd
and i.idLounge = :idLounge';
$query = $em->createQuery($dql)->setParameters($parameters);
$reservationLounge2 = $query->getResult();
$parameters = array(
'dateStar' => $newdateStar,
'idLounge' => $loungeId->getLoungeId()
);
$dql = 'SELECT i
FROM GreenPatioBundle:ReservationLounge i
WHERE :dateStar >= i.dateStart
and :dateStar <= i.dateEnd
and i.idLounge = :idLounge';
$query = $em->createQuery($dql)->setParameters($parameters);
$reservationLounge3 = $query->getResult();
$parameters = array(
'dateEnd' => $newdateEnd,
'idLounge' => $loungeId->getLoungeId(),
);
$dql = 'SELECT i
FROM GreenPatioBundle:ReservationLounge i
WHERE :dateEnd >= i.dateStart
and :dateEnd <= i.dateEnd
and i.idLounge = :idLounge';
$query = $em->createQuery($dql)->setParameters($parameters);
$reservationLounge4 = $query->getResult();
// INICIO: Si hay montaje o desmontaje en los eventos de la BD, las fechas a utilizar son estas y no las del evento
$parameters = array(
'dateStar' => $newdateStar,
'dateEnd' => $newdateEnd,
'idLounge' => $loungeId->getLoungeId(),
);
$dql = 'SELECT i
FROM GreenPatioBundle:ReservationLounge i
WHERE i.mountingDate >= :dateStar
and i.mountingDate <= :dateEnd
and i.idLounge = :idLounge';
$query = $em->createQuery($dql)->setParameters($parameters);
$reservationLounge5 = $query->getResult();
// FIN: Si hay montaje o desmontaje en los eventos de la BD, las fechas a utilizar son estas y no las del evento
$reservationLounge = array_merge($reservationLounge1,$reservationLounge2,$reservationLounge3,$reservationLounge4);
$data = array();
foreach ($reservationLounge as $res){
$reservation = $em->getRepository(Reservation::class)->findOneById($res->getIdReservation());
if (!is_null($reservation->getIdProposal() )){
$proposal = $em->getRepository(Proposal::class)->findOneById($reservation->getIdProposal());
$user = $em->getRepository(User::class)->findOneById($proposal->getAgentId());
$data[] = array(
'name' => 'Id Proposal',
'idproposal' => $proposal->getId(),
'title' => $proposal->getTitle(),
'Agent' => $user->getName().' '.$user->getLastname(),
);
}else{
$user = $em->getRepository(User::class)->findOneById($reservation->getCreatedBy());
$data[] = array(
'name' => 'Id Green Patio',
'idproposal' => $reservation->getId(),
'title' => $reservation->getTitle(),
'Agent' => $user->getName().' '.$user->getLastname(),
);
}
}
$return = array(
'reservation' => $data,
);
$response = new JsonResponse($return);
return $response;
}
/**
* @Route("/addperiod/", name="reservations_greenpatio_addperiod")
*/
public function addReservationPeriodAction( Request $request)
{
$period = new ReservationPeriod();
$form = $this->createReservationperiodCreateForm($period);
return $this->render('MDS/GreenPatioBundle/reservations/list-reservations-period.html.twig',
array('form' => $form->createView()
));
}
private function createReservationperiodCreateForm(Reservationperiod $entity)
{
$form = $this->createForm(ReservationPeriodType::class, $entity, array(
'action' => $this->generateUrl('reservations_greenpatio_period_create'),
'method' => 'POST'
));
return $form;
}
/**
* @Route("/createperiod", name="reservations_greenpatio_period_create")
*/
public function createPeriodAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
$period = new ReservationPeriod();
$form = $this->createReservationPeriodCreateForm($period);
$form->handleRequest($request);
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$hoy = new \DateTime("now", NULL);
$period->setCreatedAt($hoy);
$period->setCreatedId($user_id);
$period->setUpdatedAt($hoy);
$period->setUpdatedId($user_id);
if($form->isValid())
{
try{
$em->persist($period);
$em->flush();
$event = 'The Period has been created.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
} else {
$errorMessage = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajereservationerror', $errorMessage);
}
return $this->redirectToRoute('reservations_greenpatio_list_period');
}
/**
* @Route("/listperiod", name="reservations_greenpatio_list_period")
*/
public function indexPeriodAction(Request $request) {
//return $this->redirectToRoute('reservations_greenpatio_edit_general');
$em = $this->getDoctrine()->getManager();
$periods = $em->getRepository(ReservationPeriod::class)->findAll();
$period = new ReservationPeriod();
$form = $this->createReservationPeriodCreateForm($period);
return $this->render('MDS/GreenPatioBundle/reservations/list-reservations-period.html.twig',
array(
'groups' => null,
'form' => $form->createView(),
'periods' => $periods
)
);
}
/**
* @Route("/deleteperiod/{id}", name="reservations_period_delete")
*/
public function deletePeriodAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$period = $em->getRepository(ReservationPeriod::class)->findOneById($id);
try{
$em->remove($period);
$em->flush();
$event = 'The Reservation has been Deleted. Now';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
/* Fin Gestión de eventos en Log */
return $this->redirectToRoute('reservations_greenpatio_list_period');
}
/**
* @Route("/editperiod/{id}", name="reservations_edit_period")
*/
public function editPeriodAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$period = $em->getRepository(ReservationPeriod::class)->findOneById($id);
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
/* Gestión de eventos en Log */
$user_lastname = $user_logueado->getLastname();
$user_name = $user_logueado->getName();
$user_email = $user_logueado->getEmail();
$user_rol = $user_logueado->getRoles();
$event_url = $request->getPathInfo();
$event_complete = $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
$hoy = new \DateTime("now", NULL);
$form = $this->createEditPeriodForm($period, $id);
return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-period.html.twig',
array(
'id' => $id,
'hoy' => $hoy,
'period' => $period,
'form' => $form->createView()
));
}
private function createEditPeriodForm(ReservationPeriod $entity, $id)
{
$form = $this->createForm(ReservationPeriodType::class, $entity,
array(
'action' => $this->generateUrl('reservations_period_update',
array(
'id' => $id,
'period' => $entity
)
), 'method' => 'PUT'));
return $form;
}
/**
* @Route("/updateperiod/{id}", name="reservations_period_update")
*/
public function updatePeriodAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$period = $em->getRepository(ReservationPeriod::class)->findOneById($id);
$newName = $request->request->get('mds_greenpatiobundle_reservationperiod')['name'];
$period->setName($newName);
$hoy = new \DateTime("now", NULL);
$form = $this->createEditPeriodForm($period, $id);
$form->handleRequest($request);
if($form->isValid())
{
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
/* Gestión de eventos en Log */
$user_lastname = $user_logueado->getLastname();
$user_name = $user_logueado->getName();
$user_email = $user_logueado->getEmail();
$user_rol = $user_logueado->getRoles();
$event_url = $request->getPathInfo();
$event_complete = $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
$period->setUpdatedId($user_id);
$period->setUpdatedAt($hoy);
try{
$em->persist($period);
$em->flush();
$event = 'The period has been Updated. Now';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
/* Fin Gestión de eventos en Log */
return $this->redirectToRoute('reservations_greenpatio_list_period');
}else{
$errorMessage = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajereservationerror', $errorMessage);
}
return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-period.html.twig',
array(
'id' => $id,
'hoy' => $hoy,
'period' => $period,
'form' => $form->createView()
)
);
}
/**
* @Route("/getperiodos/", name="reservations_greenpatio_get_periods")
*/
public function addReservationPeriodsAction( Request $request)
{
$em = $this->getDoctrine()->getManager();
$periods = $em->getRepository(ReservationPeriod::class)->findAll();
$data = array();
foreach ($periods as $items){
$data[] = array(
'id' => $items->getId(),
'name' => $items->getName(),
);
}
$return = array(
'periods' => $data,
);
$response = new JsonResponse($return);
return $response;
}
/**
* @Route("/addsimple/", name="reservations_greenpatio_add_simple")
*/
public function addReservationSimpleAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
$reserv = new Reservation();
$form = $this->createReservationCreateForm($reserv);
$parameters = array();
$dql = 'SELECT p
FROM App:ClientContact p
ORDER BY p.name ASC ';
$query = $em->createQuery($dql)->setParameters($parameters);
$clientsContact = $query->getResult();
return $this->render('MDS/GreenPatioBundle/reservations/add-reservations-simple.html.twig',
array(
'form' => $form->createView(),
'clientsContact' => $clientsContact,
));
}
private function createReservationCreateForm(Reservation $entity)
{
$form = $this->createForm(ReservationType::class, $entity, array(
'action' => $this->generateUrl('reservations_greenpatio_create_simple'),
'method' => 'POST'
));
return $form;
}
/**
* @Route("/createsimple", name="reservations_greenpatio_create_simple")
*/
public function createSimpleAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
$clientContact = $request->request->get('clientContact');
$contactUnregistered = $request->request->get('contactUnregistered');
$nameContactUnregistered = $request->request->get('nameContactUnregistered');
$phoneContactUnregistered = $request->request->get('phoneContactUnregistered');
$daysBlockToEmail = $request->request->get('days');
$reserva = new Reservation();
$form = $this->createReservationCreateForm($reserva);
$form->handleRequest($request);
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$hoy = new \DateTime("now", NULL);
if($form->isValid())
{
$reserva->setUpdatedBy($user_id);
$reserva->setUpdatedAt($hoy);
// El proveedor de catering no es obligatorio
if (is_null($reserva->getCateringName())){
$reserva->setSupplier(4765);
$reserva->setCateringName('HIGO & TRIGO, S.L.'); // Por defecto se desea el Catering de Higo&Trigo
} else {
$reserva->setSupplier($reserva->getCateringName()->getId());
$reserva->setCateringName($reserva->getCateringName()->getName());
}
if (!empty($reserva->getClient())){
$reserva->setClient($reserva->getClient()->getId());
}
$reserva->setCreatedAt($hoy);
$reserva->setCreatedBy($user_id);
if(empty($reserva->getDaysBlock()) or !(is_numeric($reserva->getDaysBlock()))){
$reserva->setDaysBlock(7);
}
if(is_null($reserva->getPriority()) or empty($reserva->getPriority()) or ($reserva->getPriority() == 'Auto')){
$reserva->setPriority(1);
} else {
// Se ha establecido una prioridad y todas las prioridades que coincidan con este evento deben ser alteradas
// PENDIENTE A HABLAR CON RAFA
}
// No hay salas, se asigna a la reserva la fecha del dia actual
$reserva->setDateStart(new \DateTime('2078-01-01'));
$reserva->setDateEnd(new \DateTime('2000-01-01'));
if(!empty($daysBlockToEmail)){ $reserva->setDays($daysBlockToEmail); }
if(!empty($clientContact)){ $reserva->setClientContact($clientContact); }
if(!empty($contactUnregistered)){
if (filter_var($contactUnregistered, FILTER_VALIDATE_EMAIL)) { // Validamos el correo electronico
$reserva->setContactUnregistered($contactUnregistered);
}
}
if(!empty($nameContactUnregistered)){
$reserva->setNameContactUnregistered($nameContactUnregistered);
}
if(!empty($phoneContactUnregistered)){
$reserva->setPhoneContactUnregistered($phoneContactUnregistered);
}
if(empty($reserva->getStatus())){
$reserva->setStatus('Iniciado');
} else {
//No se debe crear un evento con estado confirmado. Salva y Rafa seran quienes confirmen los eventos
if(($reserva->getStatus() == 'Confirmed')){
// $reserva->setStatus('Cotizado'); //Ya no es necesario que Rafa o Salva confirmen
}
}
// Genera un token único utilizando la función uniqid() de PHP
$token = uniqid();
$reserva->setToken($token);
try{
$em->persist($reserva);
$em->flush();
$event = 'The Reservation has been created.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
//Envio de correo al cliente y al agente si es un bloqueo
if(is_null($reserva->getStatus())){
$reserva->setStatus('Cotizado');
$em->persist($reserva);
$em->flush();
} else {
if (($reserva->getStatus() == 'Bloqueo')) {
if ((!empty($reserva->getClient())) or (!empty($reserva->getClientContact())) or (!empty($reserva->getContactUnregistered()))) {
//Solo se envia correo de notificacion del correo si hay cliente o contacto o contacto no registrado
$client = $em->getRepository(Client::class)->findOneById($reserva->getClient());
$mailAddressTo = null;
if (!empty($client) and (!empty($client->getEmail()))){ $mailAddressTo = $client->getEmail(); } // Si hay cliente con correo se le envia a este
if (!empty($reserva->getClientContact())){
$contacto = $em->getRepository(ClientContact::class)->findOneById($reserva->getClientContact());
if (!empty($contacto) and (!empty($contacto->getEmail()))){ $mailAddressTo = $contacto->getEmail(); } // Si hay un contacto seleccionado tiene prioridad sobre el contacto de cliente
}
if (!empty($reserva->getContactUnregistered())){ $mailAddressTo = $reserva->getContactUnregistered(); } // Si hay correo de contacto no registrado este tiene prioridad sobre todos
if (!empty($mailAddressTo)) {
$agente = $em->getRepository(User::class)->findOneById($user_id);
$mailAddressFrom = $agente->getEmail();
$mailSubject = 'Notificación de Bloqueo - Reserva de espacio en Green Patio';
$mailBody = 'Estimado cliente,' .
'<br><br> Nos ponemos en contacto con usted para confirmarle que su reserva ha quedado registrada en Green Patio para la realización de su próximo evento.' .
'<br>Le recordamos que esta reserva tiene una validez de ' . $reserva->getDaysBlock() . ' días. Si pasado este tiempo no hemos recibido confirmación de vuestra parte, procederemos a la cancelación de la misma.' .
'<br><br>Reserva: ' . $reserva->getId() .' - '. $reserva->getTitle();
if (!empty($reserva->getDays())){ $mailBody = $mailBody . '<br>Días bloqueados: '.$reserva->getDays(); }
$mailBody = $mailBody . '<br><br><br>Muchas gracias por su colaboración.<br><br><br>';
//Se envia el correo al cliente y al agente
$this->sendMail($mailAddressFrom, $mailAddressTo, $mailSubject, $mailBody);
//Se genera el control de la alerta
$this->makeAlert($reserva->getId(), $reserva->getClient(), $mailAddressTo, $agente->getId(), $agente->getEmail());
}
}
}
}
} else {
$errorMessagebase = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajetracingerror', $errorMessagebase);
$periods = $em->getRepository(ReservationPeriod::class)->findAll();
return $this->render('MDS/GreenPatioBundle/reservations/add-reservations.html.twig',
array(
'form' => $form->createView(),
'periods' => $periods,
));
}
$id = $reserva->getId();
// Sincronización con HT
if (!empty($reserva)) {
// Rafa indico que siempre se sincronice al abrir un expediente de GP
if (in_array($reserva->getStatus(), [null, '', 'Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
// if ($reserva->getStatus() == 'Confirmed' or $reserva->getStatus() == 'Invoiced' or $reserva->getStatus() == 'Iniciado' or $reserva->getStatus() == 'Cotizado' or $reserva->getStatus() == 'Bloqueo') {
if ($reserva->getCateringName() == 'HIGO & TRIGO, S.L.') {
// Si no se ha creado aun el expediente de HT debemos crearlo
$htFile = $em->getRepository(HtFile::class)->findByReservation($reserva);
if (empty($htFile)) { return $this->redirectToRoute('sinc_gp_ht', array('id' => $id,)); }
}
}
}
// Sincronización con Av Express
$cotizable = $this->laReservaEsCotizable($reserva->getId());
if ($cotizable) {
// Rafa indico que siempre se sincronice al abrir un expediente de GP
if (in_array($reserva->getStatus(), [null, '', 'Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
// if (in_array($reserva->getStatus(), ['Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
$AveFile = $em->getRepository(AveFiles::class)->findByReservation($reserva);
if (empty($AveFile)) {
// Si no se ha creado aun el expediente de Av Express debemos crearlo
return $this->redirectToRoute('sinc_gp_ave', array('id' => $id,));
}
}
}
return $this->redirectToRoute('reservations_greenpatio_edit_simple', array( 'id' => $id, 'token' => null ));
}
/**
* @Route("/editsimple/{id}", name="reservations_greenpatio_edit_simple")
*/
public function editReservationSimpleItemsAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$lounges = $em->getRepository(ReservationLounge::class)->findByIdReservation($id);
$loungesSimple = $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($id);
$services = $em->getRepository(ReservationService::class)->findByReservationId($id);
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$lounge = new ReservationLounge();
$lounge->setIdReservation($id);
$monDesmon = new ReservationLounge();
$monDesmon->setIdReservation($id);
$form1 = $this->createReservationCreateForm($reserva);
$form2 = $this->createReservationLoungeCreateForm($lounge);
$form3 = $this->createReservationLoungeMonDesCreateForm($monDesmon);
//UPDATE GREEN
if (empty($loungesSimple)){
if (!empty($lounges)){
$arrayLoungesByDay = array();
// INICIO: Se forma el arreglo para las salas dia a dia
foreach ($lounges as $item){
// Con un Temporal se ponen a cero las horas para que el calculo de los dias (->diff) sean exactos
$itemTemp = $item;
$tempDateStart = $item->getDateStart()->format('Y-m-d H:i'); // Se estaba perdiendo el valor de $item en horas y minutos
$tempDateEnd = $item->getDateEnd()->format('Y-m-d H:i');
$itemTemp->setDateStart(new DateTime ($itemTemp->getDateStart()->format('Y-m-d')));
$itemTemp->setDateEnd(new DateTime ($itemTemp->getDateEnd()->format('Y-m-d')));
if ($item->getDateStart() < $item->getDateEnd()) { $i = (($itemTemp->getDateEnd()->diff($itemTemp->getDateStart()))->days) + 1; } else { $i = 1; }
for ($indice = 0; $indice < $i; $indice++){
$item->setDateStart(new DateTime($tempDateStart));
$item->setDateEnd(new DateTime($tempDateEnd));
if ($item->getDateStart() < $item->getDateEnd()){
// Estas trabajando un registro antiguo de multiples dias
$dateTemp = ($item->getDateStart())->format('Ymd') + $indice;
} else {
$dateTemp = ($item->getDateStart())->format('Ymd');
}
$arrayLoungesByDay[$item->getRankQuote()][$dateTemp][] = array(
'id' => "0",
'loungeName' => $item->getLoungeName(),
'servicePrice' => $item->getServicePrice(),
'pax' => $item->getPax(),
'type' => $item->getType(),
'dateStart' => $item->getDateStart(),
'dateEnd' => $item->getDateEnd(),
);
}
ksort($arrayLoungesByDay[$item->getRankQuote()]);
}
} else {
$arrayLoungesByDay = array();
}
} else {
foreach ($loungesSimple as $item){
$dateStart = $item->getDateStart()->format('Ymd');
$arrayLoungesByDay[$item->getRankQuote()][$dateStart][] = $item;
ksort($arrayLoungesByDay[$item->getRankQuote()]);
}
}
// FIN: Se forma el arreglo para las salas dia a dia
$numeroItems = sizeof($arrayLoungesByDay);
$data = $this->CalculosTotalesEditSimple($reserva->getId());
$client = $em->getRepository(Client::class)->findOneById($reserva->getClient());
if (!empty($client)){ $clientId = $client->getId(); } else { $clientId = 0; }
$clients = $em->getRepository(Client::class)->findAll();
/* CONSULTAMOS PARA SUMAR */
$parameters = array( 'tags' => 'CATERING', 'company' => 'HIGO & TRIGO, S.L.', );
$dql = 'SELECT p
FROM App\Entity\Supplier p
WHERE (p.tags LIKE :tags) AND (p.company <> :company)
ORDER BY p.company ASC ';
$query = $em->createQuery($dql)->setParameters($parameters);
$caterings = $query->getResult();
// Agregamos el catering de Higo & Trigo de primero
$catHigoTrigo = $em->getRepository(Supplier::class)->findOneById(4765);
array_unshift($caterings, $catHigoTrigo);
$userCreatedBy = $em->getRepository(User::class)->findOneById($reserva->getCreatedBy());
$createdBy = $userCreatedBy->getName().' '.$userCreatedBy->getLastName();
$parameters = array();
$dql = 'SELECT p
FROM GreenPatioBundle:ReservationLoungeDetails p
ORDER BY p.rankLounge ASC ';
$query = $em->createQuery($dql)->setParameters($parameters);
$loungesPre = $query->getResult();
$loungesNames = $em->getRepository(ReservationLoungeDetails::class)->findAll();
$listSupplier = $em->getRepository(Supplier::class)->findAll();
$em = $this->getDoctrine()->getManager();
$invoiced = $em->getRepository(ReservationInvoice::class)->findByReservationId($id);
$invoicedRec = $em->getRepository(ReservationInvoiceRec::class)->findByReservationId($id);
foreach ($invoicedRec as $item){ array_push($invoiced, $item); }
$invoicedCvr = $em->getRepository(CvrReservationInvoice::class)->findByReservationId($id);
$invoicedLine = empty($invoicedCvr) ? 'GP' : 'CVR';
foreach ($invoicedCvr as $item){ array_push($invoiced, $item); }
$invoicedCvrRec = $em->getRepository(CvrReservationInvoiceRec::class)->findByReservationId($id);
foreach ($invoicedCvrRec as $item){ array_push($invoiced, $item); }
$sumatoriaTotalNet = 0; $sumatoriaTotalVat = 0; $sumatoriaTotal = 0;
$resultados = array(
'totalNeto' => 0,
'vat' => 0,
'total' => 0,
);
foreach ($invoiced as $idArray => $item){
$reserva = $em->getRepository(Reservation::class)->findOneById($item->getReservationId());
$invoiced[$idArray]->setNumber($reserva->getTitle());
$client = $em->getRepository(Client::class)->findOneById($reserva->getClient());
if(!empty($client)){ $invoiced[$idArray]->setPrefix($client->getName()); } else { $invoiced[$idArray]->setPrefix(''); }
if ($item->getType() == 'Invoice Deposit'){
// INICIO: Verificamos el uso de la factura de deposito dentro de una factura, en este caso se usa el valor absoluto del balance para evitar la resta doble
$paymentItem = $em->getRepository(ReservationPaymentsClient::class)->findOneByInvoiceId($item->getId());
if (!empty($paymentItem)){
$invoiceElementItem = $em->getRepository(ReservationInvoiceItems::class)->findOneByPayControlId($paymentItem->getId());
if (!empty($invoiceElementItem)) {
// Solo nos interesa evaluar las facturas y no las facturas de deposito
$invoiceOfItem = $em->getRepository(ReservationInvoice::class)->findOneById($invoiceElementItem->getInvoiceId());
if (!empty($invoiceOfItem)) {
if ($invoiceOfItem->getType() == 'Invoice') {
$invoiced[$idArray]->setBalance(0);
}
}
}
}
// FIN: Verificamos el uso de la factura de deposito dentro de una factura, en este caso se usa el valor absoluto del balance para evitar la resta doble
$invoicedDepositItems = $em->getRepository(ReservationInvoiceDepositItems::class)->findByControlId($item->getMaster());
foreach ($invoicedDepositItems as $itemDep){
$invoiced[$idArray]->setTotalNet($invoiced[$idArray]->getTotalNet() + $itemDep->getAmount());
$invoiced[$idArray]->setVat($invoiced[$idArray]->getVat() + (($itemDep->getAmount() * $itemDep->getIva())/100));
$invoiced[$idArray]->setTotal($invoiced[$idArray]->getTotal() + ($itemDep->getAmount() + (($itemDep->getAmount() * $itemDep->getIva())/100)));
}
}
// Valores Netos
if ($item->getType()=='Invoice'){
$sumatoriaTotalNet = $sumatoriaTotalNet + $item->getTotalNet();
} else {
if ($item->getType()=='Invoice Deposit'){
//Factura de deposito
$sumatoriaTotalNet = $sumatoriaTotalNet - 0; //$item->getTotalNet(); // Las facturas de deposito no deben computar en este calculo
} else {
if ($item->getType()=='Invoice Deposit Rec'){
//Factura de Deposito rectificativa
$sumatoriaTotalNet = $sumatoriaTotalNet - 0;
} else {
//Factura rectificativa
$sumatoriaTotalNet = $sumatoriaTotalNet + $item->getTotalNet(); // Se han llenado de datos negativos las rectificativas, solo es necesario sumar
}
}
}
//Valores Iva
if ($item->getType()=='Invoice') {
$sumatoriaTotalVat = $sumatoriaTotalVat + $item->getVat();
} else {
if ($item->getType()=='Invoice Deposit'){
//Factura de deposito
$sumatoriaTotalVat = $sumatoriaTotalVat - 0; //$item->getVat(); // Las facturas de deposito no deben computar en este calculo
} else {
if ($item->getType()=='Invoice Deposit Rec'){
//Factura de Deposito rectificativa
$sumatoriaTotalNet = $sumatoriaTotalNet - 0;
} else {
//Factura rectificativa
$sumatoriaTotalVat = $sumatoriaTotalVat + $item->getVat(); // Se han llenado de datos negativos las rectificativas, solo es necesario sumar
}
}
}
if (($item->getType()=='Invoice Deposit') or ($item->getType()=='Invoice Deposit Rec')) {
$sumatoriaTotal = $sumatoriaTotal + 0; // Las facturas de deposito o de deposito rectificativas no deben computar en este calculo
} else {
$sumatoriaTotal = $sumatoriaTotal + $item->getTotal();
}
$resultados = array(
'totalNeto' => $sumatoriaTotalNet,
'vat' => $sumatoriaTotalVat,
'total' => $sumatoriaTotal,
);
}
$paymentsAll = $em->getRepository(ReservationPaymentsClient::class)->findByReservationId($id);
// Verificamos pagos aun sin facturar
$paymentNotIvoiced = array();
foreach ($paymentsAll as $item){
$isInvoiced = $em->getRepository(ReservationInvoiceItems::class)->findBy(array('reservationId' => $id, 'payControlId' => $item->getId()));
if (empty($isInvoiced)){ array_push($paymentNotIvoiced, $item); }
}
//Buscamos los agentes y seleccionamos por defecto el usuario logeado
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$parameters = array(
'clientId' => $clientId,
);
$dql = 'SELECT p
FROM App:ClientContact p
WHERE p.clientId = :clientId
ORDER BY p.name ASC ';
$query = $em->createQuery($dql)->setParameters($parameters);
$clientsContact = $query->getResult();
// Fecha de notificacion en caso de ser un bloqueo
$reservationMailAlertClient = $em->getRepository(ReservationMailAlertClient::class)->findOneByReservationId($id);
$nextMailAlert = null;
if (!empty($reservationMailAlertClient)){
if (!($reservationMailAlertClient->getAlertSended())){
// La proxima fecha es la de la alerta
$nextMailAlert = $reservationMailAlertClient->getAlertDateTime();
} else {
if (!($reservationMailAlertClient->getCancelSended())){
// La proxima fecha es la de la cancelacion (paso a cotización)
$nextMailAlert = $reservationMailAlertClient->getCancelDateTime();
}
}
}
$parameters = array( 'status' => 1, );
$dql = 'SELECT c
FROM App\Entity\User c
WHERE c.status = :status
ORDER BY c.name ASC ';
$query = $em->createQuery($dql)->setParameters($parameters);
$allUsersActive = $query->getResult();
//Agregamos los FreeLance
$freeLances = $em->getRepository(ExternalUser::class)->findAll();
foreach ($freeLances as $item){
$item->setTeam(($item->getId() * (-1)));
$allUsersActive[] = $item;
}
// Buscamos todos los servicios y los separmos por facturados y no facturados
$datax = $this->benefitForReservation($id);
// Se quitan los clientes que no son de Green Patio
$parameters = array();
$dql = 'SELECT p
FROM App:Client p
WHERE p.isClientGreenPatio = TRUE
ORDER BY p.name ASC ';
$query = $em->createQuery($dql)->setParameters($parameters);
$clients = $query->getResult();
$depositsAll = $em->getRepository(ReservationDeposit::class)->findByReservationId($id);
$confirmable = $this->laReservaEsConfirmable($id);
$cotizable = $this->laReservaEsCotizable($id);
$htFile = in_array($user_logueado->getUserrol(),[9,23,24,37,47,53]) ? $em->getRepository(HtFile::class)->findOneByReservation($reserva) : null;
$aveFile = in_array($user_logueado->getUserrol(),[9,23,24,37,47,53]) ? $em->getRepository(AveFiles::class)->findOneByReservation($reserva) : null;
return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-simple.html.twig',
array(
'form' => $form1->createView(),
'form2' => $form2->createView(),
'form3' => $form3->createView(),
'id' => $id,
'clients' => $clients,
'clientId' => $clientId,
'caterings' => $caterings,
'loungesPre' => $loungesPre,
'loungesNames' => $loungesNames,
'facturas' => $invoiced,
'numeroItems' => $numeroItems,
'arrayLoungesByDay' => $arrayLoungesByDay,
'totales_global_con_iva' => $data['totales_global_con_iva'],
'totales_global_iva' => $data['totales_global_iva'],
'totales_global_neto' => $data['totales_global_neto'],
'totales_global_servicios_con_iva' => $data['totales_global_servicios_con_iva'],
'totales_global_servicios_neto' => $data['totales_global_servicios_neto'],
'totales_global_servicios_iva' => $data['totales_global_servicios_iva'],
'sumatoria_totales_global_con_iva' => $data['sumatoria_totales_global_con_iva'],
'sumatoria_totales_global_neto' => $data['sumatoria_totales_global_neto'],
'sumatoria_totales_global_iva' => $data['sumatoria_totales_global_iva'],
'reserva' => $reserva,
'createdBy' => $createdBy,
'arraySalas' => null,
'lounges' => $lounges,
'salasReserva' => $lounges,
'periods' => null,
'services' => $services,
'loungesNumbers' => sizeof($lounges),
'listSupplier' => $listSupplier,
'resultados' => $resultados,
'paymentsAll' => $paymentsAll,
'paymentNotIvoiced' => $paymentNotIvoiced,
'allUsersActive' => $allUsersActive,
'userLog' => $user_id,
'clientsContact' => $clientsContact,
'nextMailAlert' => $nextMailAlert,
'benefit' => $datax['benefit'],
'percBenefit' => $datax['percBenefit'],
'payedLounges' => $datax['payedLounges'],
'payedServices' => $datax['payedServices'],
'unPayedServices' => $datax['unPayedServices'],
'depositsAll' => $depositsAll,
'confirmable' => $confirmable,
'cotizable' => $cotizable,
'invoicedLine' => $invoicedLine,
'htFile' => $htFile,
'aveFile' => $aveFile,
));
}
private function createReservationLoungeCreateForm(ReservationLounge $entity)
{
$form = $this->createForm(ReservationLoungeType::class, $entity, array(
'action' => $this->generateUrl('reservations_greenpatio_create_simple_lounge',
array(
'id' => $entity->getIdReservation(),
)
),
'method' => 'POST'
));
return $form;
}
private function createReservationLoungeMonDesCreateForm(ReservationLounge $entity)
{
$form = $this->createForm(ReservationLoungeType::class, $entity, array(
'action' => $this->generateUrl('reservations_greenpatio_create_simple_lounge_mondes',
array(
'id' => $entity->getIdReservation(),
)
),
'method' => 'POST'
));
return $form;
}
/**
* @Route("/contract/{id}", name="reservations_contract")
*/
public function goContractAction($id, Request $request){
$em = $this->getDoctrine()->getManager();
$parameters = array();
$dql = 'SELECT p
FROM App:Client p
WHERE p.isClientGreenPatio = TRUE
ORDER BY p.name ASC ';
$query = $em->createQuery($dql)->setParameters($parameters);
$clients = $query->getResult();
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$client = $em->getRepository(Client::class)->findOneById($reserva->getClient());
$clientId = $client->getId();
// $client = $em->getRepository(ReservationLoungeDetails::class)->findOneById($loungeId);
return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-contract.html.twig',
array(
'form' => null,
'form2' => null,
'form3' => null,
'id' => $id,
'clients' => $clients,
'clientId' => $clientId,
'reserva' => $reserva,
'arraySalas' => null,
'periods' => null,
));
}
/**
* @Route("/updatecontract/{id}", name="reservations_greenpatio_update_contract")
*/
public function updateContractAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$contract = $request->request->get('contract');
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$reserva->setContract($contract);
try{
$em->persist($reserva);
$em->flush();
$event = 'The Reservation has been updated.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
return $this->redirectToRoute('reservations_greenpatio_edit_simple', array( 'id' => $id, 'token' => null ));
}
/**
* @Route("/updateloungegrid", name="reservations_greenpatio_updateloungegrid")
*/
public function updateLoungeGridAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
$loungeGrid = $request->request->get('lounge');
$id = $request->request->get('reservationId'); //aqui se guardara el ID d ela reserva
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
// Movemos las fechas de la reserva para que tomen los valosres de las salas
$reserva->setDateStart(new DateTime('2999-01-01'));
$reserva->setDateEnd(new DateTime('2000-01-01'));
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
foreach ($loungeGrid as $idreservationlounge => $loungeData) {
foreach ($loungeData as $dia => $items) {
foreach ($items as $item) {
$reservationLounge = $em->getRepository(ReservationLoungeSimple::class)->findOneById($idreservationlounge);
if (empty($reservationLounge)) { $reservationLounge = new ReservationLoungeSimple(); }
// Autocompletacion HH:mm en Start
switch (strlen($item['dateHourMinStart'])) {
case 0:
// Vacio
$hourStart = '00';
$minStart = '00';
$hourMinStart = '00:00';
break;
case 1:
// H -> 0H:00
if (is_numeric($item['dateHourMinStart'])) {
$hourStart = '0' . $item['dateHourMinStart'];
$minStart = '00';
$hourMinStart = $hourStart . ':' . $minStart;
} else {
$hourStart = '00';
$minStart = '00';
$hourMinStart = '00:00';
}
break;
case 2:
// HH -> HH:00
if (is_numeric($item['dateHourMinStart'])) {
$hourStart = $item['dateHourMinStart'];
$minStart = '00';
$hourMinStart = $hourStart . ':' . $minStart;
} else {
$hourStart = '00';
$minStart = '00';
$hourMinStart = '00:00';
}
break;
case 3:
// Hmm -> 0H:mm
if (is_numeric($item['dateHourMinStart'])) {
$hourStart = '0' . substr($item['dateHourMinStart'], 0, 1);
$minStart = substr($item['dateHourMinStart'], 1, 2);
$hourMinStart = $hourStart . ':' . $minStart;
} else {
$hourStart = '00';
$minStart = '00';
$hourMinStart = '00:00';
}
break;
case 4:
// HHmm -> HH:mm
if (is_numeric($item['dateHourMinStart'])) {
$hourStart = substr($item['dateHourMinStart'], 0, 2);
$minStart = substr($item['dateHourMinStart'], 2, 2);
$hourMinStart = $hourStart . ':' . $minStart;
} else {
$hourStart = '00';
$minStart = '00';
$hourMinStart = '00:00';
}
break;
case 5:
// HH:mm
if (is_numeric(substr($item['dateHourMinStart'], 0, 2)) and (substr($item['dateHourMinStart'], 2, 1) == ':') and is_numeric(substr($item['dateHourMinStart'], 0, 2))) {
$hourStart = substr($item['dateHourMinStart'], 0, 2);
$minStart = substr($item['dateHourMinStart'], 3, 2);
$hourMinStart = $hourStart . ':' . $minStart;
} else {
$hourStart = '00';
$minStart = '00';
$hourMinStart = '00:00';
}
break;
default:
// XXXXyyy
$hourStart = '00';
$minStart = '00';
$hourMinStart = '00:00';
break;
}
// Autocompletacion HH:mm en End
switch (strlen($item['dateHourMinEnd'])) {
case 0:
// Vacio
$hourEnd = '00';
$minEnd = '00';
$hourMinEnd = '00:00';
break;
case 1:
// H -> 0H:00
if (is_numeric($item['dateHourMinEnd'])) {
$hourEnd = '0' . $item['dateHourMinEnd'];
$minEnd = '00';
$hourMinEnd = $hourEnd . ':' . $minEnd;
} else {
$hourEnd = '00';
$minEnd = '00';
$hourMinEnd = '00:00';
}
break;
case 2:
// HH -> HH:00
if (is_numeric($item['dateHourMinEnd'])) {
$hourEnd = $item['dateHourMinEnd'];
$minEnd = '00';
$hourMinEnd = $hourEnd . ':' . $minEnd;
} else {
$hourEnd = '00';
$minEnd = '00';
$hourMinEnd = '00:00';
}
break;
case 3:
// Hmm -> 0H:mm
if (is_numeric($item['dateHourMinEnd'])) {
$hourEnd = '0' . substr($item['dateHourMinEnd'], 0, 1);
$minEnd = substr($item['dateHourMinEnd'], 1, 2);
$hourMinEnd = $hourEnd . ':' . $minEnd;
} else {
$hourEnd = '00';
$minEnd = '00';
$hourMinEnd = '00:00';
}
break;
case 4:
// HHmm -> HH:mm
if (is_numeric($item['dateHourMinEnd'])) {
$hourEnd = substr($item['dateHourMinEnd'], 0, 2);
$minEnd = substr($item['dateHourMinEnd'], 2, 2);
$hourMinEnd = $hourEnd . ':' . $minEnd;
} else {
$hourEnd = '00';
$minEnd = '00';
$hourMinEnd = '00:00';
}
break;
case 5:
// HH:mm
if (is_numeric(substr($item['dateHourMinEnd'], 0, 2)) and (substr($item['dateHourMinEnd'], 2, 1) == ':') and is_numeric(substr($item['dateHourMinEnd'], 0, 2))) {
$hourEnd = substr($item['dateHourMinEnd'], 0, 2);
$minEnd = substr($item['dateHourMinEnd'], 3, 2);
$hourMinEnd = $hourEnd . ':' . $minEnd;
} else {
$hourEnd = '00';
$minEnd = '00';
$hourMinEnd = '00:00';
}
break;
default:
// XXXXyyy
$hourEnd = '00';
$minEnd = '00';
$hourMinEnd = '00:00';
break;
}
$dateStart = $item['newDate'] . ' ' . $hourMinStart;
$dateEnd = $item['newDate'] . ' ' . $hourMinEnd;
$name = $item['name'];
$loungeDetails = $em->getRepository(ReservationLoungeDetails::class)->findOneByName($name);
$price = $item['price'];
$pax = 0;
$type = null;
if (isset($item['pax'])) {
$pax = $item['pax'];
if (empty($pax)){$pax = 0;}
} else {
$type = $item['type'];
}
$reservationLounge->setIdReservation($id);
if (!empty($loungeDetails)){
$reservationLounge->setIdLounge($loungeDetails->getId());
} else {
// No se encontro el elemento por Nombre (Se ha modificado el campo nombre de la sala, probablemente or ser una DEVOLUCION)
$reservationLounge->setIdLounge(0);
}
$reservationLounge->setDateStart(new DateTime($dateStart));
$reservationLounge->setDateEnd(new DateTime($dateEnd));
$reservationLounge->setType($type);
$reservationLounge->setPax($pax);
$reservationLounge->setServicePrice($price);
$reservationLounge->setLoungeName($name);
$reservationLounge->setHourStart($hourStart);
$reservationLounge->setMinStart($minStart);
$reservationLounge->setHourEnd($hourEnd);
$reservationLounge->setMinEnd($minEnd);
$reservationLounge->setUpdatedBy($user_id);
$reservationLounge->setCreatedBy($user_id);
try {
$em->persist($reservationLounge);
$em->flush();
$event = 'The Item has been updated.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e) {
$event = 'An error occurred: ' . $e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
// INICIO: Verificamos si es necesario actualizar las fechas de la reserva
$boolReserva = false;
if ($reservationLounge->getDateStart() < $reserva->getDateStart()){
$reserva->setDateStart($reservationLounge->getDateStart());
$boolReserva = true;
}
if ($reserva->getDateEnd() < $reservationLounge->getDateEnd()){
$reserva->setDateEnd($reservationLounge->getDateEnd());
$boolReserva = true;
}
if ($boolReserva){
$em->persist($reserva);
$em->flush();
}
// FIN: Verificamos si es necesario actualizar las fechas de la reserva
}
}
}
return $this->redirectToRoute('reservations_greenpatio_edit_simple',
array(
'id' => $id,
'token' => null,
'_fragment' => 'btn_quotes'
));
}
/**
* @Route("/deleteitemservice/{idService}/{idReservation}", name="reservations_greenpatio_deleteitemservice")
*/
public function deleteItemServiceAction($idService, $idReservation, Request $request)
{
$em = $this->getDoctrine()->getManager();
$service = $em->getRepository(ReservationService::class)->findOneById($idService);
try{
$em->remove($service);
$em->flush();
$event = 'The Item has been deleted.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
return $this->redirectToRoute('reservations_greenpatio_edit_simple', array( 'id' => $idReservation, 'token' => null ));
}
/**
* @Route("/updateservicegrid/{id}", name="reservations_greenpatio_updateservicegrid")
*/
public function updateServiceGridAction($id, Request $request)
{
$services = $request->request->get('services');
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
foreach ($services as $idService => $service) {
$serviceOriginal = $em->getRepository(ReservationService::class)->findOneById($idService);
if (empty($serviceOriginal)){
$serviceOriginal = new ReservationService();
}
$serviceOriginal->setSupplierId($service['supplier']);
if ($serviceOriginal->getServiceCatId() == 15){
// Asistencia
if (array_key_exists('agent',$service)){
if (!empty($service['agent']) and ($service['agent'] > 0)){
$userx = $em->getRepository("App\Entity\User")->findOneById($service['agent']);
$serviceOriginal->setName($userx->getName().' '.$userx->getLastName());
$serviceOriginal->setAssistantId($service['agent']);
} else {
//Asistencia de un FreeLance
if (!empty($service['agent']) and ($service['agent'] < 0)){
// FreeLance registrado en el sistema
$idUserFree = ($service['agent'] * (-1));
$userx = $em->getRepository(ExternalUser::class)->findOneById($idUserFree);
$serviceOriginal->setName($userx->getName().' '.$userx->getLastName());
$serviceOriginal->setAssistantId($service['agent']);
} else {
$serviceOriginal->setName($service['name']);
$serviceOriginal->setAssistantId(null);
}
}
}
} else {
$serviceOriginal->setName($service['name']);
}
$serviceOriginal->setPrice($service['price']);
$serviceOriginal->setCurrency($service['currency']);
$serviceOriginal->setUnits($service['units']);
$serviceOriginal->setPax($service['pax']);
$serviceOriginal->setOpCommission($service['opCommission']);
$serviceOriginal->setCommission($service['commission']);
$serviceOriginal->setOpOver($service['opOver']);
$serviceOriginal->setOver($service['over']);
$serviceOriginal->setOpIva($service['opIva']);
$serviceOriginal->setIva($service['iva']);
if (array_key_exists('toinvoice',$service)){ $serviceOriginal->setToinvoice(true); } else { $serviceOriginal->setToinvoice(false); }
$serviceOriginal->setDateInAt(new DateTime($service['dateInAt']. ' ' . $service['start']));
$serviceOriginal->setDateOutAt(new DateTime($service['dateOutAt']. ' ' . $service['end']));
$serviceOriginal->setUpdatedId($user_id);
$serviceOriginal->setUpdatedAt(new DateTime('now'));
try{
$em->persist($serviceOriginal);
$em->flush();
$event = 'The Item has been updated.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
if(($serviceOriginal->getServiceCatId()==11) and ($serviceOriginal->getSupplierId()==4765)){
//Es un Catering de Higo&Trigo
$reserva->setCateringName('HIGO & TRIGO, S.L.');
$em->persist($reserva);
$em->flush();
}
}
// Sincronización con HT
if (!empty($reserva)) {
// Rafa indico que siempre se sincronice al abrir un expediente de GP
if (in_array($reserva->getStatus(), [null, '', 'Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
// if (in_array($reserva->getStatus(), ['Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
if ($reserva->getCateringName() == 'HIGO & TRIGO, S.L.') {
// Si no se ha creado aun el expediente de HT debemos crearlo
$htFile = $em->getRepository(HtFile::class)->findByReservation($reserva);
if (empty($htFile)) {
return $this->redirectToRoute('sinc_gp_ht', array('id' => $id,));
}
}
}
}
return $this->redirectToRoute('reservations_greenpatio_edit_simple',
array(
'id' => $id,
'token' => null,
'_fragment' => 'btn_srv'
));
}
/**
* @Route("/editgeneral", name="reservations_greenpatio_edit_general")
*/
public function editGeneralAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
$prices = $em->getRepository(ReservationLoungeProfile::class)->findBy(
array(),
array('id' => 'ASC')
);
$dataPrices = array();
// INICIO: Estableciendo los valores de los indices (periodos o jornadas, y nombres de salas)
foreach ($prices as $price){
$periodSql = $em->getRepository(ReservationPeriod::class)->findOneById($price->getPeriodId());
$price->setPeriodId($periodSql->getName());
$loungeTemp = $em->getRepository(ReservationLoungeDetails::class)->findOneById($price->getLoungeId());
if(!is_null($loungeTemp))
$price->setLoungeId($loungeTemp->getName());
$dataPrices[] = $price;
}
// FIN: Estableciendo los valores de los indices (periodos o jornadas, y nombres de salas)
$parameters = array();
$dql = 'SELECT p
FROM GreenPatioBundle:ReservationLoungeDetails p
ORDER BY p.rankLounge ASC';
$query = $em->createQuery($dql)->setParameters($parameters);
$salas = $query->getResult();
// $salas = $em->getRepository(ReservationLoungeDetails::class)->findAll();
// $loungesNames = $em->getRepository(ReservationLoungeDetails::class)->findAll();
$loungesPeriods = $em->getRepository(ReservationPeriod::class)->findAll();
$today = new DateTime('now');
$periods = $em->getRepository(ReservationPeriod::class)->findAll();
$period = new ReservationPeriod();
// $form = $this->createReservationPeriodCreateForm($period);
return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-general.html.twig',
array(
'prices' => $dataPrices,
'salas' => $salas,
'today' => $today,
'loungesNames' => $salas,
'loungesPeriods' => $loungesPeriods,
'groups' => null,
// 'form' => $form->createView(),
'periods' => $periods
));
}
/**
* @Route("/addloungegeneral", name="reservations_greenpatio_add_lounge_general")
*/
public function addLoungeGeneralAction(Request $request)
{
$lounge = $request->request->get('lounge_price');
$em = $this->getDoctrine()->getManager();
$yaExisteLounge = $em->getRepository(ReservationLoungeDetails::class)->findOneByName($lounge['name']);
if (!empty($yaExisteLounge)){
//Si ya existe la sala con ese nombre se envia a la pantalla de edicion de la sala en cuestion
$id = $yaExisteLounge->getId();
return $this->redirectToRoute('reservations_lounge_details',
array(
'id' => $id
));
}
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$now = new DateTime('now');
$loungeNew = new ReservationLoungeDetails();
$loungeNew->setName($lounge['name']);
$loungeNew->setMeters($lounge['meters']);
$loungeNew->setLength($lounge['length']);
$loungeNew->setWidth($lounge['width']);
$loungeNew->setHeight($lounge['height']);
$loungeNew->setCapSchool($lounge['capschool']);
$loungeNew->setCapTheater ($lounge['captheater']);
$loungeNew->setCapCocktail($lounge['capcocktail']);
$loungeNew->setCapBanquet ($lounge['capbanquet']);
$loungeNew->setCapImperial($lounge['capimperial']);
$loungeNew->setCreatedId($user_id);
$loungeNew->setCreatedAt($now);
$loungeNew->setUpdatedId($user_id);
$loungeNew->setUpdatedAt($now);
try {
$em->persist($loungeNew);
$em->flush();
$event = 'The Item has been created.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e) {
$event = 'An error occurred: ' . $e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
if (!empty($loungeNew->getId())){
// Esto pertenece a otra entidad
$loungeNewDescription = new ReservationLoungeDescription();
$loungeNewDescription->setLoungeId($loungeNew->getId());
$loungeNewDescription->setLanguage($lounge['language']);
$loungeNewDescription->setDescription($lounge['description']);
$loungeNewDescription->setCreatedId($user_id);
$loungeNewDescription->setCreatedAt($now);
$loungeNewDescription->setUpdatedId($user_id);
$loungeNewDescription->setUpdatedAt($now);
try {
$em->persist($loungeNewDescription);
$em->flush();
$event = 'The Item has been created.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e) {
$event = 'An error occurred: ' . $e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
return $this->redirectToRoute('reservations_lounge_details',
array(
'id' => $loungeNew->getId()
));
}
return $this->redirectToRoute('reservations_greenpatio_edit_general');
}
/**
* @Route("/addprofilegeneral", name="reservations_greenpatio_add_profile_general")
* Guarda un profile (Precios - Tarifas - Temporadas)
*/
public function addProfileGeneralAction(Request $request)
{
$loungeProfile = $request->request->get('lounge_price');
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$now = new DateTime('now');
$allSalas = $em->getRepository(ReservationLoungeDetails::class)->findAll();
$ultimaSala = end($allSalas);
$loungeNewProfile = new ReservationLoungeProfile();
// Creamos el arreglo de las salas seleccionadas y por cada una se creara un nuevo precio (reservation_lounge_profile)
$arraySalas = array();
for ($i = 0; ($i - 1) < $ultimaSala->getId(); $i++) {
$key = 'sala_' . $i;
if (array_key_exists($key, $loungeProfile)) { $arraySalas[] = $i; }
}
$arrayPreciosCoincidencias = array();
foreach ($arraySalas as $salaId){
$loungeNewProfile = new ReservationLoungeProfile();
$loungeNewProfile->setLoungeId($salaId);
$loungeNewProfile->setPeriodId('3'); // Dia Completo
$loungeNewProfile->setPrice($loungeProfile['servicePrice']);
$loungeNewProfile->setTitle($loungeProfile['title']);
$loungeNewProfile->setDescription(null);
$loungeNewProfile->setPriceIsActive(true);
// Agregamos los años
if (array_key_exists('year1', $loungeProfile)) { $loungeNewProfile->setYear1($loungeProfile['year1']); }
if (array_key_exists('year2', $loungeProfile)) { $loungeNewProfile->setYear2($loungeProfile['year2']); }
// Agregamos los meses
if (array_key_exists('month1', $loungeProfile)) { $loungeNewProfile->setMonth1(true); }
if (array_key_exists('month2', $loungeProfile)) { $loungeNewProfile->setMonth2(true); }
if (array_key_exists('month3', $loungeProfile)) { $loungeNewProfile->setMonth3(true); }
if (array_key_exists('month4', $loungeProfile)) { $loungeNewProfile->setMonth4(true); }
if (array_key_exists('month5', $loungeProfile)) { $loungeNewProfile->setMonth5(true); }
if (array_key_exists('month6', $loungeProfile)) { $loungeNewProfile->setMonth6(true); }
if (array_key_exists('month7', $loungeProfile)) { $loungeNewProfile->setMonth7(true); }
if (array_key_exists('month8', $loungeProfile)) { $loungeNewProfile->setMonth8(true); }
if (array_key_exists('month9', $loungeProfile)) { $loungeNewProfile->setMonth9(true); }
if (array_key_exists('month10', $loungeProfile)) { $loungeNewProfile->setMonth10(true); }
if (array_key_exists('month11', $loungeProfile)) { $loungeNewProfile->setMonth11(true); }
if (array_key_exists('month12', $loungeProfile)) { $loungeNewProfile->setMonth12(true); }
// Agregamos los dias
if (array_key_exists('day1', $loungeProfile)) { $loungeNewProfile->setDay1(true); }
if (array_key_exists('day2', $loungeProfile)) { $loungeNewProfile->setDay2(true); }
if (array_key_exists('day3', $loungeProfile)) { $loungeNewProfile->setDay3(true); }
if (array_key_exists('day4', $loungeProfile)) { $loungeNewProfile->setDay4(true); }
if (array_key_exists('day5', $loungeProfile)) { $loungeNewProfile->setDay5(true); }
if (array_key_exists('day6', $loungeProfile)) { $loungeNewProfile->setDay6(true); }
if (array_key_exists('day7', $loungeProfile)) { $loungeNewProfile->setDay7(true); }
$loungeNewProfile->setCreatedId($user_id);
$loungeNewProfile->setCreatedAt($now);
$loungeNewProfile->setUpdatedId($user_id);
$loungeNewProfile->setUpdatedAt($now);
if (empty($loungeProfile['dateStart1'])){ $dateStart1 = null; } else { $dateStart1 = new DateTime($loungeProfile['dateStart1']); }
if (empty($loungeProfile['dateEnd1'])){ $dateEnd1 = null; } else { $dateEnd1 = new DateTime($loungeProfile['dateEnd1']); }
if (empty($loungeProfile['dateStart2'])){ $dateStart2 = null; } else { $dateStart2 = new DateTime($loungeProfile['dateStart2']); }
if (empty($loungeProfile['dateEnd2'])){ $dateEnd2 = null; } else { $dateEnd2 = new DateTime($loungeProfile['dateEnd2']); }
if (empty($loungeProfile['dateStart3'])){ $dateStart3 = null; } else { $dateStart3 = new DateTime($loungeProfile['dateStart3']); }
if (empty($loungeProfile['dateEnd3'])){ $dateEnd3 = null; } else { $dateEnd3 = new DateTime($loungeProfile['dateEnd3']); }
if (empty($loungeProfile['dateStart4'])){ $dateStart4 = null; } else { $dateStart4 = new DateTime($loungeProfile['dateStart4']); }
if (empty($loungeProfile['dateEnd4'])){ $dateEnd4 = null; } else { $dateEnd4 = new DateTime($loungeProfile['dateEnd4']); }
if (empty($loungeProfile['dateStart5'])){ $dateStart5 = null; } else { $dateStart5 = new DateTime($loungeProfile['dateStart5']); }
if (empty($loungeProfile['dateEnd5'])){ $dateEnd5 = null; } else { $dateEnd5 = new DateTime($loungeProfile['dateEnd5']); }
$loungeNewProfile1 = new ReservationLoungeProfile();
$this->duplicarEntidad($loungeNewProfile1, $loungeNewProfile, $dateStart1, $dateEnd1);
$loungeNewProfile2 = new ReservationLoungeProfile();
$this->duplicarEntidad($loungeNewProfile2, $loungeNewProfile, $dateStart2, $dateEnd2);
$loungeNewProfile3 = new ReservationLoungeProfile();
$this->duplicarEntidad($loungeNewProfile3, $loungeNewProfile, $dateStart3, $dateEnd3);
$loungeNewProfile4 = new ReservationLoungeProfile();
$this->duplicarEntidad($loungeNewProfile4, $loungeNewProfile, $dateStart4, $dateEnd4);
$loungeNewProfile5 = new ReservationLoungeProfile();
$this->duplicarEntidad($loungeNewProfile5, $loungeNewProfile, $dateStart5, $dateEnd5);
if (!empty($loungeProfile['dateStart1']) and !empty($loungeProfile['dateEnd1'])){
$this->modificarBooleanoDeMeses($loungeNewProfile1, new DateTime($loungeProfile['dateStart1']) , new DateTime($loungeProfile['dateEnd1']));
$arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart1']))->format('d/m/Y').' al '.(new DateTime($loungeProfile['dateEnd1']))->format('d/m/Y')] = $this->verificarPreciosCoincidiendo($loungeNewProfile1);
if (sizeof($arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart1']))->format('d/m/Y').' al '.(new DateTime($loungeProfile['dateEnd1']))->format('d/m/Y')]) == 0) { unset($arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart1']))->format('d/m/Y').' al '.(new DateTime($loungeProfile['dateEnd1']))->format('d/m/Y')]); }
}
if (!empty($loungeProfile['dateStart2']) and !empty($loungeProfile['dateEnd2'])) {
d($loungeProfile['dateStart2']);
$this->modificarBooleanoDeMeses($loungeNewProfile2, new DateTime($loungeProfile['dateStart2']), new DateTime($loungeProfile['dateEnd2']));
$arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart2']))->format('d/m/Y') . ' al ' . (new DateTime($loungeProfile['dateEnd2']))->format('d/m/Y')] = $this->verificarPreciosCoincidiendo($loungeNewProfile2);
if (sizeof($arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart2']))->format('d/m/Y').' al '.(new DateTime($loungeProfile['dateEnd2']))->format('d/m/Y')]) == 0) { unset($arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart2']))->format('d/m/Y').' al '.(new DateTime($loungeProfile['dateEnd2']))->format('d/m/Y')]); }
}
if (!empty($loungeProfile['dateStart3']) and !empty($loungeProfile['dateEnd3'])) {
$this->modificarBooleanoDeMeses($loungeNewProfile3, new DateTime($loungeProfile['dateStart3']), new DateTime($loungeProfile['dateEnd3']));
$arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart3']))->format('d/m/Y') . ' al ' . (new DateTime($loungeProfile['dateEnd3']))->format('d/m/Y')] = $this->verificarPreciosCoincidiendo($loungeNewProfile3);
if (sizeof($arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart3']))->format('d/m/Y').' al '.(new DateTime($loungeProfile['dateEnd3']))->format('d/m/Y')]) == 0) { unset($arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart3']))->format('d/m/Y').' al '.(new DateTime($loungeProfile['dateEnd3']))->format('d/m/Y')]); }
}
if (!empty($loungeProfile['dateStart4']) and !empty($loungeProfile['dateEnd4'])) {
$this->modificarBooleanoDeMeses($loungeNewProfile4, new DateTime($loungeProfile['dateStart4']), new DateTime($loungeProfile['dateEnd4']));
$arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart4']))->format('d/m/Y') . ' al ' . (new DateTime($loungeProfile['dateEnd4']))->format('d/m/Y')] = $this->verificarPreciosCoincidiendo($loungeNewProfile4);
if (sizeof($arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart4']))->format('d/m/Y').' al '.(new DateTime($loungeProfile['dateEnd4']))->format('d/m/Y')]) == 0) { unset($arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart4']))->format('d/m/Y').' al '.(new DateTime($loungeProfile['dateEnd4']))->format('d/m/Y')]); }
}
if (!empty($loungeProfile['dateStart5']) and !empty($loungeProfile['dateEnd5'])) {
$this->modificarBooleanoDeMeses($loungeNewProfile5, new DateTime($loungeProfile['dateStart5']), new DateTime($loungeProfile['dateEnd5']));
$arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart5']))->format('d/m/Y') . ' al ' . (new DateTime($loungeProfile['dateEnd5']))->format('d/m/Y')] = $this->verificarPreciosCoincidiendo($loungeNewProfile5);
if (sizeof($arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart5']))->format('d/m/Y').' al '.(new DateTime($loungeProfile['dateEnd5']))->format('d/m/Y')]) == 0) { unset($arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart5']))->format('d/m/Y').' al '.(new DateTime($loungeProfile['dateEnd5']))->format('d/m/Y')]); }
}
}
if (!empty($arrayPreciosCoincidencias)){
return $this->render('MDS/GreenPatioBundle/reservations/list-profiles-conflicts.html.twig',
array(
'arrayPreciosCoincidencias' => $arrayPreciosCoincidencias,
)
);
}
return $this->redirectToRoute('reservations_greenpatio_prices');
}
/**
* @Route("/addloungedescription/{id}", name="reservations_greenpatio_add_lounge_description")
*/
public function addLoungeDescriptionAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$now = new DateTime('now');
$loungeDescriptoin = $request->request->get('lounge_description');
$newLoungeDescription = new reservationLoungeDescription();
$newLoungeDescription->setLoungeId($id);
$newLoungeDescription->setLanguage($loungeDescriptoin['language']);
$newLoungeDescription->setDescription($loungeDescriptoin['description']);
$newLoungeDescription->setCreatedId($user_id);
$newLoungeDescription->setUpdatedId($user_id);
$newLoungeDescription->setCreatedAt($now);
$newLoungeDescription->setUpdatedAt($now);
try {
$em->persist($newLoungeDescription);
$em->flush();
$event = 'The Item has been created.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e) {
$event = 'An error occurred: ' . $e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
return $this->redirectToRoute('reservations_lounge_details', array('id' => $id));
}
/**
* @Route("/updatedescritiongrid/{id}", name="reservations_greenpatio_updatedescriptiongrid")
*/
public function updateDescriptionGridAction($id, Request $request)
{
$descriptions = $request->request->get('description');
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
foreach ($descriptions as $idDesc => $description) {
$descriptionOriginal = $em->getRepository(ReservationLoungeDescription::class)->findOneById($idDesc);
$descriptionOriginal->setLanguage($description['language']);
$descriptionOriginal->setDescription($description['text']);
$descriptionOriginal->setUpdatedId($user_id);
$descriptionOriginal->setUpdatedAt(new DateTime('now'));
try{
$em->persist($descriptionOriginal);
$em->flush();
$event = 'The Item has been updated.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
}
return $this->redirectToRoute('reservations_lounge_details',
array(
'id' => $id
));
}
/**
* @Route("/addloungepicture/{id}", name="reservations_greenpatio_add_lounge_picture")
*/
public function addLoungePictureAction($id, Request $request) //, LoggerInterface $logger)
{
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$now = new DateTime('now');
$picturefiles = $request->files->all();
$loungeId = $id;
$imagenes = $picturefiles['loungepicturegallery'];
$data = $loungeId;
if(!empty($imagenes['image1']) || !empty($imagenes['image2']) || !empty($imagenes['image3']) || !empty($imagenes['image4']) || !empty($imagenes['image5'])){
$num = 0;
foreach($imagenes as $img){
$num = 1 + $num;
if (!is_null($img)){
$data = $this->CargarImgGalleryAction($loungeId, $img, $num, $request); //, $logger);
}
}
}else{
$errorMessage = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajegalleryerror', $errorMessage);
}
return $this->redirectToRoute('reservations_lounge_details', array('id' => $id));
}
protected function CargarImgGalleryAction($loungeId, $image, $num, Request $request) //, LoggerInterface $logger)
{
$gallery = new ReservationLoungePicture();
$gallery->setLoungeId($loungeId);
$gallery->setCreatedAt(new DateTime('now'));
$gallery->setUpdatedAt(new DateTime('now'));
$gallery->setTitle(null);
if ($num == -1){$gallery->setTitle('Blueprint');}
if ($num == 'TEATRO'){$gallery->setTitle('Teatro');}
if ($num == 'COCTEL'){$gallery->setTitle('Coctel');}
if ($num == 'ESCUELA'){$gallery->setTitle('Escuela');}
$id = $loungeId;
/* Carga de imagenes */
$calidad = "90";
$calidadpng = "9";
$imageName = md5(rand() * time());
$camino = "assets/images/greenpatio/lounges/";
$extension = $image->guessExtension();
$entrada = 'si';
$image_id = $imageName.'.'.$extension;
$image_temp = $id.'-'.$imageName.'.'.$extension;
$image->move($camino, $image_temp);
// Nombres image
$s="small-";
$m="medium-";
$l="large-";
########################
# Copiar imagen 300 x Altura
########################
$datos = getimagesize($camino.$image_temp);
$anchura = "300";
$altura = "190";
$thumb = imagecreatetruecolor($anchura,$altura);
switch ($extension) {
case 'jpeg':
$img = imagecreatefromjpeg($camino.$image_temp);
imagecopyresampled ($thumb, $img, 0, 0, 0, 0, $anchura, $altura, $datos[0], $datos[1]);
imagejpeg($thumb,$camino.$s.$image_id, $calidad);
break;
case 'png':
$img = imagecreatefrompng($camino.$image_temp);
imagecopyresampled ($thumb, $img, 0, 0, 0, 0, $anchura, $altura, $datos[0], $datos[1]);
imagepng($thumb,$camino.$s.$image_id, $calidadpng);
break;
case 'gif':
$img = imagecreatefromgif($camino.$image_temp);
imagecopyresampled ($thumb, $img, 0, 0, 0, 0, $anchura, $altura, $datos[0], $datos[1]);
imagegif($thumb,$camino.$s.$image_id);
break;
}
########################
# Copiar imagen 600 x Altura
########################
$datos2 = getimagesize($camino.$image_temp);
$anchura2="600";
$ratio2 = ($datos2[0] / $anchura2);
$altura2 = round($datos2[1] / $ratio2);
$thumb2 = imagecreatetruecolor($anchura2,$altura2);
switch ($extension) {
case 'jpeg':
$img2 = imagecreatefromjpeg($camino.$image_temp);
imagecopyresampled ($thumb2, $img2, 0, 0, 0, 0, $anchura2, $altura2, $datos2[0], $datos2[1]);
imagejpeg($thumb2,$camino.$m.$image_id, $calidad);
break;
case 'png':
$img2 = imagecreatefrompng($camino.$image_temp);
imagecopyresampled ($thumb2, $img2, 0, 0, 0, 0, $anchura2, $altura2, $datos2[0], $datos2[1]);
imagepng($thumb2,$camino.$m.$image_id, $calidadpng);
break;
case 'gif':
$img2 = imagecreatefromgif($camino.$image_temp);
imagecopyresampled ($thumb2, $img2, 0, 0, 0, 0, $anchura2, $altura2, $datos2[0], $datos2[1]);
imagegif($thumb2,$camino.$m.$image_id);
break;
}
########################
# Copiar imagen 1600 x Altura
########################
$datos3 = getimagesize($camino.$image_temp);
$anchura3="1600";
$ratio3 = ($datos3[0] / $anchura3);
$altura3 = round($datos3[1] / $ratio3);
$thumb3 = imagecreatetruecolor($anchura3,$altura3);
switch ($extension) {
case 'jpeg':
$img3 = imagecreatefromjpeg($camino.$image_temp);
imagecopyresampled ($thumb3, $img3, 0, 0, 0, 0, $anchura3, $altura3, $datos3[0], $datos3[1]);
imagejpeg($thumb3,$camino.$l.$image_id, $calidad);
break;
case 'png':
$img3 = imagecreatefrompng($camino.$image_temp);
imagecopyresampled ($thumb3, $img3, 0, 0, 0, 0, $anchura3, $altura3, $datos3[0], $datos3[1]);
imagepng($thumb3,$camino.$l.$image_id, $calidadpng);
break;
case 'gif':
$img3 = imagecreatefromgif($camino.$image_temp);
imagecopyresampled ($thumb3, $img3, 0, 0, 0, 0, $anchura3, $altura3, $datos3[0], $datos3[1]);
imagegif($thumb3,$camino.$l.$image_id);
break;
}
########################
# borrar imagen original
########################
$imagen_borrar= $camino.$image_temp;
unlink($imagen_borrar);
$gallery->setImageSmall($s.$image_id);
$gallery->setImageMedium($m.$image_id);
$gallery->setImageLarge($l.$image_id);
/* Fin Carga de imagenes */
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$gallery->setCreatedId($user_id);
$gallery->setUpdatedId($user_id);
$em = $this->getDoctrine()->getManager();
/* Gestión de eventos en Log */
$user_lastname = $user_logueado->getLastname();
$user_name = $user_logueado->getName();
$user_email = $user_logueado->getEmail();
$user_rol = $user_logueado->getRoles();
$event_url = $request->getPathInfo();
$event_complete = $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
try{
$em->persist($gallery);
$em->flush();
$event = 'Images from this supplier have been uploaded.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajegallery', $successMessage);
// $logger->info($event_complete.' | '.$event);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage().' | transport';
/* Para el log */
// $logger->error($event_complete.' | '.$event);
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajegalleryerror', $errorMessage);
}
/* Fin Gestión de eventos en Log */
return $id;
}
/**
* @Route("/addloungevideo/{id}", name="reservations_greenpatio_add_lounge_video")
*/
public function addLoungeVideoAction($id, Request $request) //, LoggerInterface $logger)
{
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$now = new DateTime('now');
$urlvideo = $request->request->get('loungevideo');
$urlvideo = $urlvideo['urlvideo'];
$loungeId = $id;
if(!empty($urlvideo)){
switch (true) {
case strpos($urlvideo, 'youtube'):
$patron = '%^ (?:https?://)? (?:www\.)? (?: youtu\.be/ | youtube\.com (?: /embed/ | /v/ | /watch\?v= ) ) ([\w-]{10,12}) ($|&).* $%x';
preg_match($patron, $urlvideo, $parte);
$urvideo_final = 'https://www.youtube.com/embed/'. $parte[1];
break;
case strpos($urlvideo, 'youtu'):
$patron = '%^ (?:https?://)? (?:www\.)? (?: youtu\.be/ | youtube\.com (?: /embed/ | /v/ | /watch\?v= ) ) ([\w-]{10,12}) ($|&).* $%x';
preg_match($patron, $urlvideo, $parte);
$urvideo_final = 'https://www.youtube.com/embed/'. $parte[1];
break;
case strpos($urlvideo, 'vimeo'):
$patron = '%^https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)(?:[?]?.*)$%im';
preg_match($patron, $urlvideo, $parte);
$urvideo_final = 'https://player.vimeo.com/video/'. $parte[3];
break;
}
if(!empty($urlvideo) && !empty($urvideo_final) ){
$video = new ReservationLoungeVideo();
$video->setCreatedId($user_id);
$video->setUpdatedId($user_id);
$video->setVideo($urvideo_final);
$video->setLoungeId($loungeId);
$video->setCreatedAt($now);
$video->setUpdatedAt($now);
$em->persist($video);
$em->flush();
}
}
if (empty($urlvideo)){
$errorMessage = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajegalleryerror', $errorMessage);
}
return $this->redirectToRoute('reservations_lounge_details', array('id' => $id));
}
/**
* @Route("/deleteloungevideo/{id}", name="reservations_greenpatio_delete_lounge_video")
*/
public function deleteLoungeVideoAction($id, Request $request) //, LoggerInterface $logger)
{
$em = $this->getDoctrine()->getManager();
$video = $em->getRepository(ReservationLoungeVideo::class)->findOneById($id);
$idLounge = $video->getLoungeId();
try{
$em->remove($video);
$em->flush();
$event = 'The Item has been deleted.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
return $this->redirectToRoute('reservations_lounge_details', array('id' => $idLounge));
}
/**
* @Route("/addloungeblueprints/{id}", name="reservations_greenpatio_add_lounge_blueprints")
*/
public function addLoungeBlueprintsAction($id, Request $request) //, LoggerInterface $logger)
{
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$now = new DateTime('now');
$picturefiles = $request->files->all();
$loungeId = $id;
$imagen = $picturefiles['loungepicturegalleryblueprints'];
$data = $loungeId;
if(!empty($imagen)){
$num = -1;
$data = $this->CargarImgGalleryAction($loungeId, $imagen, $num, $request); //, $logger);
}else{
$errorMessage = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajegalleryerror', $errorMessage);
}
return $this->redirectToRoute('reservations_lounge_details', array('id' => $id));
}
/**
* @Route("/addpicturemounting/{id}", name="reservations_greenpatio_add_lounge_picture_mounting")
*/
public function addLoungePictureMountingAction($id, Request $request) //, LoggerInterface $logger)
{
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$now = new DateTime('now');
$picturefiles = $request->files->all();
$loungeId = $id;
$imagen = $picturefiles['picturemounting'];
$data = $loungeId;
if(!empty($imagen)){
$num = $request->request->get('picturemounting');
$num = $num['type'];
$data = $this->CargarImgGalleryAction($loungeId, $imagen, $num, $request); //, $logger);
}else{
$errorMessage = $this->translator->trans('Error, some fields are empty');
$this->addFlash('mensajegalleryerror', $errorMessage);
}
return $this->redirectToRoute('reservations_lounge_details', array('id' => $id));
}
/**
* @Route("/updatedimmensions/{id}", name="update_dimmensions")
*/
public function updateDimmensionsAction($id, Request $request)
{
$em = $this->getDoctrine()->getManager();
$lounge = $em->getRepository(ReservationLoungeDetails::class)->findOneById($id);
$newData = $request->request->get('loungedimmensions');
$lounge->setMeters($newData['meters']);
$lounge->setLength($newData['length']);
$lounge->setWidth($newData['width']);
$lounge->setHeight($newData['height']);
$lounge->setCapSchool($newData['capSchool']);
$lounge->setCapTheater($newData['capTheater']);
$lounge->setCapCocktail($newData['capCocktail']);
$lounge->setCapBanquet($newData['capBanquet']);
$lounge->setCapImperial($newData['capImperial']);
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$now = new DateTime('now');
$lounge->setUpdatedId($user_id);
$lounge->setUpdatedAt($now);
try{
$em->persist($lounge);
$em->flush();
$event = 'The Note has been created succesfully.';
$successMessage = $this->translator->trans($event);
$this->addFlash('mensaje', $successMessage);
} catch (\Exception $e){
$event = 'An error occurred: '.$e->getMessage();
/* Para el usuario */
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajeerror', $errorMessage);
}
return $this->redirectToRoute('reservations_lounge_details', array('id' => $id));
}
/**
* @Route("/addvisit", name="reservations_greenpatio_addvisit")
*/
public function addVisitAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
$visitas = $em->getRepository(ReservationVisit::class)->findAll();
$listAllReservas = $em->getRepository(Reservation::class)->findAll();
$agentsGp = array(); //arreglo con los agentes de Green Patio
$allUsers[] = $em->getRepository(User::class)->findAll();
$agentsGp = $em->getRepository(User::class)->findBy(['userrol' => [49,53]]);
return $this->render('MDS/GreenPatioBundle/reservations/add-visit.html.twig',
array(
'visitas' => $visitas,
'agentsGp' => $agentsGp,
'listAllReservas' => $listAllReservas,
)
);
}
/**
* @Route("/createvisit", name="reservations_greenpatio_createvisit")
*/
public function createVisitAction(Request $request)
{
$newRequest = $request->request->get('visit');
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
if (!empty($newRequest['date']) and !empty($newRequest['time'])){
$dateStart = new DateTime ($newRequest['date']. ' '.$newRequest['time']);
} else {
$dateStart = new DateTime ('now');
}
if (!empty($newRequest['time'])) {
$hourStart = substr($newRequest['time'], 0, 2);
$minStart = substr($newRequest['time'], 3, 2);
$hourEnd = substr($newRequest['time'],0,2) + 1;
$minEnd = substr($newRequest['time'],3,2);
} else {
$hourStart = '12';
$minStart = '00';
$hourEnd = '13';
$minEnd = '00';
}
if (!empty($newRequest['agent'])) {
$agent = $em->getRepository(User::class)->findOneById($newRequest['agent']);
} else {
$agent = $em->getRepository(User::class)->findOneById(82);
}
$title = '';
if (!empty($newRequest['name'])){
$title = $newRequest['name'];
}
if (!empty($newRequest['idreservation'])){
$res = $em->getRepository(Reservation::class)->findOneById($newRequest['idreservation']);
if (!empty($title)) {
$title = $title . ' - ' . $res->getTitle();
} else {
$title = $res->getTitle();
}
}
$newVisit = new ReservationVisit();
$newVisit->setAgentId($agent->getId());
$newVisit->setDateStart($dateStart);
$newVisit->setDateEnd($dateStart);
if (!empty($newRequest['time'])) {
$newVisit->setHourStart($hourStart);
$newVisit->setMinStart($minStart);
$newVisit->setHourEnd($hourEnd);
$newVisit->setMinEnd($minEnd);
} else {
$newVisit->setHourStart($hourStart);
$newVisit->setMinStart($minStart);
$newVisit->setHourEnd($hourEnd);
$newVisit->setMinEnd($minEnd);
}
$newVisit->setLoungeName($title.' - '.'Visita '.$agent->getName());
if (!empty($newRequest['idreservation'])) {
$newVisit->setIdReservation($newRequest['idreservation']);
} else {
$newVisit->setIdReservation(null);
}
$newVisit->setType('Visit');
$newVisit->setCreatedAt(new DateTime ('now'));
$newVisit->setCreatedId($user_id);
$newVisit->setUpdatedAt(new DateTime ('now'));
$newVisit->setUpdatedId($user_id);
$location = (!empty($newRequest['location'])) ? $newRequest['location'] : 0;
$newVisit->setIdLounge($location);
$em->persist($newVisit);
$em->flush();
return $this->redirectToRoute('reservations_greenpatio_addvisit');
}
/**
* @Route("/deletevisit/{id}", name="get_reservations_deletevisit")
*/
public function deleteVisitAction($id, Request $request) {
$em = $this->getDoctrine()->getManager();
$visit = $em->getRepository(ReservationVisit::class)->findOneById($id);
if (!empty($visit)){
$em->remove($visit);
$em->flush();
}
return $this->redirectToRoute('reservations_greenpatio_addvisit');
}
/**
* @Route("/sendconfirmationrequestmail/{id}", name="reservations_greenpatio_send_confirmation_request_mail")
* Enviar correo a Salvador y Rafael Guerrero para que la reserva (id) pase al estado confirmado
*/
public function sendConfirmationRequestMailAction($id, Request $request){
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$mailArrayTo = array();
$mailArrayTo['salvador@avexpress.tv'] = 'salvador@avexpress.tv';
$mailArrayTo['rafael.guerrero@inout-travel.com'] = 'rafael.guerrero@inout-travel.com';
$mailArrayTo['gustavo.ayala@develup.solutions'] = 'gustavo.ayala@develup.solutions';
$em = $this->getDoctrine()->getManager();
$dataGP = $this->disponibilidadGreenPatio($id);
$dataAV = $this->disponibilidadAvExpress($id);
$dataLounges = array();
foreach ($dataGP as $item){
$lounges = $em->getRepository(ReservationLoungeSimple::class)->findBy(array('idReservation'=>$item->getId(),'type'=>null));
foreach ($lounges as $elem){ $dataLounges[$item->getId()][] = $elem; }
}
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$agente = $em->getRepository(User::class)->findOneById($user_id);
$mailAddressFrom = $agente->getEmail();
// $mailSubject = 'Solicitud de confirmación de reserva: '.$reserva->getTitle();
$mailSubject = 'Confirmación de reserva: '.$reserva->getTitle();
$mailBody = 'Estimado administrador,'.
'<br><br>'. $agente->getName().' '. $agente->getLastName(). ' ha solicitado la confirmación de la reserva:'.
'<br><br>'.$reserva->getTitle(). ' con ID: '.$reserva->getId().
'<br>Este evento incia el día '.$reserva->getDateStart()->format('d/m/Y').' a las '.$reserva->getDateStart()->format('H:i'). ' y finaliza el día '.$reserva->getDateEnd()->format('d/m/Y').' a las '.$reserva->getDateEnd()->format('H:i').'<br><br><br>';
if (!empty($dataGP) or !empty($dataAV)){
if(!empty($dataGP)){
// Conflictos con otros eventos en Green Patio
$mailBody = $mailBody . 'Este evento coincide con la(s) reserva(s): <br>';
foreach ($dataGP as $res){
$mailBody = $mailBody . 'Reserva: '.$res->getTitle().', con ID: '.$res->getId().', fecha de inicio: '.$res->getDateStart()->format('d/m/Y').' a las '.$res->getDateStart()->format('H:i').', fecha de finalización: '.$res->getDateEnd()->format('d/m/Y').' a las '.$res->getDateEnd()->format('H:i');
if(!empty($dataLounges[$res->getId()])){
$mailBody = $mailBody .', Salas: ';
foreach ($dataLounges[$res->getId()] as $loungeItem){ $mailBody = $mailBody . $loungeItem->getLoungeName().', '; }
$mailBody = $mailBody .'<br>';
}
}
$mailBody = $mailBody . '<br><br>';
}
if(!empty($dataAV)){
// Conflictos con otros eventos de AvExpress
$mailBody = $mailBody . 'Este evento coincide en AV con el expediente(s): <br>';
foreach ($dataAV as $file){
$mailBody = $mailBody . 'Expediente: '.$file->getTitle().', con ID: '.$file->getId().', fecha de inicio: '.$file->getDateStart()->format('d/m/Y H:i').', fecha de finalización: '.$file->getDateEnd()->format('d/m/Y H:i').'<br>';
}
}
}
$mailBody = $mailBody .'<br><br><a href="https://inout.mante.solutions/reservations-greenpatio/">CALENDARIO GREEN PATIO</a>';
// $mailBody = $mailBody .'<br><br> <a href="http://127.0.0.1:8000/reservations-greenpatio/adminconfirmres/y/'.$id.'">"SI"</a> deseo confirmar la reserva.';
$mailBody = $mailBody .'<br><br> <a href="https://inout.mante.solutions/reservations-greenpatio/adminconfirmres/y/'.$id.'">"SI"</a> deseo confirmar la reserva.';
// $mailBody = $mailBody .'<br><br> <a href="http://127.0.0.1:8000/reservations-greenpatio/adminconfirmres/n/'.$id.'">"NO"</a> deseo confirmar la reserva.';
$mailBody = $mailBody .'<br><br> <a href="https://inout.mante.solutions/reservations-greenpatio/adminconfirmres/n/'.$id.'">"NO"</a> deseo confirmar la reserva.';
// $mailBody = $mailBody .'<br><br><br> <a href="http://127.0.0.1:8000">"PARA QUE LOS ENLACES FUNCIONEN, ANTES DEBES INCIAR SESION"</a><br><br>';
$mailBody = $mailBody .'<br><br><br> <a href="https://inout.mante.solutions">"PARA QUE LOS ENLACES FUNCIONEN, ANTES DEBES INCIAR SESION"</a><br><br>';
// Se envia el correo pidiendo la confirmacion
$this->sendMailLot($mailAddressFrom, $mailArrayTo, $mailSubject, $mailBody);
// Se envia el Telegram pidiendo la confirmacion
$this->sendTelegramToConfirmReservation($id);
// Sincronización con HT
if (!empty($reserva)) {
// Rafa indico que siempre se sincronice al abrir un expediente de GP
if (in_array($reserva->getStatus(), [null, '', 'Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
// if (in_array($reserva->getStatus(), ['Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
if ($reserva->getCateringName() == 'HIGO & TRIGO, S.L.') {
// Si no se ha creado aun el expediente de HT debemos crearlo
$htFile = $em->getRepository(HtFile::class)->findByReservation($reserva);
if (empty($htFile)) {
return $this->redirectToRoute('sinc_gp_ht', array('id' => $id,));
}
}
}
}
// Sincronización con Av Express
$cotizable = $this->laReservaEsCotizable($reserva->getId());
if ($cotizable) {
$AveFile = $em->getRepository(AveFiles::class)->findByReservation($reserva);
// Rafa indico que siempre se sincronice al abrir un expediente de GP
if (in_array($reserva->getStatus(), [null, '', 'Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
// if (in_array($reserva->getStatus(), ['Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
if (empty($AveFile)) {
// Si no se ha creado aun el expediente de Av Express debemos crearlo
return $this->redirectToRoute('sinc_gp_ave', array('id' => $id,));
}
}
}
return $this->redirectToRoute('reservations_greenpatio_edit_simple', array( 'id' => $id, 'token' => null ));
}
/**
* @Route("/adminconfirmres/{op}/{id}", name="reservations_greenpatio_admin_confirm_res")
* Confirmacion del administrador, positiva o negativa (op) de la reserva (id)
*/
public function adminConfirmationReservationAction($op, $id, Request $request){
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$mailArrayTo = array();
$mailArrayTo['salvador@avexpress.tv'] = 'salvador@avexpress.tv';
$mailArrayTo['rafael.guerrero@inout-travel.com'] = 'rafael.guerrero@inout-travel.com';
$mailArrayTo['comercial@greenpatio.es'] = 'comercial@greenpatio.es';
$mailArrayTo['comercial2@greenpatio.es'] = 'comercial2@greenpatio.es';
$mailArrayTo['gustavo.ayala@develup.solutions'] = 'gustavo.ayala@develup.solutions';
$agente = $em->getRepository(User::class)->findOneById($user_id);
$mailAddressFrom = $agente->getEmail();
$mailSubject = 'Confirmación de reserva: '.$reserva->getTitle();
switch ($op) {
case 'y':
// Se va a Confirmar la reserva
$reserva->setStatus('Confirmed');
$reserva->setUpdatedBy($user_id);
$reserva->setUpdatedAt(new DateTime('now'));
$em->persist($reserva);
$em->flush();
$mailBody = 'Estimado agente,'.
'<br><br>'. $agente->getName().' '. $agente->getLastName(). ' ha confirmado la reserva:'.
'<br><br>'.$reserva->getTitle(). ' con ID: '.$reserva->getId().
'<br>Este evento incia el día '.$reserva->getDateStart()->format('d/m/Y H:i'). ' y finaliza el día '.$reserva->getDateEnd()->format('d/m/Y H:i').'<br><br><br>';
// $mailBody = $mailBody .'<br><br> <a href="http://127.0.0.1:8000/reservations-greenpatio/editsimple/'.$id.'">Ir a la reserva</a>';
$mailBody = $mailBody .'<br><br> <a href="https://inout.mante.solutions/reservations-greenpatio/editsimple/'.$id.'">Ir a la reserva</a>';
break;
case 'n':
// No se va a Confirmar la reserva - Pasa a un editar (para ajustar fechas etc)
$reserva->setStatus('Cotizado');
$reserva->setUpdatedBy($user_id);
$reserva->setUpdatedAt(new DateTime('now'));
$em->persist($reserva);
$em->flush();
$mailBody = 'Estimado agente,'.
'<br><br>'. $agente->getName().' '. $agente->getLastName(). ' ha rechazado la confirmación de la reserva:'.
'<br><br>'.$reserva->getTitle(). ' con ID: '.$reserva->getId().
'<br>Este evento inciaba el día '.$reserva->getDateStart()->format('d/m/Y H:i'). ' y finalizaba el día '.$reserva->getDateEnd()->format('d/m/Y H:i').'<br><br><br>'.
'<br>POR FAVOR, PONGANSE EN CONTACTO PARA DETEMINAR UN NUEVO HORARIO<br><br><br>';
// $mailBody = $mailBody .'<br><br> <a href="http://127.0.0.1:8000/reservations-greenpatio/editsimple/'.$id.'">Ir a la reserva</a>';
$mailBody = $mailBody .'<br><br> <a href="http://inout.mante.solutions/reservations-greenpatio/editsimple/'.$id.'">Ir a la reserva</a>';
break;
default:
break;
}
// Enviar correo al agente (envia a las 2 agentes? enviar al creador de la reserva?)
$this->sendMailLot($mailAddressFrom, $mailArrayTo, $mailSubject, $mailBody);
echo 'Ha finalizado correctamente su sesión. Puede cerrar la aplicación'; exit();
}
/**
* @Route("/viewcontract/{id}", name="reservations_greenpatio_view_contract")
* Vista del contrato de la reserva (id)
*/
public function viewContractReservationAction($id, Request $request){
// El cliente es obligatorio y no puede ser null
// El contacto es obligatorio y no puede ser null, será el representante del cliente en el contrato
// En el expediente solo deben estar las salas definitivas para el contrato
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
// $user_logueado = $this->get('security.token_storage')->getToken()->getUser();
// $user_id = $user_logueado->getId();
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$contractOrigin = $reserva->getContract();
$dateStart = $reserva->getDateStart();
$dateEnd = $reserva->getDateEnd();
//Buscamos el representante
$representante = $reserva->getClientContact();
$representante = $em->getRepository(ClientContact::class)->findOneById($representante);
$representanteCorreo = $representante->getEmail();
$representante = $representante->getName().' '.$representante->getLastName();
//Buscamos el cliente
$client = $reserva->getClient();
$client = $em->getRepository(Client::class)->findOneById($client);
// La fecha de inicio y fin del evento incluyen montaje y desmontaje
// Determinamos el primer y ultimo dia del evento y lo modificamos en la reserva sin tocar la base de datos
$allOnlySalasReservadas = $em->getRepository(ReservationLoungeSimple::class)->findBy(array('idReservation'=>$id,'type'=>null));
if (!empty($allOnlySalasReservadas)){
$reserva->setDateStart($allOnlySalasReservadas[0]->getDateStart());
$reserva->setDateEnd($allOnlySalasReservadas[0]->getDateEnd());
foreach ($allOnlySalasReservadas as $item){
if ($item->getDateStart() < $reserva->getDateStart()){ $reserva->setDateStart($item->getDateStart()); }
if ($item->getDateEnd() > $reserva->getDateEnd()){ $reserva->setDateEnd($item->getDateEnd()); }
}
}
//Generamos la fecha actual
$fechaActual = new DateTime('now');
$mesActual = $fechaActual->format('m');
switch ($mesActual){
case '01': $mesActual = 'enero'; break;
case '02': $mesActual = 'febrero'; break;
case '03': $mesActual = 'marzo'; break;
case '04': $mesActual = 'abril'; break;
case '05': $mesActual = 'mayo'; break;
case '06': $mesActual = 'jumio'; break;
case '07': $mesActual = 'julio'; break;
case '08': $mesActual = 'agosto'; break;
case '09': $mesActual = 'septiembre'; break;
case '10': $mesActual = 'octubre'; break;
case '11': $mesActual = 'noviembre'; break;
case '12': $mesActual = 'diciembre'; break;
default: $mesActual = ''; break;
}
$contract00 = '
<br><br><br><br><br><br><br><br><br><br>
<div class="WordSection1"><div class="WordSection1"><div class="WordSection1"></div><div class="WordSection1"><p class="MsoBodyText" style="text-align: center;">
<span class="Ninguno"><b><br></b></span></p><p class="MsoBodyText" style="text-align: center;"><span class="Ninguno"><b><br></b></span></p><p class="MsoBodyText" style="text-align: center;"><span class="Ninguno"><b><br></b></span></p><p class="MsoBodyText" style="text-align: center;"><span class="Ninguno"><b><br></b></span></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:9.5pt;font-family:"Arial",sans-serif"> </span></b></span></p><p class="Cuerpo" align="center" style="margin-top:5.0pt;margin-right:167.3pt;margin-bottom:0cm;margin-left:163.35pt;margin-bottom:.0001pt;text-align:center"><span class="Ninguno"><u><span lang="DE" style="font-family: Arial, sans-serif;">
<b>CONTRATO DE CESION TEMPORAL DEL DERECHO DE USO</b></span></u></span></p><p class="Cuerpo" align="center" style="margin-top:5.0pt;margin-right:167.3pt;margin-bottom:0cm;margin-left:163.35pt;margin-bottom:.0001pt;text-align:center"><span class="Ninguno"><u><span lang="DE" style="font-family: Arial, sans-serif;"><b><br></b></span></u><u style="">
<span lang="DE" style="font-family: Arial, sans-serif;"><b>GREEN PATIO S.L.</b></span></u></span><span class="Ninguno"><b><span lang="DE" style="font-family:"Arial",sans-serif"><o:p></o:p></span></b></span></p></div><p class="MsoBodyText"><span lang="DE" style="font-size:11.0pt;font-family:"Arial",sans-serif;mso-fareast-font-family:"Arial Unicode MS";color:black;border:none;mso-style-textoutline-type:none;mso-style-textoutline-outlinestyle-dpiwidth:0pt;mso-style-textoutline-outlinestyle-linecap:flat;mso-style-textoutline-outlinestyle-join:bevel;mso-style-textoutline-outlinestyle-pctmiterlimit:0%;mso-style-textoutline-outlinestyle-dash:solid;mso-style-textoutline-outlinestyle-align:center;mso-style-textoutline-outlinestyle-compound:simple;mso-ansi-language:DE;mso-fareast-language:ES;mso-bidi-language:AR-SA"><br clear="all" style="page-break-before:always;mso-break-type:section-break"></span></p><div class="WordSection2"><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span></b></span></p><p class="Cuerpo" style="margin-top:10.65pt;margin-right:8.85pt;margin-bottom:0cm;margin-left:30.05pt;margin-bottom:.0001pt;line-height:138%;tab-stops:415.0pt"><span class="Hyperlink0">
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<span lang="DE" style="font-size:12.5pt;line-height:138%;font-family:"Arial",sans-serif">IDENTIFICACION DE LAS PARTES</span></span><span class="Ninguno"><b><i><u><span lang="DE" style="font-size:12.5pt;line-height:138%;font-family:"Arial",sans-serif"> </span></u></i></b></span><span class="Ninguno"><i style=""><span lang="DE" style="font-family: Arial, sans-serif; letter-spacing: -0.85pt;">3</span></i></span></p><p class="Cuerpo" style="margin-top:10.65pt;margin-right:8.85pt;margin-bottom:0cm;margin-left:30.05pt;margin-bottom:.0001pt;line-height:138%;tab-stops:415.0pt"><span class="Hyperlink0">
<span lang="ES-TRAD" style="font-size:12.5pt;line-height:138%;font-family:"Arial",sans-serif;mso-ansi-language:ES-TRAD">EXPOSICION</span></span><span class="Ninguno"><b><i><span lang="ES-TRAD" style="font-size:12.5pt;line-height:138%;font-family:"Arial",sans-serif;letter-spacing:-1.7pt"> </span></i></b></span><span class="Hyperlink0"><span lang="DE" style="font-size:12.5pt;line-height:138%;font-family:"Arial",sans-serif">PREVIA</span></span><span class="Ninguno"><i style=""><u style=""><span lang="DE" style="font-size: 12.5pt; line-height: 138%; font-family: Arial, sans-serif;"> </span></u></i></span><span class="Ninguno"><i style=""><span lang="DE" style="font-family: Arial, sans-serif; letter-spacing: -0.85pt;">3</span></i></span></p><p class="Cuerpo" style="margin-top:10.65pt;margin-right:8.85pt;margin-bottom:0cm;margin-left:30.05pt;margin-bottom:.0001pt;text-align:justify;line-height:138%;tab-stops:415.0pt"><span class="Hyperlink0">
<span lang="DE" style="font-size:12.5pt;line-height:138%;font-family:"Arial",sans-serif">ESTIPULACIONES</span></span><span class="Ninguno"><b><i><u><span lang="DE" style="font-size:12.5pt;line-height:138%;font-family:"Arial",sans-serif"> </span></u></i></b></span><span class="Ninguno"><span lang="DE" style="font-family: Arial, sans-serif; letter-spacing: -0.85pt;">4</span></span><span class="Ninguno"><b><i><span lang="DE" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></i></b></span></p><p class="MsoListParagraph" style="margin-top:.25pt;margin-left:30.05pt; text-indent:0pt;mso-list:l11 level1 lfo2;tab-stops:41.1pt 415.0pt"><!--[if !supportLists]-->
<b><span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">1.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">OBJETO</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;letter-spacing:-.05pt"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">DEL</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">CONTRATO</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">4</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.05pt;margin-left:30.05pt;text-indent:0pt;mso-list:l11 level1 lfo2;tab-stops:41.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">2.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">DURACIÓN</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;letter-spacing:-.05pt"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">Y</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">RESOLUCION</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">4</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.05pt;margin-left:30.05pt;text-indent:0pt;mso-list:l11 level1 lfo2;tab-stops:41.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">3.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">EL</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">EVENTO</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">5</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.1pt;margin-left:30.05pt;text-indent:0pt;mso-list:l11 level1 lfo2;tab-stops:41.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">4.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">POLITICA</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">DE CANCELACIÓN</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">6</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.1pt;margin-left:30.05pt;text-indent:0pt;mso-list:l11 level1 lfo2;tab-stops:41.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">5.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">NORMAS</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">DE</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">SEGURIDAD</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">7</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.1pt;margin-left:30.05pt;text-indent:0pt;mso-list:l11 level1 lfo2;tab-stops:41.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">6.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">FIANZA.</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">SEGUROS</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">8</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.05pt;margin-left:30.05pt;text-indent:0pt;mso-list:l11 level1 lfo2;tab-stops:41.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">7.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">COSTE, PLAZO Y FORMA DE PAGO DE</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">LA</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Ninguno"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;letter-spacing:-.05pt">CESION<b><u> </u></b></span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">8</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:5.6pt;margin-left:30.05pt;text-indent:0pt;mso-list:l11 level1 lfo2;tab-stops:41.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">8.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">RESERVA</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">9</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.1pt;margin-right:0cm;margin-bottom:0cm;margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">1.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">CONFIDENCIALIDAD</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;letter-spacing:-.05pt"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">Y</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">PUBLICIDAD</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">10</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.1pt;margin-right:0cm;margin-bottom:0cm;margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">2.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">DERECHOS DE IMAGEN Y</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">PROPIEDAD</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">INTELECTUAL</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">11</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.05pt;margin-right:0cm;margin-bottom:0cm;margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">3.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">PREVENCIÓN DE</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">LA</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">CORRUPCIÓN</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">11</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.1pt;margin-right:0cm;margin-bottom:0cm;margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">4.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">PROTECCIÓN DE DATOS</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">PERSONALES</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">11</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.05pt;margin-right:0cm;margin-bottom:0cm;margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">5.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">RESPONSABILIDAD</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">13</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.1pt;margin-right:0cm;margin-bottom:0cm; margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">6.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">COMUNICACIONES</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">15</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:5.6pt;margin-right:0cm;margin-bottom:0cm;margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">7.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">CESIÓN</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">15</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.1pt;margin-right:0cm;margin-bottom:0cm; margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">8.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">NULIDAD</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">PARCIAL</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">15</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.05pt;margin-right:0cm;margin-bottom:0cm; margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">9.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">FUERZA</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">MAYOR</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">15</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.1pt;margin-right:0cm;margin-bottom:0cm; margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">10.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">ACUERDO</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">COMPLETO</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">16</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.1pt;margin-right:0cm;margin-bottom:0cm; margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">11.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">MODIFICACIÓN</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">16</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.05pt;margin-right:0cm;margin-bottom:0cm; margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">12.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">LEGISLACIÓN</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;letter-spacing:-.05pt"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">Y</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">JURISDICCIÓN</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">16</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span></b></p><p class="MsoListParagraph" style="margin-top:6.1pt;margin-right:0cm;margin-bottom:0cm; margin-bottom:.0001pt;margin-left:53.1pt;text-indent:0pt;mso-list:l22 level1 lfo4;tab-stops:53.1pt 415.0pt"><!--[if !supportLists]--><b>
<span lang="ES-TRAD" style="font-family:"Calibri",sans-serif;mso-fareast-font-family:Calibri">13.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: "Times New Roman";"> </span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">ANEXO I. EL</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;letter-spacing:-.05pt"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">ESPACIO</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">CEDIDO</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:"Arial",sans-serif">18</span></span><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
</b></p></div><p class="MsoBodyText"><span lang="DE" style="font-size:11.0pt;font-family:"Arial",sans-serif;mso-fareast-font-family:"Arial Unicode MS";color:black;border:none;mso-style-textoutline-type:none;mso-style-textoutline-outlinestyle-dpiwidth:0pt;mso-style-textoutline-outlinestyle-linecap:flat;mso-style-textoutline-outlinestyle-join:bevel;mso-style-textoutline-outlinestyle-pctmiterlimit:0%;mso-style-textoutline-outlinestyle-dash:solid;mso-style-textoutline-outlinestyle-align:center;mso-style-textoutline-outlinestyle-compound:simple;mso-ansi-language:DE;mso-fareast-language:ES;mso-bidi-language:AR-SA"><br clear="all" style="page-break-before:always;mso-break-type:section-break"></span></p><div class="WordSection3"><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"> </span></b></span></p><p class="MsoBodyText" style="margin-top:.45pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:11.5pt;font-family:"Arial",sans-serif;mso-fareast-font-family:Calibri"> </span></b></span></p><p class="Encabezamiento" style="margin-top:5.05pt;margin-right:0cm;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-indent:0cm"><span class="Hyperlink1">
<span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-ansi-language:ES-TRAD">En Madrid, a </span></span><span class="Hyperlink1">
'.$fechaActual->format('d').' de '.$mesActual.' del '.$fechaActual->format('Y').'.'.'
<span lang="DE" style="font-family:"Arial",sans-serif"><o:p></o:p></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:13.0pt;font-family:"Arial",sans-serif"> </span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:11.0pt;font-family:"Arial",sans-serif"> </span></b></span></p><p class="Cuerpo" align="center" style="margin-top:0cm;margin-right:19.7pt;margin-bottom:0cm;margin-left:55.6pt;margin-bottom:.0001pt;text-align:center"><a name="_bookmark0"></a><span class="Ninguno"><b><u><span lang="DE" style="font-family:"Arial",sans-serif">IDENTIFICACION DE LAS PARTES</span></u></b></span><span class="Ninguno"><b><span lang="DE" style="font-family:"Arial",sans-serif"><o:p></o:p></span></b></span></p><p class="MsoBodyText" style="margin-top:5.05pt;margin-right:11.95pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif"> </span></b></span></p><p class="MsoBodyText" style="margin-top:5.05pt;margin-right:11.95pt;margin-bottom:0cm;margin-left:0cm;margin-bottom:.0001pt;text-align:justify"><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Garamond-Bold">DE UNA PARTE:</span></u></b></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Garamond-Bold"> EL CLIENTE </span></b></span><span lang="EN-US" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Garamond-Bold;color:#212121;mso-ansi-language:EN-US">
';
$contract01 = '</span><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Garamond-Bold">con</span><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Garamond-Bold;mso-ansi-language:ES"> </span><span lang="EN-US" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Garamond-Bold;mso-ansi-language:EN-US"> ';
$contract02 = '</span><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Garamond-Bold">y domicilio a efectos de notificacionesen </span><span style="font-family:"Arial",sans-serif;mso-ansi-language:ES">';
$contract03 = '</span><span class="Ninguno"><span style="font-family:"Arial",sans-serif;mso-fareast-font-family:Garamond-Bold;color:#212121"> </span></span><span lang="ES-TRAD" style="font-family:"Arial",sans-serif;mso-fareast-font-family:Garamond-Bold;color:#313131">facultada y representada por D.';
$contract04 = '<p class="Poromisin" style="margin-top:0cm"><span class="Ninguno"><span lang="RU" style="color: rgb(33, 33, 33);"><font face="Arial"> </font></span></span></p><p class="Poromisin" style="margin-top:0cm"><font face="Arial"><span class="Ninguno"><b><u><span lang="EN-US" style="color: rgb(49, 49, 49);">DE OTRA</span></u></b></span><span class="Ninguno"><b><u><span lang="EN-US" style="color: rgb(49, 49, 49); letter-spacing: 2.65pt;"> </span></u></b></span><span class="Ninguno"><b><u><span lang="DE" style="color: rgb(49, 49, 49);">PARTE</span></u></b></span><span class="Ninguno"><b><span lang="DE" style="color: rgb(49, 49, 49);">: GREEN PATIO </span></b></span><span class="Ninguno"><b><span lang="RU" style="color: rgb(49, 49, 49); letter-spacing: -0.15pt;">S.L.</span></b></span><span class="Ninguno"><b><span lang="RU" style="color: rgb(49, 49, 49); letter-spacing: 2.65pt;"> </span></b></span><span class="Ninguno"><span lang="RU" style="color: rgb(49, 49, 49);">(en adelante, LA CEDENTE) </span></span><span class="Ninguno"><span lang="IT" style="color: rgb(49, 49, 49);">con CIF</span></span><span class="Ninguno"><span lang="IT" style="color: rgb(49, 49, 49);"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="color: rgb(49, 49, 49);">B88404678 y domicilio a efectos de notificaciones en la calle Salamanca n</span></span><span class="Hyperlink1"><span lang="RU" style="color: rgb(49, 49, 49);">ú</span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="color: rgb(49, 49, 49);">mero 23 de Madrid, C.P 28020 facultada y representada por D. Gabriela Bracho Arroyo con DNI n</span></span><span class="Hyperlink1"><span lang="RU" style="color: rgb(49, 49, 49);">º </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="color: rgb(49, 49, 49);">06684720T en su calidad de Gestora del Espacio.</span></span><span lang="RU" style="color: rgb(49, 49, 49);"><o:p></o:p></span></font></p><p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:11.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.55pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Las partes, manifiestan tener y se reconocen, mutua y recíprocamente, la capacidad legal necesaria para otorgar en la representación que ostentan el presente contrato de cesión de uso de espacio (el “</span></span><span class="Ninguno"><b><span lang="ES-TRAD">Contrato</span></b></span><span class="Hyperlink1"><span lang="ES-TRAD">”), a cuyos efectos</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:11.0pt"><font face="Arial"> </font></span></span></p><p class="Encabezamiento" align="center" style="margin-top:0cm;margin-right:19.45pt;margin-bottom:0cm;margin-left:15.75pt;margin-bottom:.0001pt;text-align:center;text-indent:0cm"><font face="Arial"><a name="_bookmark1"></a><span class="Ninguno"><u><b><span lang="DE">EXPOSICION PREVIA</span></b></u></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:.1pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:9.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoListParagraph" style="margin-top:5.0pt;margin-right:9.05pt;margin-bottom:0cm;margin-left:23.05pt;margin-bottom:.0001pt;text-align:justify;text-indent:-18.0pt;mso-list:l5 level1 lfo6;tab-stops:23.1pt"><!--[if !supportLists]--><font face="Arial"><b><span lang="ES-TRAD" style="font-size:12.0pt">I.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span></b><!--[endif]--><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">Que </span><b><span lang="ES-TRAD" style="font-size:12.0pt">GREEN PATIO <span style="letter-spacing:-.15pt">S.L. </span></span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">es una empresa dedicada a la prestación de servicios empresariales </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.15pt">como </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">la preparación y cesión a terceros de espacios para la celebración de eventos principalmente publicitarios o de empresa </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.15pt">como </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">reuniones, congresos o convenciones</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.35pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">y</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">está</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">interesada</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">en</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">ceder</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">el</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">espacio,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">que</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span><span lang="ES-TRAD" style="letter-spacing:.1pt">más</span><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">adelante</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">se</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">identifica</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">y</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">sobre el que ostenta los derechos de disposición y cesión a tercero, sito en la calle Salamanca nº 23 de Madrid (28020) a <b>EL CLIENTE</b> para que </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.25pt">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">mismo pueda celebrar el evento que igualmente se</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">identificará.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:8.7pt;margin-bottom:0cm;margin-left:23.05pt;margin-bottom:.0001pt;text-align:justify;text-indent:-18.0pt;mso-list:l5 level1 lfo6;tab-stops:23.1pt"><!--[if !supportLists]--><font face="Arial"><b><span lang="ES-TRAD" style="font-size:12.0pt">II.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span></b><!--[endif]--><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">Que </span><span lang="ES-TRAD" style="letter-spacing:-.2pt"></span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt"><b>EL CLIENTE</b> es una empresa que conoce las características</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.35pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">del</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.25pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">espacio</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">cuyo</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">uso</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.55pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">temporal</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.25pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">se</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.45pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">cede,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">y</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.45pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">está</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">interesado</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">en</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.1pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">la</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">contratación de dicha autorización temporal de uso en las condiciones que libremente ha negociado con <b>LA CEDENTE</b> y que se recogen en el presente</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.8pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">documento.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:9.1pt;margin-bottom:0cm;margin-left:23.05pt;margin-bottom:.0001pt;text-align:justify;text-indent:-18.0pt;mso-list:l5 level1 lfo7;tab-stops:23.25pt"><!--[if !supportLists]--><font face="Arial"><b><span lang="ES-TRAD" style="font-size:12.0pt">III.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span> </span></b><!--[endif]--><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">Que </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt"><b>GREEN PATIO S.L.</b> está interesada en ceder el espacio que se indica en este contrato a <b>EL CLIENTE</b> y éste a arrendarlo para </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.15pt">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">celebración del evento que se especificará más adelante, lo que llevan a efecto con arreglo a las</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.7pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">siguientes,</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p></div>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<p class="MsoBodyText"><font face="Arial"><span lang="DE" style="font-size: 11pt; color: black; border: none;"><br clear="all" style="page-break-before:always;mso-break-type:section-break"></span></font></p><div class="WordSection4"><p class="Encabezamiento" align="center" style="margin-top:0cm;margin-right:19.45pt;margin-bottom:0cm;margin-left:15.75pt;margin-bottom:.0001pt;text-align:center;text-indent:0cm"><font face="Arial"><a name="_bookmark1"></a><span class="Ninguno"><u><b><span lang="DE">ESTIPULACIÓN</span></b></u></span></a><span class="Ninguno"><u><span lang="DE"> </span></u><span lang="DE"><o:p></o:p></span></span></font></p><p class="MsoBodyText" style="margin-top:.4pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:11.0pt"><font face="Arial"> </font></span></b></span></p><p class="MsoListParagraph" style="margin-top:5.0pt;margin-right:0cm;margin-bottom:0cm;margin-left:34.1pt;margin-bottom:.0001pt;text-indent:-29.05pt;mso-list:l22 level1 lfo9;tab-stops:34.1pt"><font face="Arial"><a name="_bookmark3"></a><!--[if !supportLists]--><b><span lang="ES-TRAD" style="font-size:12.0pt">1.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span></b><!--[endif]--><span class="Ninguno"><b><u><span lang="ES-TRAD">OBJETO DEL<span style="letter-spacing:.25pt"> </span>CONTRATO</span></u></b></span><b><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></b></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="Cuerpo" style="margin-top:5.05pt;margin-right:8.5pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Ninguno"><span lang="DE">En virtud </span></span><span class="Ninguno"><span lang="IT" style="letter-spacing:-.2pt;mso-ansi-language:IT">del </span></span><span class="Ninguno"><span lang="IT">presente Contrato, </span><b><span lang="DE">GREEN PATIO <span style="letter-spacing:-.15pt">S.L. </span>CEDE TEMPORALMENTE EL DERECHO DE USO y EL CLIENTE ACEPTA </span></b><span lang="DE">dicha cesió</span></span><span class="Ninguno"><span lang="PT">n temporal </span></span><span class="Ninguno"><span lang="IT" style="letter-spacing:-.2pt;mso-ansi-language:IT">del</span><span lang="IT" style="letter-spacing:-1.75pt"> </span><span lang="DE">espacio identificado con descripción detallada y </span></span><span class="Ninguno"><span lang="PT" style="letter-spacing:-.15pt;mso-ansi-language:PT">planos </span><span lang="DE">en el Anexo I sito en <span style="letter-spacing:-.25pt">el </span>edificio de la calle Salamanca número 23 de Madrid, todo ello en los t</span></span><span class="Ninguno"><span lang="FR">é</span><span lang="DE">rminos y condiciones contenidos en <span style="letter-spacing:-.25pt">el </span>presente contrato (en adelante <b>EL<span style="letter-spacing:-.25pt"> </span>ESPACIO</b>)<o:p></o:p></span></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:.05pt;margin-right:8.35pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">parte</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD"><b>EL</b></span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD"><b>CLIENTE</b>,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acepta</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cesión</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">temporal</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">derecho</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> uso </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">dicho</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacio en </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">condiciones contenidas en el presente contrato, y exclusivamente para la celebración del siguiente</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">evento:</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="Cuerpo" style="margin-top:0cm;margin-right:8.65pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><span class="Ninguno"><b><span lang="DE"><font face="Arial"> </font></span></b></span></p><p class="Cuerpo" style="margin-top:0cm;margin-right:8.65pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><b>';
$contract05 = '<span class="Ninguno"><span lang="DE">, que se celebrar</span></span></b><span class="Ninguno"><b><span lang="PT">á </span><span lang="DE"> desde el día ';
//Generamos la fecha de inicio
$fechaInicio = $reserva->getDateStart()->format('m');
switch ($fechaInicio){
case '01': $mesInicio = 'enero'; break;
case '02': $mesInicio = 'febrero'; break;
case '03': $mesInicio = 'marzo'; break;
case '04': $mesInicio = 'abril'; break;
case '05': $mesInicio = 'mayo'; break;
case '06': $mesInicio = 'jumio'; break;
case '07': $mesInicio = 'julio'; break;
case '08': $mesInicio = 'agosto'; break;
case '09': $mesInicio = 'septiembre'; break;
case '10': $mesInicio = 'octubre'; break;
case '11': $mesInicio = 'noviembre'; break;
case '12': $mesInicio = 'diciembre'; break;
default: $mesInicio = ''; break;
}
$fechaInicio = $reserva->getDateStart()->format('d'). ' de '.$mesInicio.' del '.$reserva->getDateStart()->format('Y').' ';
$contract06 ='</span><span lang="DE">a las<span style="letter-spacing:-.7pt"> </span><span style="letter-spacing:-.15pt">';
$horaInicio = $reserva->getDateStart()->format('H:i').' ';
$contract07 ='</span>horas<span style="letter-spacing:-.5pt"> </span>hasta<span style="letter-spacing:-.15pt">';
//Generamos la fecha de fin
$fechaFin = $reserva->getDateEnd()->format('m');
switch ($fechaFin){
case '01': $mesFin = 'enero'; break;
case '02': $mesFin = 'febrero'; break;
case '03': $mesFin = 'marzo'; break;
case '04': $mesFin = 'abril'; break;
case '05': $mesFin = 'mayo'; break;
case '06': $mesFin = 'jumio'; break;
case '07': $mesFin = 'julio'; break;
case '08': $mesFin = 'agosto'; break;
case '09': $mesFin = 'septiembre'; break;
case '10': $mesFin = 'octubre'; break;
case '11': $mesFin = 'noviembre'; break;
case '12': $mesFin = 'diciembre'; break;
default: $mesFin = ''; break;
}
if ($reserva->getDateStart()->format('ymd') != $reserva->getDateEnd()->format('ymd')){
$fechaFin = ' el día '.$reserva->getDateEnd()->format('d'). ' de '.$mesFin.' del '.$reserva->getDateEnd()->format('Y').' a las '.$reserva->getDateEnd()->format('H:i').' ';
$contractAlfa = '</span><span style="letter-spacing:-.65pt"> </span>horas <span style="letter-spacing:-.45pt"></span></span></b></span><span class="Ninguno"><span lang="IT">exclusivamente</span><span lang="IT" style="letter-spacing:-.55pt"> </span><span lang="DE">en<span style="letter-spacing:-1.15pt"> </span><span style="letter-spacing:.1pt">las</span><span style="letter-spacing:-.4pt"> </span>zonas<span style="letter-spacing:-.95pt"> </span>que<span style="letter-spacing:-.5pt"> </span>a<span style="letter-spacing:-.9pt"> </span>tal<span style="letter-spacing:-.85pt"> </span>efecto<span style="letter-spacing:-.65pt"> </span>son<span style="letter-spacing:-.65pt"> </span></span></span><span class="Ninguno"><span lang="PT">objeto de cesi</span><span lang="DE">ón:';
$contract08 = $fechaFin.$contractAlfa;
} else {
// El evento empieza y termina el mismo dia
$horaFin = ' las '.$reserva->getDateEnd()->format('H:i').' ';
$contractAlfa = '</span><span style="letter-spacing:-.65pt"> </span>horas <span style="letter-spacing:-.45pt"></span></span></b></span><span class="Ninguno"><span lang="IT">exclusivamente</span><span lang="IT" style="letter-spacing:-.55pt"> </span><span lang="DE">en<span style="letter-spacing:-1.15pt"> </span><span style="letter-spacing:.1pt">las</span><span style="letter-spacing:-.4pt"> </span>zonas<span style="letter-spacing:-.95pt"> </span>que<span style="letter-spacing:-.5pt"> </span>a<span style="letter-spacing:-.9pt"> </span>tal<span style="letter-spacing:-.85pt"> </span>efecto<span style="letter-spacing:-.65pt"> </span>son<span style="letter-spacing:-.65pt"> </span></span></span><span class="Ninguno"><span lang="PT">objeto de cesi</span><span lang="DE">ón:';
$contract08 = $horaFin.$contractAlfa;
}
// Buscamos las salas
$allSalasReservadas = $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($id);
$arrayTextoSalas = array();
foreach ($allSalasReservadas as $item){
$arrayTextoSalas[$item->getIdLounge()] = $item->getIdLounge();
}
$textoSalas = '';
$logAllGreen = false; // Si se asigna el edificio completo no hay que verificar mas salas
foreach ($arrayTextoSalas as $item){
$sala = $em->getRepository(ReservationLoungeDetails::class)->findOneById($item);
switch ($sala->getId()){
case '1': $textoSalas = '<b>TODO EL EDIFICIO EN EXCLUSIVA</b>'; $logAllGreen = true; break;
case '16':
if (empty($textoSalas)){
$textoSalas = '<b>Sala Plenaria La Imprenta, Sala Invernadero</b>';
} else {
$textoSalas = $textoSalas.'<b>Sala Plenaria La Imprenta, Sala Invernadero</b>'; }
break;
case '17':
if (empty($textoSalas)){
$textoSalas = '<b>Sala Plenaria La Imprenta, Sala Invernadero, Sala Escenario</b>';
} else {
$textoSalas = $textoSalas.'<b>Sala Plenaria La Imprenta, Sala Invernadero, Sala Escenario</b>'; }
break;
default: if (!$logAllGreen){
// Agregamos el texto de la sala
if (empty($textoSalas)){ $textoSalas = '<b>'.$sala->getName().'</b>'; } else { $textoSalas = $textoSalas.'<b>, '.$sala->getName().'</b>'; }
} break;
}
}
$contract09 = '</span></span><span class="Ninguno"><b><o:p></o:p></b></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:.05pt;margin-right:8.7pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Las partes desean dejar expresa constancia de que </span></span><span class="Ninguno"><span lang="ES-TRAD">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">alcance de la cesión es exclusivamente al uso temporal y privativo de la </span></span><span class="Ninguno"><span lang="ES-TRAD">zona </span></span><span class="Hyperlink1"><span lang="ES-TRAD">identificada en </span></span><span class="Ninguno"><span lang="ES-TRAD">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Anexo I. Si </span></span><span class="Ninguno"><span lang="ES-TRAD">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacio contase con otras instalaciones </span></span><span class="Ninguno"><span lang="ES-TRAD">como </span></span><span class="Hyperlink1"><span lang="ES-TRAD">medios telemáticos, equipos multimedia, wifi, megafonía, iluminación diferente de la propia </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacio o de cualquier otro </span></span><span class="Ninguno"><span lang="ES-TRAD">tipo, </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el uso temporal de dichos elementos quedará expresamente sometido a su descripción de inventario detallada en el citado Anexo I al</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contrato.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:.05pt;margin-right:8.75pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD"><b>EL CLIENTE</b> y los asistentes a </span></span><span class="Ninguno"><span lang="ES-TRAD">su </span></span><span class="Hyperlink1"><span lang="ES-TRAD">evento podrán utilizar libremente las zonas comunes </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">edificio,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">como</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">accesos,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ascensores,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">aseos,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">garantizando</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">realiza</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">un</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">uso</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">adecuado</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">las </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">mismas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">y</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sin</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ocasionar</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">molestias</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otros</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">usuarios</span></span><span class="Ninguno"><span lang="ES-TRAD"> ni<span style="letter-spacing:-.05pt"> </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">daños</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">desperfectos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">las</span> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">mismas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por un uso inadecuado o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">negligente.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:.1pt"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:14.5pt"><font face="Arial"> </font></span></span></p><p class="Encabezamiento"><font face="Arial"><a name="_bookmark4"></a><!--[if !supportLists]--><span lang="DE">2.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Ninguno"><u><span lang="DE">DURACIÓN Y RESOLUCION</span></u></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.65pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">El presente Contrato entrará en vigor en </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">fecha </span></span><span class="Ninguno"><span lang="ES-TRAD">de </span></span><span class="Hyperlink1"><span lang="ES-TRAD">su firma y permanecerá en vigor hasta la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">finalización</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">plazo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">convenido</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">para</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cesión</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">uso</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacio,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">es</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">decir,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span><b><span lang="ES-TRAD">a las <span style="letter-spacing:-.05pt">';
$cierre = $reserva->getDateEnd()->format('H:i').' horas del día '.$reserva->getDateEnd()->format('d').' de '.$mesFin.' del '.$reserva->getDateEnd()->format('Y');
$contract10 ='</span></span></b></span><span class="Hyperlink1"><span lang="ES-TRAD">, quedando ambas partes expresamente enteradas de </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">terminación</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">automática,</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">sin</span> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tanto</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sea</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">necesario</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">preaviso</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ninguna</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">clase</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">entre</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ellas.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.45pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Llegado su término, <b>EL CLIENTE</b> deberá desalojar el espacio y devolverlo a <b>LA CEDENTE</b> en las mismas condiciones en que se le entregaron, junto con los medios o elementos cuyo uso se le hubiera igualmente cedido.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:5.8pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">El presente contrato podrá resolverse a instancia de cualquiera de las partes para el supuesto de incumplimiento de la otra parte de sus obligaciones contenidas en el mismo. Dicho incumplimiento</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">una</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">las</span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">partes</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">facultará</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otra</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">para</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">optar</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">entre</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">exigir</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cumplimiento íntegro del contrato o dar por resuelto el mismo, todo ello con independencia de su derecho a reclamar a la parte incumplidora los daños y perjuicios que se le hubieran</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ocasionado.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p></div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<p class="MsoBodyText"><font face="Arial"><span lang="DE" style="font-size: 11pt; color: black; border: none;"><br clear="all" style="page-break-before:always;mso-break-type:section-break"></span></font></p><div class="WordSection5"><p class="Encabezamiento" style="margin-top:4.2pt;mso-list:l22 level1 lfo10;tab-stops:34.1pt"><font face="Arial"><a name="_bookmark5"></a><!--[if !supportLists]--><span lang="DE">3.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Ninguno"><u><span lang="DE">EL EVENTO</span></u></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.1pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.0pt;margin-right:9.25pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">A continuación, se describen las características principales del evento que <b>EL CLIENTE</b> podrá celebrar en el espacio cuyo uso se cede por el presente contrato:</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="Encabezamiento" style="margin-left:5.05pt;text-align:justify;text-indent:0cm"><font face="Arial"><span class="Hyperlink1"><span lang="DE"><b>Tipo: </b></span></span><span lang="EN-US"> <b>EVENTO</b></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial"> </font></span></b></span></p><p class="MsoListParagraph"><!--[if !supportLists]--><font face="Arial"><span style="font-size:12.0pt;mso-ansi-language:ES">-<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Descripción:</span></span><span lang="ES-TRAD" style="font-size: 12pt; color: rgb(34, 34, 34); border: none;"> </span><span style="font-size:12.0pt;mso-ansi-language:ES">Presentación de producto.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:.05pt;mso-list:l11 level2 lfo12;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">-<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:12.0pt;letter-spacing:-.15pt">Número </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">de asistentes final no ampliable: </span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:12.0pt;letter-spacing:.2pt">';
$pax = $reserva->getPax();
$contract11 = '</span></b></span><b><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></b></font></p><p class="Cuerpo" style="margin-top:0cm;margin-right:11.95pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt"><span class="Ninguno"><b><span lang="DE" style="font-size:12.0pt"><font face="Arial">(Cualquier modificación de dicho número debe ser comunicado al espacio con anticipación.)<o:p></o:p></font></span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial"> </font></span></b></span></p><p class="MsoListParagraph"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">-<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Fecha de celebración: ';
$contract12 = '</span></span><b><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></b></font></p><p class="MsoListParagraph"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">-<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Salas a utilizar: </span></span><span class="Ninguno"><b><u><span lang="ES-TRAD">';
$contract13 = '</span></u></b></span><b><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></b></font></p>';
// Se asume que los montajes seran como maximo de dos dias
$montaje = array();
$mesInicioMontaje = '';
$mesFinMontaje = '';
foreach ($allSalasReservadas as $item){
if ($item->getType() == 'Montaje'){
if (empty($montaje)){
$montaje[0] = $item->getDateStart();
switch ($item->getDateStart()->format('m')){
case '01': $mesInicioMontaje = 'enero'; break;
case '02': $mesInicioMontaje = 'febrero'; break;
case '03': $mesInicioMontaje = 'marzo'; break;
case '04': $mesInicioMontaje = 'abril'; break;
case '05': $mesInicioMontaje = 'mayo'; break;
case '06': $mesInicioMontaje = 'jumio'; break;
case '07': $mesInicioMontaje = 'julio'; break;
case '08': $mesInicioMontaje = 'agosto'; break;
case '09': $mesInicioMontaje = 'septiembre'; break;
case '10': $mesInicioMontaje = 'octubre'; break;
case '11': $mesInicioMontaje = 'noviembre'; break;
case '12': $mesInicioMontaje = 'diciembre'; break;
default: $mesInicioMontaje = ''; break;
}
} else {
$montaje[1] = $item->getDateEnd();
switch ($item->getDateEnd()->format('m')){
case '01': $mesFinMontaje = 'enero'; break;
case '02': $mesFinMontaje = 'febrero'; break;
case '03': $mesFinMontaje = 'marzo'; break;
case '04': $mesFinMontaje = 'abril'; break;
case '05': $mesFinMontaje = 'mayo'; break;
case '06': $mesFinMontaje = 'jumio'; break;
case '07': $mesFinMontaje = 'julio'; break;
case '08': $mesFinMontaje = 'agosto'; break;
case '09': $mesFinMontaje = 'septiembre'; break;
case '10': $mesFinMontaje = 'octubre'; break;
case '11': $mesFinMontaje = 'noviembre'; break;
case '12': $mesFinMontaje = 'diciembre'; break;
default: $mesFinMontaje = ''; break;
}
}
}
}
switch (sizeof($montaje)){
case 1: $textoMontaje = $montaje[0]->format('d').' de '.$mesInicioMontaje.' del '.$montaje[0]->format('Y'); break;
case 2:
if ($mesInicioMontaje == $mesFinMontaje){
// Dos dias de montaje en el mismo mes
$textoMontaje = $montaje[0]->format('d').' y '.$montaje[1]->format('d'). ' de '.$mesInicioMontaje.' del '.$montaje[0]->format('Y');
} else {
// Dos dias de montaje con diferentes meses, ejemplo 31/03 y 01/04
$textoMontaje = $montaje[0]->format('d').' de '.$mesInicioMontaje.' y '.$montaje[1]->format('d').' de '.$mesFinMontaje.' del '.$montaje[0]->format('Y');
}
break;
default: $textoMontaje = null; break;
}
if (!empty($textoMontaje)){
$textoMontaje = '<p class="MsoListParagraph"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">-<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">MONTAJE: '.$textoMontaje.'</span></span><b><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></b></font></p>';
}
// Se asume que los desmontajes seran como maximo de dos dias
$desmontaje = array();
$mesInicioDesmontaje = '';
$mesFinDesmontaje = '';
foreach ($allSalasReservadas as $item){
if ($item->getType() == 'Desmontaje'){
if (empty($desmontaje)){
$desmontaje[0] = $item->getDateStart();
switch ($item->getDateStart()->format('m')){
case '01': $mesInicioDesmontaje = 'enero'; break;
case '02': $mesInicioDesmontaje = 'febrero'; break;
case '03': $mesInicioDesmontaje = 'marzo'; break;
case '04': $mesInicioDesmontaje = 'abril'; break;
case '05': $mesInicioDesmontaje = 'mayo'; break;
case '06': $mesInicioDesmontaje = 'jumio'; break;
case '07': $mesInicioDesmontaje = 'julio'; break;
case '08': $mesInicioDesmontaje = 'agosto'; break;
case '09': $mesInicioDesmontaje = 'septiembre'; break;
case '10': $mesInicioDesmontaje = 'octubre'; break;
case '11': $mesInicioDesmontaje = 'noviembre'; break;
case '12': $mesInicioDesmontaje = 'diciembre'; break;
default: $mesInicioDesmontaje = ''; break;
}
} else {
$desmontaje[1] = $item->getDateEnd();
switch ($item->getDateEnd()->format('m')){
case '01': $mesFinDesmontaje = 'enero'; break;
case '02': $mesFinDesmontaje = 'febrero'; break;
case '03': $mesFinDesmontaje = 'marzo'; break;
case '04': $mesFinDesmontaje = 'abril'; break;
case '05': $mesFinDesmontaje = 'mayo'; break;
case '06': $mesFinDesmontaje = 'jumio'; break;
case '07': $mesFinDesmontaje = 'julio'; break;
case '08': $mesFinDesmontaje = 'agosto'; break;
case '09': $mesFinDesmontaje = 'septiembre'; break;
case '10': $mesFinDesmontaje = 'octubre'; break;
case '11': $mesFinDesmontaje = 'noviembre'; break;
case '12': $mesFinDesmontaje = 'diciembre'; break;
default: $mesFinDesmontaje = ''; break;
}
}
}
}
switch (sizeof($desmontaje)){
case 1: $textoDesmontaje = $desmontaje[0]->format('d').' de '.$mesInicioDesmontaje.' del '.$desmontaje[0]->format('Y'); break;
case 2:
if ($mesInicioDesmontaje == $mesFinDesmontaje){
// Dos dias de montaje en el mismo mes
$textoDesmontaje = $desmontaje[0]->format('d').' y '.$desmontaje[1]->format('d'). ' de '.$mesInicioDesmontaje.' del '.$desmontaje[0]->format('Y');
} else {
// Dos dias de montaje con diferentes meses, ejemplo 31/03 y 01/04
$textoDesmontaje = $desmontaje[0]->format('d').' de '.$mesInicioDesmontaje.' y '.$desmontaje[1]->format('d').' de '.$mesFinDesmontaje.' del '.$desmontaje[0]->format('Y');
}
break;
default: $textoDesmontaje = 'Mismo día al finalizar el evento desde las 17 horas hasta las 00:00 horas'; break;
}
if (!empty($textoDesmontaje)){
$textoDesmontaje = '<p class="MsoListParagraph"><!--[if !supportLists]--><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">-<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">DESMONTAJE: '.$textoDesmontaje.'. <b><o:p></o:p></b></span></span></font></p>';
}
$contract14 = '<p class="MsoNormal"><span class="Hyperlink1"><span lang="EN-US"><font face="Arial"> </font></span></span></p><p class="MsoListParagraph" style="margin-left:71.4pt;text-indent:-18.0pt;mso-list:l13 level1 lfo41"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size: 12pt;">·<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><b><span lang="ES-TRAD" style="font-size:12.0pt;mso-bidi-font-family:"Arial Unicode MS";mso-style-textoutline-type:none;mso-style-textoutline-outlinestyle-dpiwidth:0pt;mso-style-textoutline-outlinestyle-linecap:flat;mso-style-textoutline-outlinestyle-join:bevel;mso-style-textoutline-outlinestyle-pctmiterlimit:0%;mso-style-textoutline-outlinestyle-dash:solid;mso-style-textoutline-outlinestyle-align:center;mso-style-textoutline-outlinestyle-compound:simple">Carga y descarga:</span></b><span lang="ES-TRAD" style="font-size:12.0pt;mso-bidi-font-family:"Arial Unicode MS";mso-style-textoutline-type:none;mso-style-textoutline-outlinestyle-dpiwidth:0pt;mso-style-textoutline-outlinestyle-linecap:flat;mso-style-textoutline-outlinestyle-join:bevel;mso-style-textoutline-outlinestyle-pctmiterlimit:0%;mso-style-textoutline-outlinestyle-dash:solid;mso-style-textoutline-outlinestyle-align:center;mso-style-textoutline-outlinestyle-compound:simple"> los camiones y/o furgonetas tienen que venir de manera escalonada, cada 30 minutos. Está totalmente prohibido cargar o descargar con varios camiones/furgonetas a la vez en la calle Salamanca. Debemos ser totalmente estrictos con este tema pues no queremos generar ningún tipo de molestias a nuestros vecinos. <o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-left:71.4pt;text-indent:0cm"><span lang="ES-TRAD" style="font-size:12.0pt;mso-bidi-font-family:"Arial Unicode MS";mso-style-textoutline-type:none;mso-style-textoutline-outlinestyle-dpiwidth:0pt;mso-style-textoutline-outlinestyle-linecap:flat;mso-style-textoutline-outlinestyle-join:bevel;mso-style-textoutline-outlinestyle-pctmiterlimit:0%;mso-style-textoutline-outlinestyle-dash:solid;mso-style-textoutline-outlinestyle-align:center;mso-style-textoutline-outlinestyle-compound:simple"><font face="Arial"> </font></span></p><p class="MsoNormal"><font face="Arial"><span class="Hyperlink1"><b><u><span lang="EN-US" style="">EMPRESAS/PROVEEDORES AUTORIZADOS:<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--></span></u></b></span><span class="Hyperlink1"><b><u><span lang="EN-US" style=""><o:p></o:p></span></u></b></span></font></p><p class="MsoListParagraph" style="margin-left:19.75pt;text-indent:-19.75pt;mso-list:l11 level1 lfo12;tab-stops:41.05pt 41.1pt"><!--[if !supportLists]--><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt;mso-bidi-font-weight:bold">-<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span></span><!--[endif]--><span class="Hyperlink1"><u><span lang="ES-TRAD" style="font-size:12.0pt">AV EN EXCLUSIVA: Av Express (Salvador Soler) <o:p></o:p></span></u></span></font></p><p class="MsoListParagraph" style="margin-left:19.75pt;text-indent:-19.75pt;mso-list:l11 level1 lfo12;tab-stops:41.05pt 41.1pt"><!--[if !supportLists]--><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt;mso-bidi-font-weight:bold">-<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span></span><!--[endif]--><span class="Hyperlink1"><u><span lang="ES-TRAD" style="font-size:12.0pt">Catering en exclusiva: LaPizka Gourmet (Cristian Cenocito)<o:p></o:p></span></u></span></font></p><p class="MsoNormal"><b><span lang="EN-US" style=""><font face="Arial"> </font></span></b></p><p class="MsoNormal"><b><u><font face="Arial">AGENDA TENTATIVA:<o:p></o:p></font></u></b></p><br><br><br><br><br><br><p class="Cuerpo" style="margin-top:0cm;margin-right:8.9pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Ninguno"><b><span lang="DE" style="font-size:12.0pt">La disponibilidad máxima del espacio <span style="letter-spacing:-.15pt">cuyo </span>uso se cede es desde las ';
if (empty($mesInicioMontaje)){
switch ($dateStart->format('m')){
case '01': $mesInicioMontajeZ = 'enero'; break;
case '02': $mesInicioMontajeZ = 'febrero'; break;
case '03': $mesInicioMontajeZ = 'marzo'; break;
case '04': $mesInicioMontajeZ = 'abril'; break;
case '05': $mesInicioMontajeZ = 'mayo'; break;
case '06': $mesInicioMontajeZ = 'jumio'; break;
case '07': $mesInicioMontajeZ = 'julio'; break;
case '08': $mesInicioMontajeZ = 'agosto'; break;
case '09': $mesInicioMontajeZ = 'septiembre'; break;
case '10': $mesInicioMontajeZ = 'octubre'; break;
case '11': $mesInicioMontajeZ = 'noviembre'; break;
case '12': $mesInicioMontajeZ = 'diciembre'; break;
default: $mesInicioMontajeZ = ''; break;
}
$tiempoCedido = $dateStart->format('H:i').' horas del día '.$dateStart->format('d').' de '.$mesInicioMontajeZ.' del '.$dateStart->format('Y').' hasta las ';
} else {
$tiempoCedido = $dateStart->format('H:i').' horas del día '.$dateStart->format('d').' de '.$mesInicioMontaje.' del '.$dateStart->format('Y').' hasta las ';
}
if (empty($mesInicioDesmontaje)){
switch ($dateStart->format('m')){
case '01': $mesInicioDesmontajeZ = 'enero'; break;
case '02': $mesInicioDesmontajeZ = 'febrero'; break;
case '03': $mesInicioDesmontajeZ = 'marzo'; break;
case '04': $mesInicioDesmontajeZ = 'abril'; break;
case '05': $mesInicioDesmontajeZ = 'mayo'; break;
case '06': $mesInicioDesmontajeZ = 'jumio'; break;
case '07': $mesInicioDesmontajeZ = 'julio'; break;
case '08': $mesInicioDesmontajeZ = 'agosto'; break;
case '09': $mesInicioDesmontajeZ = 'septiembre'; break;
case '10': $mesInicioDesmontajeZ = 'octubre'; break;
case '11': $mesInicioDesmontajeZ = 'noviembre'; break;
case '12': $mesInicioDesmontajeZ = 'diciembre'; break;
default: $mesInicioDesmontajeZ = ''; break;
}
$tiempoCedido = $tiempoCedido . $dateEnd->format('H:i').' horas del día '.$dateEnd->format('d').' de '.$mesInicioDesmontajeZ.' del '.$dateEnd->format('Y');
} else {
$tiempoCedido = $tiempoCedido . $dateEnd->format('H:i').' horas del día '.$dateEnd->format('d').' de '.$mesInicioDesmontaje.' del '.$dateEnd->format('Y');
}
$contract15 = '</span></b></span><span class="Ninguno"><b><span lang="PT" style="font-size:12.0pt;mso-ansi-language:PT">. </span></b></span><span class="Ninguno"><span lang="DE" style="font-size:12.0pt">Este periodo incluye<span style="letter-spacing:-1.1pt"> </span><span style="letter-spacing:.1pt">las</span><span style="letter-spacing:-.95pt"> </span></span></span><span class="Ninguno"><span lang="PT" style="font-size:12.0pt;mso-ansi-language:PT">labores</span></span><span class="Ninguno"><span lang="PT" style="font-size:12.0pt;letter-spacing:-.5pt"> </span></span><span class="Ninguno"><span lang="DE" style="font-size:12.0pt">de<span style="letter-spacing:-.65pt"> </span>acondicionamiento<span style="letter-spacing:-.75pt"> </span></span></span><span class="Ninguno"><span lang="IT" style="font-size:12.0pt;mso-ansi-language:IT">del</span></span><span class="Ninguno"><span lang="IT" style="font-size:12.0pt;letter-spacing:-.4pt"> </span></span><span class="Ninguno"><span lang="DE" style="font-size:12.0pt">espacio<span style="letter-spacing:-.75pt"> </span></span></span><span class="Ninguno"><span lang="PT" style="font-size:12.0pt;mso-ansi-language:PT">cedido,</span></span><span class="Ninguno"><span lang="PT" style="font-size:12.0pt;letter-spacing:-.7pt"> </span></span><span class="Ninguno"><span lang="DE" style="font-size:12.0pt;letter-spacing:-.15pt">la</span></span><span class="Ninguno"><span lang="DE" style="font-size:12.0pt;letter-spacing:-.5pt"> </span></span><span class="Ninguno"><span lang="DE" style="font-size:12.0pt">celebración<span style="letter-spacing:-.75pt"> </span></span></span><span class="Ninguno"><span lang="IT" style="font-size:12.0pt;mso-ansi-language:IT">del</span></span><span class="Ninguno"><span lang="IT" style="font-size:12.0pt;letter-spacing:-.4pt"> </span></span><span class="Ninguno"><span lang="DE" style="font-size:12.0pt">propio<span style="letter-spacing:-.75pt"> </span>evento y <span style="letter-spacing:.1pt">las </span>labores de recogida, limpieza y adecuación al estado en que se le entregó al <span style="letter-spacing:-1.8pt"> </span><b>CLIENTE</b>.<o:p></o:p></span></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.6pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">El espacio cuyo derecho de uso temporal se cede no podrá ser utilizado para ninguna otra actividad distinta de las que se reflejan en la descripción del evento. Tampoco se autoriza <b>al CLIENTE</b> a la modificación de ninguno de los elementos, instalaciones o medios que se hubieran puesto a su disposición con motivo de esta cesión de uso.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.55pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Por <b>LA CEDENTE</b> se autoriza que <b>EL CLIENTE</b> pueda contratar otros servicios necesarios o accesorios </span></span><span class="Ninguno"><span lang="ES-TRAD">para </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el evento como Audiovisuales, catering, mobiliario,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">decoración, seguridad, etc…. Dichos servicios podrá contratarlos con </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">empresas aceptadas, reguladas y aseguradas como admisibles por Green Patio. Estas empresas han adquirido los mismos compromisos de comportamiento, uso de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">instalaciones y seguridad que <b>EL CLIENTE</b> asume con </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">firma </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">presente</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">documento. </span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:.05pt;margin-right:8.45pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Por <b>LA CEDENTE</b> no se adquiere ningún compromiso o responsabilidad de ningún tipo con</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">terceros</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">hubieran</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sido</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contratados</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD"><b>EL</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">CLIENTE</b></span></span><span class="Ninguno"><span lang="ES-TRAD"> para la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">prestación</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">servicios adicionales. A este respecto, <b>EL CLIENTE</b> mantendrá libre a <b>LA CEDENTE</b> de cualquier reclamación</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">exigencia</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cualquier</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tipo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cualquiera</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">estos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">terceros</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ajenos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">presente relación pudiese realizar a <b>GREEN PATIO</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">S.L.</b></span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:.05pt;margin-right:5.65pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">A estos efectos, <b>EL CLIENTE</b> mantendrá informada a <b>LA CEDENTE</b> de la existencia y alcance de los compromisos suscritos con terceros prestadores últimos de servicios contratados en la forma que se ha indicado con anterioridad.<o:p></o:p></font></span></span></p><p class="MsoBodyText" style="margin-top:.05pt;margin-right:5.65pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:.05pt;margin-right:5.65pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Por <b>LA CEDENTE</b> se han examinado las características </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">evento y asegura que </span></span><span class="Ninguno"><span lang="ES-TRAD">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacio cedido</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">es</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">apto</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">para</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">celebración</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">mismo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">las</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">condiciones</span></span><span class="Ninguno"><span lang="ES-TRAD"> que </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">determinan.</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Cualquier variación en </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">características principales o esenciales </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">mismo no está autorizada por <b>LA CEDENTE</b> ni podrá realizarse sin que conste </span></span><span class="Ninguno"><span lang="ES-TRAD">su </span></span><span class="Hyperlink1"><span lang="ES-TRAD">aceptación previa, expresa y por escrito. Especial</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">mención</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">requiere</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">información</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sobre</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">aforo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">máximo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">personas</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">le</span> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ha</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sido comunicado <b>AL CLIENTE</b> de forma expresa, por lo que deberá adoptar </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">medidas necesarias </span></span><span class="Ninguno"><span lang="ES-TRAD">para </span></span><span class="Hyperlink1"><span lang="ES-TRAD">garantizar que en ningún momento ni por ningún motivo dicho aforo máximo se supere. </span></span><span class="Ninguno"><span lang="ES-TRAD" style="color:#212121">A este respecto, de forma expresa se deja constancia de que, ante la regulación que por parte de cualesquiera autoridades municipales, de la Comunidad Autónoma, Estatales, sanitarias o policiales se dictase con antelación a la celebración del evento y en relación con la limitación y/u ordenación del aforo de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="color:#212121;letter-spacing:-.05pt">las</span></span><span class="Ninguno"><span lang="ES-TRAD" style="color:#212121"> instalaciones, tanto <b>LA CEDENTE</b> como <b>EL CLIENTE</b> adoptarán </span></span><span class="Ninguno"><span lang="ES-TRAD" style="color:#212121;letter-spacing:-.05pt">las </span></span><span class="Ninguno"><span lang="ES-TRAD" style="color:#212121">medidas necesarias para garantizar su estricto cumplimiento, adaptando las características del evento a</span></span><span class="Ninguno"><span lang="ES-TRAD" style="color:#212121;letter-spacing:-.05pt">las </span></span><span class="Ninguno"><span lang="ES-TRAD" style="color:#212121">mismas, </span></span><span class="Ninguno"><span lang="ES-TRAD" style="color:#212121;letter-spacing:-.05pt">sin </span></span><span class="Ninguno"><span lang="ES-TRAD" style="color:#212121">que en ningún caso pueda ser entendido como responsabilidad o incumplimiento de <b>LA CEDENTE</b> por falta de la disponibilidad prevista para el evento, ni como causa de resolución justificada.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.1pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.5pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">El espacio cedido, así como sus instalaciones y medios u otros elementos que hubieran sido incluidos en esta cesión detallados en el Anexo I, deberán ser devueltos en el mismo estado en que le fueron entregados <b>AL CLIENTE</b>. Especialmente, deberá ocuparse y responsabilizarse de la clasificación, retirada y depósito correcto y clasificado de cualquier residuo, envase o material empleado en el evento, en los contenedores que el Ayuntamiento haya habilitado en la zona.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.4pt"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.5pt"><font face="Arial"> </font></span></span></p><p class="Encabezamiento"><font face="Arial"><a name="_bookmark6"></a><!--[if !supportLists]--><span lang="DE">4.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Ninguno"><u><span lang="DE">POLITICA DE RESERVA Y CANCELACIÓN</span></u></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.7pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD"><b>EL</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">CLIENTE</b></span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">podrá</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">procederse</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cancelación</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">unilateral</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">los</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acuerdos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">suscritos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">con <b>LA CEDENTE</b>, siempre dentro de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">siguientes condiciones de antelación a la fecha de celebración del evento e indemnización a <b>LA CEDENTE</b> que se indican a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">continuación:</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="Encabezamiento" style="margin-top:0cm;margin-right:9.85pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify;text-indent:0cm"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Para la Formalización de cualquier reserva, el importe m</span><span lang="DE">í</span></span><span class="Hyperlink1"><span lang="ES-TRAD">nimo a recibir por <b>LA CEDENTE</b> ser</span></span><span class="Hyperlink1"><span lang="PT">á </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de un 40% del importe del Precio Total Fijado.</span></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-left:5.05pt"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Con una cancelación de más de 60 días de antelación: 40% del Importe del Precio Total fijado.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:8.55pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;mso-list:l24 level1 lfo15;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">a)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Con una antelación mínima de entre 30 y 60 días deberá abonar una indemnización de un 50 % del importe total </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">precio fijado </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">total </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt">del</span><span lang="ES-TRAD" style="letter-spacing:1.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">evento.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:8.5pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;mso-list:l24 level1 lfo15;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">b)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Con una antelación mínima de entre 20 y 29 días deberá abonar una indemnización de un 75 % del importe total </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">precio fijado </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">total </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt">del</span><span lang="ES-TRAD" style="letter-spacing:1.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">evento.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:8.5pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;mso-list:l24 level1 lfo15;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">c)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Con una antelación mínima de 20 días deberá abonar una indemnización de un</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:2.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">100 % del importe total del precio fijado del total del evento.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.95pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">En</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">supuesto</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">un</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">hecho</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">no</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">imputable</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">culpa</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">negligencia</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">candente,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">fuese objetivamente imposible por cualquier causa la celebración </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">evento contratado, <b>Green Patio S.L.</b> podrá cancelar el presente contrato siempre que preavise <b>Al CLIENTE</b> con una antelación</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">mínima</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">30</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">(treinta)</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">días</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">fecha prevista</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">celebración</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">evento</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">y</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">proceda a la devolución completa de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cantidades </span></span><span class="Ninguno"><span lang="ES-TRAD">que </span></span><span class="Hyperlink1"><span lang="ES-TRAD">hubiera recibido <b>del CLIENTE</b> en concepto de reserva o pagos anticipados</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:4.2pt;margin-right:8.5pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD"><b>EL CLIENTE</b>, en caso de confirmación oficial de una situación de emergencia sanitaria declarada por la Autoridad competente en la zona de ubicación del evento, podrá modificar la fecha de celebración de este, para lo que deberá comunicarlo a la cedente </span></span><span class="Ninguno"><span lang="ES-TRAD">al </span></span><span class="Hyperlink1"><span lang="ES-TRAD">menos con un mes de antelación</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">fecha</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">prevista</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">celebración</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contratada</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">y</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">dispondrá</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> <b>2 años </b></span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contar</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">desde la fecha de dicha comunicación para definir la nueva fecha del evento. La determinación de la nueva fecha se realizará de común acuerdo con la cedente y siempre en función de disponibilidad </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacio y de la misma. Transcurrido </span></span><span class="Ninguno"><span lang="ES-TRAD">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">plazo de un año </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">sin </span><span lang="ES-TRAD">que </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se hubiera alcanzado un acuerdo entre </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">partes para la determinación de la nueva fecha, se entenderá que </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cesionaria renuncia a </span></span><span class="Ninguno"><span lang="ES-TRAD">su </span></span><span class="Hyperlink1"><span lang="ES-TRAD">derecho, procediéndose en cuanto a compensaciones e indemnizaciones según lo dispuesto en este</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contrato.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.6pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Fuera de los casos previstos en los párrafos anteriores y salvo </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">exclusiones que legal y contractualmente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">determinen,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cualquier</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cancelación</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">unilateral</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">efectuada</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cualquiera</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">partes dará derecho a la perjudicada a solicitar las indemnizaciones que por Ley se determinen en cada</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">momento.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial"> </font></span></span></p>';
// 5. Normas de Seguridad
$contract16 = '<p class="Encabezamiento" style="margin-top:.05pt;mso-list:l22 level1 lfo17;tab-stops:34.1pt"><font face="Arial"><a name="_bookmark7"></a><!--[if !supportLists]--><span lang="DE">5.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Ninguno"><u><span lang="DE">NORMAS DE SEGURIDAD</span></u></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.0pt;margin-right:8.4pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">El edificio y </span></span><span class="Ninguno"><span lang="ES-TRAD">sus </span></span><span class="Hyperlink1"><span lang="ES-TRAD">instalaciones en el que se ubica el espacio cuyo uso se cede temporalmente, cuenta</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">con</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">todas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">las</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">medidas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">y</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sistemas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">seguridad</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">legalmente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">son</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">exigibles.</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Cualquier otro sistema de seguridad no obligatorio que hubiera sido instalado en el mismo cuenta igualmente con </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">autorizaciones administrativas necesarias y cumple con la normativa vigente en tal</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">materia.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.45pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">A este respecto, con anterioridad o posterioridad a </span></span><span class="Ninguno"><span lang="ES-TRAD">la firma </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del presente documento, </span></span><span class="Ninguno"><span lang="ES-TRAD"><b>EL<span style="letter-spacing:-.05pt"> </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">CLIENTE</b> ha examinado o examinará personalmente, ha sido informado o se informará y conocerá</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">detalle</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">todos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">los</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sistemas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">seguridad</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">edificio,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> zona </span></span><span class="Hyperlink1"><span lang="ES-TRAD">concreta</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cuyo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">uso se cede, así como de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">zonas comunes, de acceso al edificio, aseos y</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ascensores.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.75pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Con base en lo anterior, </span></span><span class="Ninguno"><span lang="ES-TRAD"><b>EL </span></span><span class="Hyperlink1"><span lang="ES-TRAD">CLIENTE</b> adquiere el compromiso expreso de observar, respetar y hacer cumplir todas </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">exigencias y medidas de seguridad de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que ha sido informado, asumiendo </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">responsabilidad de no emplear ningún elemento decorativo, publicitario,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">control</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acceso,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ni</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">realizar</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ninguna</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acción</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">u</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">omisión</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">pueda</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">producir</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">un riesgo o molestia para los asistentes a su evento o a los otros </span></span><span class="Ninguno"><span lang="ES-TRAD">que </span></span><span class="Hyperlink1"><span lang="ES-TRAD">pudieran celebrarse </span></span><span class="Ninguno"><span lang="ES-TRAD">al </span></span><span class="Hyperlink1"><span lang="ES-TRAD">mismo tiempo en el edificio, a las instalaciones o elementos de </span></span><span class="Ninguno"><span lang="ES-TRAD">la zona </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cedida o </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">propio edificio.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.65pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Especial atención deberá adoptar <b>EL CLIENTE</b> en asegurar que, durante el plazo de disponibilidad </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacio cedido, tanto por sus asistentes o empleados, </span></span><span class="Ninguno"><span lang="ES-TRAD">como </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por los terceros prestadores de servicios que hubiera contratado, se respeta de forma estricta cualquier </span></span><span class="Ninguno"><span lang="ES-TRAD">norma </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o regulación en materia de Prevención de Riesgos Laborales, Derechos de los</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">trabajadores,</span></span><span class="Ninguno"><span lang="ES-TRAD"></span></span><span class="Hyperlink1"><span lang="ES-TRAD">Derechos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Autor,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Protección</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Datos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">carácter</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">personal,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contratación, tributación, Seguridad Social, y cualquier otra que fuese de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">aplicación.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:9.05pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD"><b>EL CLIENTE</b> es consciente de la prohibición de realizar cualquier actividad molesta, insalubre o peligrosa en el espacio cuyo derecho de uso temporal se le cede, así como cualquier otra contraria a las leyes, especialmente las reguladoras de la Igualdad y Discriminación y asume la responsabilidad directa y en exclusiva de reparación de cualquier daño que durante el periodo de disponibilidad de dicha zona pudiera ocasionarse a terceros o al propio local por el mal uso de las instalaciones.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:4.2pt;margin-right:8.65pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">A fin de poder verificar el fiel cumplimiento de los compromisos asumidos expresamente por <b>EL CLIENTE</b>, por el mismo se autoriza a <b>LA CEDENTE</b> y al personal por ella encomendado para esta labor, a acceder al espacio cuyo derecho de uso temporal se cede durante cualquier momento del montaje, celebración o desmantelamiento. Si el acceso para dicha verificación se realizase durante la celebración del evento, <b>LA CEDENTE</b>, o las personas por ella encomendadas, deberán realizar tal labor de inspección con la máxima discreción y rapidez, sin molestar a los asistentes al evento ni interrumpir el acto que se estuviera llevando a cabo en ese momento.<o:p></o:p></font></span></span></p><p class="MsoBodyText" style="margin-top:.4pt"><font face="Arial"><a name="_bookmark8"></a><span class="Hyperlink1"><span lang="ES-TRAD"> </span></span></font></p>';
// 6. Coste, plazo y forma de pago
$data = $this->CalculosTotalesEditSimple($reserva->getId());
$contract17 = '<p class="Encabezamiento"><font face="Arial"><a name="_bookmark9"></a><!--[if !supportLists]--><span lang="DE">6.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Ninguno"><u><span lang="DE">COSTE, PLAZO Y FORMA DE PAGO DE LA CESION</span></u></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.1pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="Cuerpo" style="margin-top:5.0pt;margin-right:0cm;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt"><span class="Ninguno"><b><font face="Arial"><span lang="NL">De com</span><span lang="DE">ún acuerdo, las partes fijan el importe de la cesión temporal del derecho de uso en la suma de '.
$data['sumatoria_totales_global_neto'].
'€<o:p></o:p></span></font></b></span></p><p class="MsoBodyText" style="margin-top:.1pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.0pt;margin-right:0cm;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><b><u><span lang="ES-TRAD">A dicha cantidad le será de aplicación el IVA que en cada momento proceda.</span></u></b></span><b><u><span lang="ES-TRAD"><o:p></o:p></span></u></b></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="Encabezamiento" style="margin-top:0cm;margin-right:9.55pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify;text-indent:0cm"><font face="Arial"><span class="Ninguno"><span lang="DE" style="letter-spacing:-.05pt">Por </span></span><span class="Hyperlink1"><span lang="ES-TRAD"><b>LA CEDENTE</b> se emitir</span></span><span class="Hyperlink1"><span lang="PT">á </span></span><span class="Hyperlink1"><span lang="ES-TRAD">una factura conteniendo el importe </span></span><span class="Ninguno"><span lang="DE" style="letter-spacing:-.05pt">total </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del coste de la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">prestación</span><span lang="DE">,</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="DE">será</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">abonada</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="DE">30</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE">(TREINTA)</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE">días</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">antes</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="DE">de</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE">la</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">fecha</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="DE">de</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">celebraci</span><span lang="DE">ó</span></span><span class="Hyperlink1"><span lang="IT">n del</span></span><span class="Ninguno"><span lang="IT"> </span></span><span class="Hyperlink1"><span lang="IT">evento.</span></span><span lang="DE"><o:p></o:p></span></font></p><p class="Cuerpo" style="margin-top:4.2pt;margin-right:8.9pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Ninguno"><b><span lang="DE" style="font-size:12.0pt">Para<span style="letter-spacing:-.1pt"> </span><span style="letter-spacing:-.35pt">la</span><span style="letter-spacing:-.05pt"> </span>Formalización<span style="letter-spacing:-.35pt"> </span>de<span style="letter-spacing:-.4pt"> </span>cualquier<span style="letter-spacing:-.35pt"> </span>reserva,<span style="letter-spacing:-.4pt"></span>el<span style="letter-spacing:-.05pt"> </span>importe<span style="letter-spacing:-.3pt"> </span>a<span style="letter-spacing:-.15pt"> </span>recibir<span style="letter-spacing:-.7pt"> </span>por<span style="letter-spacing:-.3pt"> </span>LA<span style="letter-spacing:-.35pt"> </span>CEDENTE<span style="letter-spacing:-.15pt"></span> ser</span></b></span><span class="Ninguno"><b><span lang="PT" style="font-size:12.0pt;mso-ansi-language:PT">á </span></b></span><span class="Ninguno"><b><span lang="IT" style="font-size:12.0pt;mso-ansi-language:IT">de un 40 % del importe del Precio Total</span></b></span><span class="Ninguno"><b><span lang="IT" style="font-size:12.0pt;letter-spacing:-.3pt"> </span></b></span><span class="Ninguno"><b><span lang="DE" style="font-size:12.0pt">Fijado.<o:p></o:p></span></b></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.7pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Cualquier posible coste extra generado de común acuerdo y previo acuerdo con <b>LA CEDENTE</b>, será abonado a la misma a los 30 días de la presentación de la factura en la</span></span><span class="Ninguno"><span lang="ES-TRAD"> que </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se incluyan con el detalle correspondiente. En ningún caso dichos gastos extraordinarios no contemplados en este contrato podrán superar </span></span><span class="Ninguno"><span lang="ES-TRAD">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">20% (Veinte por ciento) del coste </span></span><span class="Ninguno"><span lang="ES-TRAD">total del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">precio de la cesión, salvo excepción aprobada expresamente entre </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las</span><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">partes.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:9.25pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Dichas cantidades serán abonadas mediante transferencia bancaria a la cuenta de la que es titular la empresa prestadora y que se identifica a continuación</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="Encabezamiento" style="margin-left:5.05pt;text-align:justify;text-indent:0cm"> <font face="Arial"><span class="Hyperlink1"><span lang="PT"><b>BANCO </span></span><span class="Ninguno"><span lang="DE" style="color:#1F2023">BBVA</b></span></span><span lang="DE"><o:p></o:p></span></font></p> <p class="Cuerpo" style="margin-top:0cm;margin-right:258.05pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt"><font face="Arial"><span class="Ninguno"><b><span lang="PT">IBAN ES </span></b></span><span class="Ninguno"><b><span lang="DE" style="color:#212121">0901824572430201604780 </span></b></span> <br><span class="Ninguno"><b><span lang="FR">SWIFT CODE: </span></b></span><span class="Ninguno"><b><span lang="DE" style="color:#212121">BBVAESMMXXX</span><span lang="DE"><o:p></o:p></span></b></span></font></p> <p class="MsoBodyText" style="margin-top:.35pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:12.5pt"><font face="Arial"> </font></span></b></span></p>';
// 8. Reserva
$contract18 = '<p class="MsoListParagraph" style="margin-left:34.1pt;text-indent:-29.05pt;mso-list:l22 level1 lfo18;tab-stops:34.1pt"><font face="Arial"><a name="_bookmark10"></a><!--[if !supportLists]--><span lang="ES-TRAD" style="font-size:12.0pt">8.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Ninguno"><u><span lang="ES-TRAD">RESERVA</span></u></span><b><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></b></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.0pt;margin-right:8.5pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">La reserva le otorga el derecho <b>AL CLIENTE</b> a disponer durante un plazo desde la constitución</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">misma,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">derecho</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">preferente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contratar,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">una</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">fecha</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">concreta,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cesión de un espacio determinado </span></span><span class="Ninguno"><span lang="ES-TRAD">para </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la celebración de </span></span><span class="Ninguno"><span lang="ES-TRAD">su </span></span><span class="Hyperlink1"><span lang="ES-TRAD">evento. La reserva de dicho derecho</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">no podrá efectuarse sobre más de una fecha concreta ni sobre un rango de fechas, pudiendo alcanzar únicamente a una fecha concreta y</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">fija.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.4pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">Si, </span></span><span class="Hyperlink1"><span lang="ES-TRAD">30 (treinta) días antes de </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">fecha reservada no se hubiera celebrado el contrato de cesión en firme por causa imputable </span></span><span class="Ninguno"><span lang="ES-TRAD"><b>AL </span></span><span class="Hyperlink1"><span lang="ES-TRAD">CLIENTE</b>, éste desistiera voluntariamente de su reserva o </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">condiciones en </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que pretenda contratarse no fuesen </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">mismas que </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que figuren en la constitución de la reserva, <b>LA CEDENTE</b> tendrá </span></span><span class="Ninguno"><span lang="ES-TRAD">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">derecho de </span></span><span class="Ninguno"><span lang="ES-TRAD">hacer </span></span><span class="Hyperlink1"><span lang="ES-TRAD">suyo un importe</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de hasta</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">100</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">%</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cantidad</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">recibida</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">como</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">reserva,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">todo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ello</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">concepto</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">indemnización por no disponibilidad de la citada</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">zona.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.9pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Una vez celebrado el contrato en firme de cesión temporal de derecho de uso de la </span></span><span class="Ninguno"><span lang="ES-TRAD">zona </span></span><span class="Hyperlink1"><span lang="ES-TRAD">reservada,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">dicha</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cantidad</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">abonada</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">como</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">reserva</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">será</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">descontada</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">pago</span></span><span class="Ninguno"><span lang="ES-TRAD"> total<span style="letter-spacing:-.05pt"> </span>del<span style="letter-spacing:-.05pt"> </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">precio</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de la cesión en la última factura que para </span></span><span class="Ninguno"><span lang="ES-TRAD">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cobro del citado precio se le</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">emita.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.35pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Para la constitución en firme de una reserva de espacio deberá notificarse por escrito a </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"><b>LA </span></span><span class="Hyperlink1"><span lang="ES-TRAD">CEDENTE</b> tanto la propuesta de reserva con detalle de fecha, duración, espacio y tipo de evento</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">como</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">resguardo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acreditativo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">haber</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">abonado</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">importe</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">previamente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">le</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">haya </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">sido informado. Sólo podrá considerarse una reserva en firme a favor de <b>EL </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">CLIENTE</b>, </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cuando éste reciba una confirmación formal y por escrito de <b>LA CEDENTE</b> en la que se incluirán los detalles del</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">evento.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="Encabezamiento" style="margin-top:0cm;margin-right:8.55pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify;text-indent:0cm"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD"><b>Con anterioridad a la firma del presente contrato, por <b>EL CLIENTE</b> se ha abonado a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="DE"><b>LA</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE">CEDENTE</b></span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE">una</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE">reserva</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE">por</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE">un</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE">importe</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE">de</span></span><span class="Ninguno"><span lang="DE">
'.($data['sumatoria_totales_global_neto']*0.4).'€</span></span>
<span class="Hyperlink1"><span lang="IT"> calculado</span></span><span class="Ninguno"><span lang="DE"> como un 40% del importe </span></span><span class="Hyperlink1"><span lang="ES-TRAD">total del precio de la cesi</span><span lang="DE">ó</span></span><span class="Hyperlink1"><span lang="ES-TRAD">n y que </span></span><span class="Ninguno"><span lang="DE">queda </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sometida a las condiciones especificadas en </span></span><span class="Ninguno"><span lang="DE">la </span></span><span class="Hyperlink1"><span lang="IT">presente</span></span><span class="Ninguno"><span lang="IT"> </span></span><span class="Hyperlink1"><span lang="DE">cláusula. </b></span></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-left:5.05pt;text-align:justify"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">A dicha cantidad le será de aplicación el IVA que en cada momento proceda.<o:p></o:p></font></span></span></p><p class="MsoBodyText" style="margin-left:5.05pt;text-align:justify"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-left:5.05pt;text-align:justify"><span class="Ninguno"><b><u><span lang="ES-TRAD"><font face="Arial">NOTIFICACIÓN DE COMPETENCIA/EXCLUSIVIDAD<o:p></o:p></font></span></u></b></span></p><p class="MsoBodyText" style="margin-top:.1pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.0pt;margin-right:8.5pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">La cesión temporal de uso que se contrata con la firma del presente contrato se realiza sin régimen alguno de exclusividad </span></span><span class="Ninguno"><span lang="ES-TRAD">para </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ninguna de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">partes, por lo que <b>GREEN PATIO S.L.</b> podrá</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ceder</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">resto</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacios</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">disponibles</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">edificio</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cualesquiera</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otras</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">empresas,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sean o no del mismo sector de actividad que <b>LA CESIONARIA</b>, y ello con independencia de lo acordado en el último párrafo de la presente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cláusula.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:.05pt;margin-right:8.55pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Salvo que <b>EL CLIENTE</b> hubiera adquirido el derecho de uso simultáneo de la totalidad de los espacios disponibles en el edificio, el </span></span><span class="Ninguno"><span lang="ES-TRAD">uso </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">zonas comunes, de acceso, aseos y el ascensor, será compartido por todos los usuarios de las distintas zonas cedidas, debiendo guardar</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">entre ellos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">debida</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">compostura</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">fin</span> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">evitar</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cualquier</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tipo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">molestia</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">al</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span><span lang="ES-TRAD">resto </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de eventos que pudieran estar celebrándose al mismo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tiempo.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.65pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">No obstante lo anterior, y salvaguardando siempre el estricto cumplimiento de las normas de la Libre Competencia, <b>LA CEDENTE</b> pondrá un especial interés en evitar, en la medida de lo posible, eventos cuyas características específicas pudieran ser fuente de molestias al resto de asistentes.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.4pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD"><b>LA CEDENTE</b> manifiesta que en la fecha de firma de este contrato no mantiene ningún otro</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acuerdo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">oral</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">escrito</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">con</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ningún</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tercero</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sobre</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacio</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">que</span> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">es</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">objeto</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">este</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contrato en </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">fechas y horas concertadas ni que pueda en algún modo limitar o ir en contra de su capacidad para cumplir con los términos de este</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Contrato.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:9.2pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Aunque</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">no</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">interfiera</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">libre</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">disposición</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacio</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cede</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD"><b>EL</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">CLIENTE</b>,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD"><b>LA CEDENTE</b> se adquiere el compromiso de no ofrecer a ningún competidor comercial de aquel ninguna información directa o indirectamente relacionada con la presente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cesión</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>';
// 9. Confidencialidad y publicidad
// 11. Derechos de imagen y propiedad intelectual
// 12. Prevencion de la corrupcion
// 13. Proteccion de datos personales
// 14. Responsabilidad
$contract19 = '<p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial"> </font></span></span></p><p class="Encabezamiento"><font face="Arial"><a name="_bookmark11"></a><!--[if !supportLists]--><span lang="DE">9.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Ninguno"><u><span lang="DE">C</span></u></span><span class="Ninguno"><u><span lang="EN-US">ONFIDENCIALIDAD Y</span><span lang="EN-US" style="letter-spacing:-.05pt"> </span></u></span><span class="Ninguno"><u><span lang="DA">PUBLICIDAD</span></u></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.05pt;margin-right:8.9pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD"><b>GREEN PATIO S.L.</b> mantendrá en estricto secreto, indefinidamente, incluso después de la expiración de este Contrato, todas las informaciones no públicas relativas a las actividades, organización y productos <b>del CLIENTE</b> a las que haya tenido acceso con ocasión de la celebración de este Contrato, así como la información relativa a cualesquiera otros datos técnicos o económicos <b>del CLIENTE</b>. Así mismo se compromete a hacer extensiva la obligación de confidencialidad contenida en la presente cláusula a sus colaboradores y personal empleado, de cuya actuación se responsabilizará solidariamente con los mismos.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.7pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">No obstante, lo anterior, </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">partes se reconocen mutua y recíprocamente el derecho a divulgar la existencia y los términos y condiciones de este Contrato en cualquier momento</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">y por cualquier motivo a la persona que </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">mismas determinen que tiene legitimidad </span></span><span class="Ninguno"><span lang="ES-TRAD">para </span></span><span class="Hyperlink1"><span lang="ES-TRAD">conocerlos,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">incluidos,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">entre</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otros,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Gobierno</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">España,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">así</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">como</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cualesquiera otros</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">entes y autoridades públicas municipales, nacionales y/o de la Comunidad Autónoma que sea competente.<o:p></o:p></span></span></font></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.7pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-right:9.0pt;text-align:justify"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="Encabezamiento" style="margin-top:4.2pt;mso-list:l22 level1 lfo19;tab-stops:34.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD">11.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span lang="ES-TRAD"><u>DERECHOS </u></span><span class="Ninguno"><u><span lang="DE"> DE IMAGEN Y PROPIEDAD INTELECTUAL</span></u></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.1pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.0pt;margin-right:8.5pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Tanto en el caso de que por <b>EL CLIENTE</b> o por un tercero contratado por el mismo, durante el plazo de disponibilidad del espacio cedido o con posterioridad al mismo, se captasen, difundiesen o publicasen imágenes en cualquier soporte audiovisual de productos, personas,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">logotipos,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">marcas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cualesquiera</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otros</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">elementos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">requiriesen</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">autorización</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por derechos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">imagen,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">propiedad</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">intelectual</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">copyright,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">será</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">responsabilidad</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">expresa</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">quien la hubiese tomado y, en cualquier caso <b>del CLIENTE</b>, contar con dicho</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">permiso.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:.05pt;margin-right:8.7pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">En cualquier caso, se autoriza <b>al CLIENTE</b> </span></span><span class="Ninguno"><span lang="ES-TRAD">para </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que, bien directamente, bien mediante un tercero</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a su encargo,</span></span><span class="Ninguno"><span lang="ES-TRAD"></span></span><span class="Hyperlink1"><span lang="ES-TRAD">tomen</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">imágenes</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cualquier</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">soporte</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacio</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cuyo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">uso</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">temporal</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se cede, no quedando incluidas en dicha autorización previa, ni los espacios comunes del edificio</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ni</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sus</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">accesos.</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD"><b>EL</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">CLIENTE</b></span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">adoptará</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">las</span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">medidas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">necesarias</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span><span lang="ES-TRAD">para<span style="letter-spacing:-.05pt"> </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">garantizar</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que </span></span><span class="Ninguno"><span lang="ES-TRAD">ni </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por sus empleados, ni por los asistentes a su evento ni por terceros contratados por él </span></span><span class="Ninguno"><span lang="ES-TRAD">para </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la prestación de algún servicio, se captan, difunden ni publican imágenes de terceros vinculados</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">con</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otros</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">eventos</span></span><span class="Ninguno"><span lang="ES-TRAD"> que </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">estuvieran</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">celebrando</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">forma</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">simultánea</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">edificio.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:9.1pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD"><b>EL CLIENTE</b> asume directamente cualquier responsabilidad que con tercero pudiese derivarse por el incumplimiento de lo dispuesto en la presente cláusula, y mantendrá libre y compensará totalmente a <b>LA CEDENTE</b> de cualquier reclamación que contra ella pudiera derivarse por la no observancia estricta de lo dispuesto en la presente disposición.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial"> </font></span></span></p><p class="Encabezamiento"><font face="Arial"><a name="_bookmark13"></a><!--[if !supportLists]--><span lang="DE">12.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Ninguno"><u><span lang="DE">PREVENCIÓN DE LA CORRUPCIÓN</span></u></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.05pt;margin-right:8.4pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">En reconocimiento de los principios consagrados en </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">normativas europeas y españolas sobre</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">prevención</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">corrupción,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">los</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">intervinientes</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">presente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contrato</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">comprometen a adoptar </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">medidas de control interno que sean necesarias para garantizar su no participación, ni del personal a su cargo, en </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">ningún </span></span><span class="Hyperlink1"><span lang="ES-TRAD">asunto que pudiera ser contrario a la normativa vigente en cada momento en materia de corrupción con funcionario público o entre</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">particulares.<o:p></o:p></span></span></font></p><p class="MsoBodyText" style="margin-top:5.05pt;margin-right:8.4pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial"> </font></span></span></p><p class="Encabezamiento"><font face="Arial"><a name="_bookmark14"></a><!--[if !supportLists]--><span lang="DE">13.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Ninguno"><u><span lang="DE">P</span></u></span><span class="Ninguno"><u><span lang="EN-US">ROTECCI</span><span lang="DE">ÓN DE DATOS PERSONALES</span></u></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.6pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Los datos personales de los firmantes del presente Contrato serán tratados por </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">partes intervinientes, con el </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">fin </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de gestionar y cumplir la relación establecida. Ambas partes se informan de </span></span><span class="Ninguno"><span lang="ES-TRAD">que </span></span><span class="Hyperlink1"><span lang="ES-TRAD">los </span></span><span class="Ninguno"><span lang="ES-TRAD">datos </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de proveedores y clientes que tratan podrán ser cedidos, en </span></span><span class="Ninguno"><span lang="ES-TRAD">su<span style="letter-spacing:-.05pt"> </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">caso,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Agencia</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Tributaria</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">y</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">demás</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">administraciones</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">públicas,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">los</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">efectos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">llevar</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cabo </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">declaraciones tributarias correspondientes y cumplir con </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">normativa</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">vigente.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.1pt"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:11.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.7pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">En este sentido, los firmantes pueden ejercitar sus derechos en materia de protección de datos ante el Delegado de Protección de Datos de cada una de ellas en las siguientes direcciones de correo electrónico:</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-left:5.05pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Para GREEN PATIO S.L.</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span lang="ES-TRAD"><span class="Hyperlink3">comercial@greenpatio.es</span><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.1pt"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:5.0pt;margin-right:8.75pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">En el caso de que cualquiera de las partes tuviera acceso a datos de carácter personal responsabilidad de la otra como consecuencia de la presente cesión que se contrata, lo dispuesto a continuación resultará de aplicación.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:4.7pt;margin-right:9.05pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">El tratamiento de datos de <b>LA CEDENTE</b> se limitará a las actuaciones que resulten necesarias para realizar la cesión que se contrata al </span></span><span class="Ninguno"><b><span lang="ES-TRAD">CLIENTE</span></b></span><span class="Hyperlink1"><span lang="ES-TRAD">, de conformidad con lo establecido en el presente Contrato.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.4pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">En concreto, </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span><span lang="ES-TRAD">partes </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se comprometen a realizar el tratamiento de los </span></span><span class="Ninguno"><span lang="ES-TRAD">datos </span></span><span class="Hyperlink1"><span lang="ES-TRAD">personales recibidos de la otra parte ajustándose a las instrucciones por escrito que, en cada momento, le</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">indique</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">aquella,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">inclusive</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">respecto</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">las </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">transferencias</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> datos<span style="letter-spacing:-.05pt"> </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">personales</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">un</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tercer</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">país. Asimismo, <b>LA CEDENTE</b> se compromete a mantener </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">confidencialidad respecto de los datos personales a los que acceda durante </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cesión que se contrata y a no realizar ningún otro</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tratamiento</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sobre</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">los</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">mismos,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ni</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">aplicar</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">utilizarlos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">con</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">una</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">finalidad</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">distinta</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> que </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se hace referencia en el presente</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Contrato.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.45pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Las</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">partes</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">comprometen</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">garantizar,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">teniendo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cuenta</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">estado</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">técnica,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">los</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">costes de aplicación, y la naturaleza, el alcance, el contexto y los fines del tratamiento, así como riesgos de probabilidad y gravedad variables para los derechos y libertades de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">personas físicas, aplicarán medidas técnicas y organizativas apropiadas para garantizar un nivel de seguridad adecuado </span></span><span class="Ninguno"><span lang="ES-TRAD">al </span></span><span class="Hyperlink1"><span lang="ES-TRAD">riesgo, que en su caso incluya, entre</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otros:</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.25pt"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:11.5pt"><font face="Arial"> </font></span></span></p><p class="MsoListParagraph" style="margin-left:58.6pt;text-indent:-35.6pt;mso-list:l2 level1 lfo21;tab-stops:58.65pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size: 12pt;">•<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">La seudonimización y el cifrado de datos personales;</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:.15pt;margin-right:9.1pt;margin-bottom:0cm;margin-left:58.6pt;margin-bottom:.0001pt;text-indent:-35.6pt;mso-list:l2 level1 lfo21;tab-stops:58.65pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size: 12pt;">•<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">La capacidad de garantizar la confidencialidad, integridad, disponibilidad y resiliencia permanentes de los sistemas y servicios de tratamiento;</span></span><span lang="ES-TRAD" style="font-size: 12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:.15pt;margin-right:8.75pt; margin-bottom:0cm;margin-left:58.6pt;margin-bottom:.0001pt;text-indent:-35.6pt; mso-list:l2 level1 lfo21;tab-stops:58.65pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size: 12pt;">•<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">La capacidad de restaurar la disponibilidad y el acceso a los datos personales </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.3pt">de </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">forma rápida en caso de incidente físico o</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">técnico;</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:.15pt;margin-right:9.15pt;margin-bottom:0cm;margin-left:58.6pt;margin-bottom:.0001pt;text-indent:-35.6pt; mso-list:l2 level1 lfo21;tab-stops:58.65pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size: 12pt;">•<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Un</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">proceso</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.1pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">verificación,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">evaluación</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.25pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">y</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.15pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">valoración</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.25pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">regulares</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">la</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">eficacia</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.55pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">las medidas técnicas y organizativas para garantizar </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.15pt">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">seguridad </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt">del</span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt"> tratamiento.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:.05pt;margin-right:8.45pt;margin-bottom: 0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Al</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">evaluar</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">adecuación</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">nivel</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">seguridad</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tendrán</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">particularmente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cuenta</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">los</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">riesgos que presente el tratamiento de datos, en particular como consecuencia de la destrucción, pérdida o alteración accidental o ilícita de </span></span><span class="Ninguno"><span lang="ES-TRAD">datos </span></span><span class="Hyperlink1"><span lang="ES-TRAD">personales transmitidos, conservados o tratados de otra forma, o </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">comunicación o acceso no autorizados a </span></span><span class="Ninguno"><span lang="ES-TRAD">dichos </span></span><span class="Hyperlink1"><span lang="ES-TRAD">datos.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.4pt;margin-bottom: 0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Las mencionadas medidas de seguridad deberán garantizar la seguridad de los </span></span><span class="Ninguno"><span lang="ES-TRAD">datos </span></span><span class="Hyperlink1"><span lang="ES-TRAD">personales a los que cada una de las partes tenga acceso, evitando </span></span><span class="Ninguno"><span lang="ES-TRAD">su </span></span><span class="Hyperlink1"><span lang="ES-TRAD">alteración, pérdida, tratamiento o acceso por tercero no autorizado, habida cuenta </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">estado de la tecnología, </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">naturaleza de los datos almacenados y los riesgos a que están expuestos, ya provengan de la acción humana o de medio físico o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">natural.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.45pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Cada una de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">partes deberá restringir la comunicación de los datos personales de </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otra a aquellos empleados que sean necesarios para el cumplimiento del objeto de este contrato, y se asegurará de que tales empleados, estén sujetos a obligaciones contractuales </span></span><span class="Ninguno"><span lang="ES-TRAD">que </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cumplan con un nivel de protección similar o </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">más </span></span><span class="Hyperlink1"><span lang="ES-TRAD">exhaustivo incluso al establecido en la presente Cláusula. Adicionalmente se comprometen a informar a </span></span><span class="Ninguno"><span lang="ES-TRAD">sus </span></span><span class="Hyperlink1"><span lang="ES-TRAD">empleados de la obligación de secreto</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">y</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">confidencialidad,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">así</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">como</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">las</span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">consecuencias</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">su</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">incumplimiento,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">respecto</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del tratamiento de datos de carácter personal. Igualmente garantizan la formación necesaria en materia de protección de datos personales de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">personas autorizadas para tratar </span></span><span class="Ninguno"><span lang="ES-TRAD">datos </span></span><span class="Hyperlink1"><span lang="ES-TRAD">personales responsabilidad de la otra</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">parte.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.1pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:9.1pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">En el momento en que el cualquiera de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las</span><span lang="ES-TRAD"> partes </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tenga conocimiento de una posible brecha de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">seguridad</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ocasione</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span><span lang="ES-TRAD">la<span style="letter-spacing:-.05pt"> </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">destrucción,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">pérdida</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">alteración</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">accidental</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ilícita</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">los datos personales</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otra</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> la</span></span><span class="Hyperlink1"><span lang="ES-TRAD">comunicación</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acceso</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span><span lang="ES-TRAD">dichos</span></span><span class="Hyperlink1"><span lang="ES-TRAD"> datos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">terceros ("</span></span><span class="Ninguno"><b><span lang="ES-TRAD">Brecha de Seguridad</span></b></span><span class="Hyperlink1"><span lang="ES-TRAD">"), la parte incursa en esa situación</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">deberá:</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:8.7pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;line-height:98%;mso-list:l26 level1 lfo24;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size: 12pt; line-height: 98%;">o<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">Notificárselo de manera inmediata a la otra</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.7pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">parte.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:8.7pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;line-height:98%;mso-list:l26 level1 lfo24;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size: 12pt; line-height: 98%;">o<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">Proporcionar</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">a</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.45pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">la</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.45pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">otra</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">parte,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.7pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">como</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.65pt"> </span><span lang="ES-TRAD" style="letter-spacing:.1pt"></span><span lang="ES-TRAD" style="letter-spacing:-.7pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">máximo en</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.7pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">un</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">plazo</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.7pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">48</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">horas,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">una</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.45pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">descripción detallada</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.55pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">la</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.35pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">Brecha</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">Seguridad,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">incluyendo</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.1pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">el</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.2pt"> </span><span lang="ES-TRAD" style="letter-spacing:-.15pt">tipo</span><span lang="ES-TRAD" style="letter-spacing:-.1pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">de datos</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.35pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">y</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">la</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.35pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">identificación</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.15pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">de cada uno de los interesados, así como informes periódicos en relación a los mismos y cualquier otra información que aquella pueda razonablemente requerir en relación a la Brecha de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.25pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">Seguridad</span></span><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:.15pt;margin-right:8.8pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;line-height:98%;mso-list:l26 level1 lfo24;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size: 12pt; line-height: 98%;">o<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">Tomar acciones inmediatas de investigación, cuyos gastos correrán a su exclusivo cargo, e identificar los efectos de la Brecha de Seguridad y, previo consentimiento escrito de la otra parte, tomar medidas a fin de prevenir y mitigar ulteriores efectos, y tomar cualesquiera otras acciones para remediar la Brecha de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.9pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">Seguridad</span></span><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:.15pt;margin-right:9.2pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;line-height:98%;mso-list:l26 level1 lfo24;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size: 12pt; line-height: 98%;">o<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">La parte afectada por la Brecha de Seguridad no reportará o publicará ningún comunicado, aviso o nota de prensa en relación a la misma, ni se lo comunicará directamente a los interesados, </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">sin </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">el previo consentimiento por escrito de la parte responsable de los datos personales que hayan sido objeto de acceso no</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.85pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%">permitido.</span></span><span lang="ES-TRAD" style="font-size:12.0pt;line-height:98%"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:.2pt;margin-right:8.6pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;line-height:97%;mso-list:l26 level1 lfo24;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size: 12pt; line-height: 97%;">o<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">Proporcionará,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">a</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.45pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">la</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.45pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">mayor</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.1pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">brevedad</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">posible,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.7pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">la</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">asistencia</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.45pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">necesaria</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">a</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.45pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">fin</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">investigar la</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">causa</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.35pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">o</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">causas</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span><span lang="ES-TRAD" style="letter-spacing:-.2pt">del</span><span lang="ES-TRAD" style="letter-spacing:-.25pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">suceso,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span><span lang="ES-TRAD" style="letter-spacing:-.1pt">así</span><span lang="ES-TRAD" style="letter-spacing:-.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">como</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-1.1pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">implementar</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">medidas</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">que</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.95pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">mitiguen</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">o</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">remedien la Brecha de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.35pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%">Seguridad</span></span><span lang="ES-TRAD" style="font-size:12.0pt;line-height:97%"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.25pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:9.35pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Ninguna de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span><span lang="ES-TRAD">partes </span></span><span class="Hyperlink1"><span lang="ES-TRAD">podrá transferir los datos personales fuera de la </span></span><span class="Ninguno"><span lang="ES-TRAD">Unión </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Europea </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">sin </span><span lang="ES-TRAD">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">previo consentimiento escrito de </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otra.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.5pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Una vez finalizado este contrato, </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span><span lang="ES-TRAD">partes </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se comprometen a devolver aquella información que hubiera recibido con motivo de la celebración </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">mismo y que contenga datos de carácter personal que </span></span><span class="Ninguno"><span lang="ES-TRAD">haya </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sido transmitida por la</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otra.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.5pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">En caso de existir obligación legal por </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que el poseedor de los datos deba conservar determinados</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ellos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">durante</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">un</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">periodo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tiempo,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">éstos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">deberán</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">permanecer</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">bloqueados, no</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">pudiendo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ser</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">utilizados</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">con</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otras</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">finalidades,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">conservándose</span></span><span class="Ninguno"><span lang="ES-TRAD"></span></span><span class="Hyperlink1"><span lang="ES-TRAD">únicamente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">disposición</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Administraciones Públicas, Jueces y Tribunales, para la atención de las posibles responsabilidades nacidas del tratamiento, durante el plazo de prescripción de éstas, transcurrido el cual deberá procederse a la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cancelación.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.5pt"><font face="Arial"> </font></span></span></p><p class="Encabezamiento"><font face="Arial"><a name="_bookmark15"></a><!--[if !supportLists]--><span lang="DE">14.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Ninguno"><u><span lang="DE">R</span></u></span><span class="Ninguno"><u><span lang="EN-US">ESPONSABILIDAD</span></u></span><span lang="DE"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.05pt;margin-right:8.45pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Será responsabilidad de <b>LA CEDENTE</b>, en general, la cesión </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">uso pacífico </span></span><span class="Ninguno"><span lang="ES-TRAD">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacio objeto</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de este contrato,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">todo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ello</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">dentro</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">un</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">nivel</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">calidad y</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">profesionalidad</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acorde</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">lo contratado y, en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">especial:</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:8.65pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;mso-list:l23 level1 lfo27;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">a)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Asegurarse y garantizar que </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.25pt">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">espacio cedido mantiene el </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.15pt">nivel </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">de calidad y profesionalidad exigidos por <b>EL CLIENTE</b>, e incorpora todas </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">medidas de seguridad y confidencialidad que se le exigen por</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-1.25pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">éste.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:.05pt;margin-right:9.05pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;mso-list:l23 level1 lfo27;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">b)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Facilitar </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.25pt">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">libre acceso de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">personas que participarán en </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.25pt">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">evento <b>del CLIENTE</b> al espacio cuyo </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.1pt">uso </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">se cede, todo ello en </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">condiciones de comodidad y seguridad habituales en cesiones como </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.15pt">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">que se</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.15pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">contrata.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:8.5pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;mso-list:l23 level1 lfo27;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">c)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Implementar</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.55pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">las</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">medidas</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">seguridad</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.55pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">legalmente</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">exigibles</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.35pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">en</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">el</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">espacio</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">que</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">se</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">cede, así como en </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.25pt">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">edificio en el que se ubica, incorporando otras que especialmente hubiera</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.55pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">acordado</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.75pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">con</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.75pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt"><b>EL</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.45pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">CLIENTE</b>,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.75pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">tanto</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.8pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">sobre</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.35pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">las</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.55pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">instalaciones</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">como</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.75pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">en</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.8pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">el</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">entorno del</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">local,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">priorizando</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">en</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.25pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">cualquier</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.45pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">caso</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">la</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">seguridad</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">los</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">asistentes</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">al</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">evento</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">y</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:1.0pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">de</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:4.2pt;margin-right:0cm;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">los prestadores de otros servicios.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:9.15pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;mso-list:l23 level1 lfo28;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">d)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Mantener una Póliza de Responsabilidad Civil con una Compañía de reconocido prestigio que cubra cualquier daño que por </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">instalaciones del espacio cuyo uso se cede, sus instalaciones o </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span><span lang="ES-TRAD" style="letter-spacing:-.2pt">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">edificio en el </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.1pt">que </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">e ubica, se hubiera podido causar a </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">personas asistentes </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt">al </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">evento del cliente, invitados u otros proveedores de servicios.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-left:5.05pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Será responsabilidad <b>del CLIENTE</b>:</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:9.65pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;mso-list:l27 level1 lfo30;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">a)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Facilitar</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.55pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">cuanta</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">información</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">sea</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">necesaria</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">sobre</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.5pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">el</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">evento</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.15pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">a</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.35pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">celebrar,</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">asegurando</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">que dispone de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">autorizaciones previas que legal o contractualmente fueran</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-1.55pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">exigibles.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:.05pt;margin-right:8.45pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;mso-list:l27 level1 lfo30;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">b)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Mantener </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">condiciones esenciales del evento sobre </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span><span lang="ES-TRAD" style="letter-spacing:-.1pt">que </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">ha sido contratado, asegurando que sobre </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">mismas no se produce ninguna variación o</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-1.75pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">modificación.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:9.3pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;mso-list:l27 level1 lfo30;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">c)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Abonar en tiempo y forma </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">facturas que se le presenten por <b>LA CEDENTE</b> reuniendo </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">características que se han pactado en este</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-1.1pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">contrato.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:9.3pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;mso-list:l27 level1 lfo30;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">d)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Abonar el importe que se hubiera fijado en concepto de</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.4pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">fianza.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:9.1pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;mso-list:l27 level1 lfo30;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">e)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Respetar y hacer respetar por los asistentes a </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt">su</span><span lang="ES-TRAD" style="letter-spacing:2.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">evento como por terceros prestadores de otros servicios, </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:.1pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">normas de seguridad </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt">del</span><span lang="ES-TRAD" style="letter-spacing:2.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">edificio y de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.1pt">sus </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">instalaciones.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:.05pt;margin-right:8.7pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;mso-list:l27 level1 lfo30;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">f)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Mantener el control sobre cualesquiera otros prestadores de servicio que pudieran participar en el evento a fin de asegurar </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.1pt">que </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">los mismos cumplen estrictamente con estas obligaciones sobre el uso del espacio que se</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.3pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">cede.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:0cm;margin-right:8.55pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;mso-list:l27 level1 lfo30;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">g)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Desalojar y devolver el espacio cuyo </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.1pt">uso </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">se le cede en el mismo estado en que se le entregó, específicamente en limpieza, orden e</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.65pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">instalaciones.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoListParagraph" style="margin-top:.05pt;margin-right:8.85pt;margin-bottom:0cm;margin-left:41.05pt;margin-bottom:.0001pt;text-align:justify;mso-list:l27 level1 lfo30;tab-stops:41.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt">h)<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Mantener una Póliza de Responsabilidad Civil con una Compañía de reconocido prestigio </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.1pt">que </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">cubra cualquier daño que por las personas asistentes al evento del cliente, invitados u otros proveedores de servicios, se pudiera haber causado </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt">al</span><span lang="ES-TRAD" style="letter-spacing:2.6pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">espacio mismo o sus instalaciones, a los elementos cedidos, a las zonas comunes </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt">del </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">edificio y/o sus</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.2pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">accesos.</span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:11.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.35pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD"><b>EL</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">CLIENTE</b></span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">será</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">responsable</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">frente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a <b>LA</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">CEDENTE</b></span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">forma exclusiva</span></span><span class="Ninguno"><span lang="ES-TRAD"> del<span style="letter-spacing:-.05pt"> </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">correcto</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">uso </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">del espacio que se cede y de sus relaciones con otros proveedores de cualesquiera otros servicios que pudiera contratar en directo, y mantendrá </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">en </span></span><span class="Hyperlink1"><span lang="ES-TRAD">todo momento libre a ésta de cualquier reclamación de terceros, derivada de </span></span><span class="Ninguno"><span lang="ES-TRAD">su </span></span><span class="Hyperlink1"><span lang="ES-TRAD">actuación negligente o </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">culpable </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en el uso del espacio objeto de este contrato o de sus relaciones con otros</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">proveedores.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:9.0pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD"><b>LA CEDENTE</b> no se hace responsable de la pérdida, menoscabo o deterioro de cualquier objeto ni prenda personal, herramienta, información, bienes personales, ficheros, etc… que se hubiera producido durante el plazo de disponibilidad del espacio.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.85pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Las partes serán consideradas, en todo momento, contratantes independientes, sin autorización ni autoridad alguna para representar a la otra, en calidad de agente o por cualquier</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otro</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">título,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">actuar</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">nombre</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">y/o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cuenta</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> la<span style="letter-spacing:-.05pt"> </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">otra en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ningún</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acto.</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Dicha presunción</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">es</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">extensiva</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">terceros</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contratados</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">subcontratados</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">éstos</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tengan</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">alguna relación con <b>EL CLIENTE</b> con motivo de la celebración del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">evento.<o:p></o:p></span></span></font></p><p class="MsoBodyText" style="margin-right:8.85pt;text-align:justify"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.85pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><span lang="ES-TRAD"><font face="Arial"> </font></span></p>';
// 15. Comunicaciones
$contract20 = '<p class="Encabezamiento" style="margin-top:4.2pt;mso-list:l22 level1 lfo32;tab-stops:34.1pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD">15.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span lang="ES-TRAD"></span><span class="Ninguno"><u><span lang="DE">COMUNICACIONES</span></u></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.1pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.0pt;margin-right:6.1pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Para </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">comunicaciones referentes a este contrato, ambas partes acuerdan que dichas comunicaciones</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">serán</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">consideradas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">válidas</span></span><span class="Ninguno"><span lang="ES-TRAD"> si</span></span><span class="Hyperlink1"><span lang="ES-TRAD"> están</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">realizadas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">las</span> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">siguientes</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">direcciones</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de correo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">electrónico:</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.1pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoListParagraph" style="margin-left:12.55pt;text-indent:-7.55pt;mso-list:l25 level1 lfo34;tab-stops:12.6pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD" style="font-size:12.0pt;mso-bidi-font-weight:bold">•<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Ninguno"><b><span lang="ES-TRAD">Para EL CLIENTE, en la siguiente dirección: </span></b></span><span lang="ES-TRAD">'
.$representanteCorreo.
'</span><span lang="ES-TRAD" style="font-size: 12pt;"><o:p></o:p></span></font></p><p class="Encabezamiento" style="margin-left:12.55pt;text-indent:-7.55pt;mso-list:l25 level1 lfo34;tab-stops:12.6pt"><!--[if !supportLists]--><font face="Arial"><span lang="ES-TRAD">•<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><b><span class="Hyperlink1"><span lang="ES-TRAD">Para LA CEDENTE, en la siguiente direcci</span><span lang="DE">ó</span></span><span class="Hyperlink1"><span lang="FR">n:</span></span></b><span class="Ninguno"><span lang="FR"> </span></span><span lang="DE"><span class="Hyperlink4"><span lang="EN-US">comercial@greenpatio.es</span></span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>';
// 16. Cesión
// 17. Nulidad Parcial
// 18. Fuerza Mayor
// 19. Acuerdo Completo
$contract21 = '<p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:.4pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:11.0pt"><font face="Arial"> </font></span></b></span></p><p class="MsoListParagraph" style="margin-top:5.0pt;margin-right:0cm;margin-bottom:0cm;margin-left:34.1pt;margin-bottom:.0001pt;text-indent:-29.05pt;mso-list:l22 level1 lfo35;tab-stops:34.1pt"><font face="Arial"><a name="_bookmark17"></a><!--[if !supportLists]--><span lang="ES-TRAD" style="font-size:12.0pt">16.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-weight: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink4"><span lang="ES-TRAD" style="font-size:12.0pt"><u>CESIÓN</u></span></span><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></font></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.05pt;margin-right:9.35pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Los derechos y obligaciones derivados del presente contrato no podrán ser cedidos ni transferidos por <b>EL CLIENTE</b> sin el previo consentimiento de <b>LA CEDENTE</b>.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.9pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">No obstante, <b>EL CLIENTE</b> </span></span><span class="Ninguno"><span lang="ES-TRAD">sí </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tendrá </span></span><span class="Ninguno"><span lang="ES-TRAD">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">derecho de cesión </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">sin </span></span><span class="Hyperlink1"><span lang="ES-TRAD">necesidad de consentimiento <b>del PRESTADOR</b> cuando la cesión se produzca a favor de una sociedad de su Grupo empresarial.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial"> </font></span></span></p><p class="Encabezamiento"><font face="Arial"><a name="_bookmark18"></a><!--[if !supportLists]--><span lang="DE">17.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink4"><u><span lang="DE">NULIDAD</span></span><span class="Ninguno"><span lang="DE" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink4"><span lang="DE">PARCIAL</span></span></u><span lang="DE"><o:p></o:p></span></font></p>
<p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.5pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">La</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">nulidad</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">alguna</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">algunas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">las</span> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cláusulas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">presente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contrato,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">no</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">conllevará</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ningún caso</span></span><span class="Ninguno"><span lang="ES-TRAD"> la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">nulidad</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">totalidad</span></span><span class="Ninguno"><span lang="ES-TRAD"> del </span></span><span class="Hyperlink1"><span lang="ES-TRAD">mismo,</span></span><span class="Ninguno"><span lang="ES-TRAD"> que </span></span><span class="Hyperlink1"><span lang="ES-TRAD">permanecerá</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">válido</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">y</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">obligatorio</span></span><span class="Ninguno"><span lang="ES-TRAD"> para <span style="letter-spacing:-.05pt">las</span> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">partes.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:5.85pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">En</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">caso</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">alguna</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cláusula</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">particular</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">parte</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> este </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acuerdo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">fuera</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">declarada</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">nula o inválida, no afectará a </span></span><span class="Ninguno"><span lang="ES-TRAD">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">resto de disposiciones o </span></span><span class="Ninguno"><span lang="ES-TRAD">partes </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del mismo; y este deberá</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">permanecer en vigor y deberá interpretarse en todos los aspectos </span></span><span class="Ninguno"><span lang="ES-TRAD">como</span></span><span class="Hyperlink1"><span lang="ES-TRAD">si ninguna no hubiera cláusula nula o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">inválida.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial"> </font></span></span></p>
<p class="Encabezamiento"><font face="Arial"><a name="_bookmark19"></a><!--[if !supportLists]--><span lang="DE">18.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><u><span class="Hyperlink4"><span lang="DE">FUERZA</span></span><span class="Ninguno"><span lang="DE" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink4"><span lang="DE">MAYOR</span></span></u><span lang="DE"><o:p></o:p></span></font></p>
<p class="MsoBodyText" style="margin-top:.1pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.0pt;margin-right:8.7pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Ninguna de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">dos partes será considerada responsable del retraso o falta de cumplimiento de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">sus obligaciones</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contractuales,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">tanto</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">dicho</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">retraso</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">incumplimiento</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">produjese como consecuencia directa de un supuesto de Fuerza</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Mayor.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.7pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">De</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acuerdo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">con</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">lo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">establecido</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">en</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">artículo</span></span><span class="Ninguno"><span lang="ES-TRAD"> 1.105 </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Código</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Civil,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">serán</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">consideradas</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">como supuesto de Fuerza Mayor, todos aquellos sucesos o circunstancias </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">fuera </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de control de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">partes, que, siendo imprevisibles o inevitables, afecten de forma directa a </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ejecución del Contrato haciendo imposible o extremadamente gravoso para cualquiera de las Partes </span></span><span class="Ninguno"><span lang="ES-TRAD">el </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cumplimiento de sus obligaciones contractuales.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.8pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">La</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">parte</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contratante</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">que</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">viese</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">afectada</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Fuerza</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Mayor</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">deberá</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">ponerlo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">inmediatamente en conocimiento de la otra, indicando el comienzo y probable término de duración de la misma, explicando su origen para paliar los efectos de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">aquélla.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:9.15pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">El cumplimiento de las obligaciones afectadas por causa de Fuerza Mayor se suspenderá durante el período de duración de dicha causa.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText" style="margin-top:4.2pt;margin-right:5.7pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Si, finalizada la causa aún fuese posible el cumplimiento de las obligaciones por la parte que se vio afectada por la Fuerza Mayor, ésta deberá cumplirla. En caso de que la situación de Fuerza Mayor se prolongase por un plazo de treinta días desde la fecha de la declaración formal según la presente cláusula, ambas partes podrán resolver el presente Contrato liquidándose sus obligaciones de conformidad a la legislación vigente.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial"> </font></span></span></p><p class="Encabezamiento"><font face="Arial"><a name="_bookmark20"></a><!--[if !supportLists]--><span lang="DE">19.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><u><span class="Hyperlink4"><span lang="DE">ACUERDO</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink4"><span lang="DE">COMPLETO</span></span></u><span lang="DE"><o:p></o:p></span></font></p>
<p class="MsoBodyText" style="margin-top:.1pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:5.0pt;margin-right:9.25pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Este acuerdo y sus Anexos, representarán el acuerdo completo entre </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">partes en relación con</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">su</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">objeto</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">y</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">prevalecerá</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">frente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cualquier</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otro</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">documento,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acuerdo,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">correspondencia,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de cualquier </span></span><span class="Ninguno"><span lang="ES-TRAD">tipo </span></span><span class="Hyperlink1"><span lang="ES-TRAD">entre </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Partes, ya sea anterior o incluso</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">posterior.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial"> </font></span></span></p><p class="Encabezamiento"><font face="Arial"><a name="_bookmark21"></a><!--[if !supportLists]--><span lang="DE">20.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><span class="Hyperlink4"><span lang="DE"><u>MODIFICACIÓN</u></span></span><span lang="DE"><o:p></o:p></span></font></p>
<p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.8pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">Salvo en lo expresamente dispuesto en el Contrato, éste únicamente podrá ser modificado por escrito por medio de representantes debidamente autorizados de las partes.<o:p></o:p></font></span></span></p>
<p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial"> </font></span></span></p><p class="Encabezamiento"><font face="Arial"><a name="_bookmark22"></a><!--[if !supportLists]--><span lang="DE">21.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span><!--[endif]--><u><span class="Hyperlink4"><span lang="DE">LEGISLACIÓN Y</span></span><span class="Ninguno"><u><span lang="DE"> </span></u></span><span class="Hyperlink4"><span lang="DE">JURISDICCIÓN</span></span></u><span lang="DE"><o:p></o:p></span></font></p>
<p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.5pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">El presente contrato se regirá e interpretará de conformidad con la Legislación Española. Cualquier conflicto que pueda surgir entre las partes </span></span><span class="Ninguno"><span lang="ES-TRAD">que </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se derive de la interpretación, ejecución</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">o</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">validez</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">del</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">presente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">contrato,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">someterá,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">con</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">renuncia expresa</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cualquier</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">otro fuero que pudiera corresponder, a los Juzgados y Tribunales de la ciudad de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Madrid.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:9.6pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">Así queda convenido, y para que conste, ambas partes firman el presente contrato por duplicado ejemplar en el lugar y fecha al principio señaladas.<o:p></o:p></font></span></span></p>
<p class="MsoBodyText" style="margin-top:.3pt"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.5pt"><font face="Arial"> </font></span></span></p><p class="Encabezamiento" style="margin-top:.05pt;mso-list:l22 level1 lfo38;tab-stops:34.1pt"><!--[if !supportLists]--><font face="Arial"><span class="Hyperlink4"><span lang="DE">23.<span style="font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 7pt; line-height: normal;"> </span></span></span><!--[endif]--><u><span class="Hyperlink4"><span lang="DE">NORMAS</span></span><span class="Ninguno"><u><span lang="DE"> </span></u></span><span class="Hyperlink4"><span lang="DE">HIGI</span></span><span class="Hyperlink4"><span lang="FR">É</span><span lang="DE">NICO-SANITARIAS</span></span><span class="Hyperlink4"><span lang="DE"><o:p></o:p></span></u></span></font></p><p class="Encabezamiento" style="margin-top:.05pt;text-indent:0cm;tab-stops:34.1pt"><span lang="DE"><font face="Arial"> </font></span></p>
<p class="MsoBodyText" style="margin-top:4.2pt;margin-right:8.85pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Con motivo de la crisis sanitaria denominada COVID-19, las distintas Administraciones locales, Ayuntamiento, Comunidad de Madrid y Ministerio de Sanidad, entre otros, han dictado y mantienen actualizada diversa normativa reguladora de las medidas mínimas obligatorias de obligada observancia en reuniones y espacios públicos y privados.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:9.05pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">parte</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Green</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Patio</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">S.L.</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">garantiza</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD"><b>EL</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">CLIENTE</b> que,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">el</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">espacio</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">y</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">las</span> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">instalaciones que se ceden para el evento contratado, han sido desinfectadas previamente </span></span><span class="Ninguno"><span lang="ES-TRAD">al </span></span><span class="Hyperlink1"><span lang="ES-TRAD">acceso a las mismas por </span></span><span class="Ninguno"><span lang="ES-TRAD"><b>EL </span></span><span class="Hyperlink1"><span lang="ES-TRAD">CLIENTE</b> y </span></span><span class="Ninguno"><span lang="ES-TRAD">su </span></span><span class="Hyperlink1"><span lang="ES-TRAD">personal y que cumplen fiel y estrictamente con dicha normativa vigente en </span></span><span class="Ninguno"><span lang="ES-TRAD">cada </span></span><span class="Hyperlink1"><span lang="ES-TRAD">momento, actualizándose y adaptándose a </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">exigencias </span></span><span class="Ninguno"><span lang="ES-TRAD">que </span></span><span class="Hyperlink1"><span lang="ES-TRAD">dichas autoridades pudieran exigir.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.7pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Así</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">mismo,</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">por</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">parte</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Green</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Patio</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">S.L.</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">proveerá</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">en</span> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">número</span></span><span class="Ninguno"><span lang="ES-TRAD"> <span style="letter-spacing:-.05pt">suficiente</span> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">los</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">elementos exigidos por esa normativa, tales como mascarillas personales, </span></span><span class="Ninguno"><span lang="ES-TRAD">gel </span></span><span class="Hyperlink1"><span lang="ES-TRAD">hidroalcohólico, guantes, papel higiénico para manos y cualquier otro que fuese considerado obligatorio por las referidas</span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Autoridades.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial"> </font></span></p><p class="MsoBodyText" style="margin-top:0cm;margin-right:8.5pt;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">Sobre</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">la</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">base</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">lo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">anterior,</span></span><span class="Ninguno"><span lang="ES-TRAD"> el<span style="letter-spacing:-.05pt"> </span></span></span><span class="Hyperlink1"><span lang="ES-TRAD">cliente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">se</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">responsabilizará directamente</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">y</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">a</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">su</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">exclusivo</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cargo de que, durante la permanencia en las instalaciones cedidas por </span></span><span class="Ninguno"><span lang="ES-TRAD">la </span></span><span class="Hyperlink1"><span lang="ES-TRAD">Prestadora, cualquier persona que asista al evento, bien sea invitado o un tercero prestador de cualquier servicio, haga un uso responsable de los elementos higiénico-sanitarios aportados a </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">fin </span></span><span class="Hyperlink1"><span lang="ES-TRAD">de garantizar en todo momento el cumplimiento estricto de </span></span><span class="Ninguno"><span lang="ES-TRAD" style="letter-spacing:-.05pt">las </span></span><span class="Hyperlink1"><span lang="ES-TRAD">medidas de distanciamiento inter- personales, de desinfección de elementos de uso común y, en definitiva, las condiciones de higiene de obligado</span></span><span class="Ninguno"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD">cumplimiento.</span></span><span lang="ES-TRAD"><o:p></o:p></span></font></p>
<p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p>
<p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p>
<p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial"> </font></span></span></p>
<p class="Encabezamiento" style="margin-top:10.25pt;margin-right:0cm;margin-bottom:0cm;margin-left:5.05pt;margin-bottom:.0001pt;text-align:justify;text-indent:0cm;tab-stops:262.25pt"><font face="Arial"><b><span class="Hyperlink1"><span lang="DE"> EL</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE">CLIENTE GREEN PATIO S.L.</span></span><span class="Ninguno"><span lang="DE"></span></span><span class="Hyperlink1"><span lang="DE"></span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE"></span></span><span lang="DE"></b><o:p></o:p></span></font></p>
<p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt"><font face="Arial"> </font></span></b></span></p><p class="MsoBodyText" style="margin-top:.05pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:9.5pt"><font face="Arial"> </font></span></b></span></p>
<p class="MsoBodyText" style="margin-left:5.05pt;line-height:67.75pt;mso-line-height-rule:
exactly;tab-stops:154.8pt 282.8pt"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD"> D.</span></span><u><span class="Hyperlink4"><span lang="ES-TRAD"> </span></span><span class="Hyperlink1"><span lang="ES-TRAD"> </span></span></u></font></p>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
<br><br><br><br><br><br><br><br><br><br>
';
// Normas de uso
$contract22 = '
<p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><font face="Arial"><a name="_bookmark23"></a><span lang="EN-US" style="font-size: 10pt;"> </span></font></p><p class="MsoNormal" align="center" style="margin-bottom: 7.5pt; text-align: center; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span lang="EN-US" style="font-size: 10pt;"><font face="Arial"> </font></span></p><p class="MsoNormal" align="center" style="margin-bottom: 7.5pt; text-align: center; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><b><span lang="EN-US" style="font-size: 10pt;"><font face="Arial">NORMAS DE USO<o:p></o:p></font></span></b></p><p class="MsoNormal" align="center" style="margin-bottom: 7.5pt; text-align: center; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span lang="EN-US" style="font-size: 9pt;"><font face="Arial"> </font></span></p>
<p class="MsoNormal" align="center" style="margin-bottom: 7.5pt; text-align: center; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span lang="EN-US" style="font-size: 9pt;"><font face="Arial">A/A Responsable Evento / Proveedor Servicios;<o:p></o:p></font></span></p>
<p class="MsoNormal" align="center" style="margin-bottom: 7.5pt; text-align: center; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span lang="EN-US" style="font-size: 9pt;"><font face="Arial">Estimado, con el fin de mejorar el servicio que prestan en nuestra casa, y para mantener las instalaciones de GREEN PATIO, agradeceríamos que tuvieran en consideración las normas que se detallan a continuación, para que con la colaboración de todos, podamos ofrecer un servicio excelente a nuestros clientes y evitar cualquier tipo de incidencia.<o:p></o:p></font></span></p>
<p class="MsoNormal" align="center" style="margin-bottom: 7.5pt; text-align: center; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">
<span lang="EN-US" style="font-size: 9pt;"><font face="Arial"><br> El primer día de llegada, el responsable del servicio contratado se dirigirá al personal de mantenimiento, para solicitar información sobre las puertas de acceso, salidas de emergencia, ubicación de extintores, para que se transmita a todo su personal que trabajen durante el día o los días de cesión acordados en el espacio.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></font></span></p><p class="MsoNormal" align="center" style="margin-bottom: 7.5pt; text-align: center; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">
<span lang="EN-US" style="font-size: 9pt;"><font face="Arial">Green Patio es un edificio protegido, por lo cual estamos sujetos a ciertas restricciones y condiciones de uso: <o:p></o:p></font></span></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><font face="Arial">
<b><span lang="EN-US" style="font-size: 9pt;">No está permitido fumar </span></b><span lang="EN-US" style="font-size: 9pt;">en las dependencias internas del espacio, ni en los días de montaje, evento ni desmontaje.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></span></font></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><font face="Arial">
<b><span lang="EN-US" style="font-size: 9pt;">El horario para cargar y descargar será</span></b><span lang="EN-US" style="font-size: 9pt;"> siempre confirmado y coordinado por los responsables del espacio. En caso de que no coincida con otro evento y en fines de semana el horario suele ser <b>de 08:00 horas hasta las 20:00 horas</b><br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></span></font></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">
<span lang="EN-US" style="font-size: 9pt;"><font face="Arial">Todo el personal que venga a trabajar al evento deberá en todo momento velar por <b>la seguridad y mantenimiento del espacio protegido</b> teniendo especial cuidado en los roces con las puertas, arañazos o rayones en el suelo, desconchones en las paredes, así como cualquier otro servicio o instalación que se haga.<o:p></o:p></font></span></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><font face="Arial"><b><span lang="EN-US" style="font-size: 9pt;">Ascensor y monta-coches:</span></b><span lang="EN-US" style="font-size: 9pt;"> todo el personal debe velar por el mantenimiento y cuidado del ascensor de personas, evitando arañazos, golpes, roturas y otros. <br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></span></font></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><font face="Arial">
<b><span lang="EN-US" style="font-size: 9pt;">El cliente o proveedor se responsabilizará</span></b><span lang="EN-US" style="font-size: 9pt;"> de cualquier rotura, hurto, desperfectos u otros daños que, por razones ajenas al espacio, pudieran producirse en las instalaciones del mismo.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></span></font></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">
<span lang="EN-US" style="font-size: 9pt;"><font face="Arial">La instalación eléctrica que se haga para reforzar o cambiar la iluminación del espacio, <b>se hará siempre por un técnico homologado</b> con el máximo cuidado, sin cambiar ni dañar la estructura del espacio, dejando una vez finalice el evento la posición de las luces, en su estado inicial.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></font></span></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">
<span lang="EN-US" style="font-size: 9pt;"><font face="Arial">Durante la preparación y desarrollo de los actos, especialmente los que se realicen en horario nocturno, los responsables han de evitar circunstancias que perturben la tranquilidad de los vecinos, sobre todo <b>en lo que respecta al volumen del sonido.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--></b><o:p></o:p></font></span></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">
<font face="Arial"><b><span lang="EN-US" style="font-size: 9pt;">Queda expresamente prohibido </span></b><span lang="EN-US" style="font-size: 9pt;">taladrar, atornillar, pegar o colgar en las todas las paredes del espacio sin excepción alguna.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></span></font></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><font face="Arial">
<b><span lang="EN-US" style="font-size: 9pt;">Queda terminantemente prohibido </span></b><span lang="EN-US" style="font-size: 9pt;">arrastrar cualquier material por los suelos. Todo debe levantarse y cargarse con extremo cuidado para evitar rasguños en los suelos.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></span></font></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span lang="EN-US" style="font-size: 9pt;">
<font face="Arial">Queda prohibido introducir <b>furgonetas cargadas en el montacargas. <br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></b></font></span></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span lang="EN-US" style="font-size: 9pt;">
<font face="Arial">Para los proveedores como carpinteros o pintores, sólo se puede <b>pintar o cortar madera en la sala -2 o en la terraza</b> del espacio y se debe consultar siempre previamente al responsable de mantenimiento del espacio para cualquiera de estas actividades.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></font></span></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span lang="EN-US" style="font-size: 9pt;">
<font face="Arial">En caso de tener que <b>mover algún mobiliario, material o realizar algún cambio en las instalaciones del espacio,</b> para realizar el servicio, se ruega avisar antes al personal del espacio. El material que durante el transcurso del evento, cambien su estado habitual, deberán colocarse en el mismo sitio donde estaban.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></font></span></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">
<span lang="EN-US" style="font-size: 9pt;"><font face="Arial">Cualquier montaje de material pesado que se realice, como por ejemplo son los Truz, o cualquier material de aluminio, <b>se debe proteger el suelo </b>con algún material para que el peso quede distribuido y no localizado en un punto.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></font></span></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span lang="EN-US" style="font-size: 9pt;">
<font face="Arial">Una vez que finalice el servicio, el proveedor se compromete a <b>retirar todo el material</b> utilizado, así como cajas, cartones o cualquier otro material desechable.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></font></span></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><font face="Arial">
<b><span lang="EN-US" style="font-size: 9pt;">No está permitido el uso de</span></b><span lang="EN-US" style="font-size: 9pt;"> confeti, arroces, pétalos, así como cualquier material como fuegos artificiales, bengalas, cañón de humo etc…<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></span></font></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><font face="Arial">
<b><span lang="EN-US" style="font-size: 9pt;">Se prohíbe rotundamente gritar</span></b><span lang="EN-US" style="font-size: 9pt;"> a cualquier persona dentro del espacio.<o:p></o:p></span></font></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><font face="Arial">
<b><span lang="EN-US" style="font-size: 9pt;">En Green Patio tenemos limitaciones de acústica</span></b><span lang="EN-US" style="font-size: 9pt;">, por lo que para todos los eventos se debe consultar los máximos decibelios permitidos según corresponda. <o:p></o:p></span></font></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span lang="EN-US" style="font-size: 9pt;">
<font face="Arial">Por último, transmitir que el personal del espacio estará a su entera disposición durante los días del evento y colaborará en lo posible para la óptima realización y éxito del mismo.<br><!--[if !supportLineBreakNewLine]--><br><!--[endif]--><o:p></o:p></font></span></p><p class="MsoNormal" style="margin-bottom: 7.5pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><span lang="EN-US" style="font-size: 9pt;">
<font face="Arial">Agradeciendo de antemano la atención y su colaboración,<o:p></o:p></font></span></p><p class="MsoNormal" align="right" style="margin-bottom: 7.5pt; text-align: right; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;">
<b><span lang="EN-US" style="font-size: 9pt;"><font face="Arial">La recepción de estas normas implicará la aceptación de las mismas.<o:p></o:p></font></span></b></p><p class="MsoNormal" style="margin-bottom: 7.5pt; text-indent: 3pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><v:shape id="Imagen_x0020_1" o:spid="_x0000_s1026" type="#_x0000_t75" alt="Logotipo, nombre de la empresa
';
// Logotipo de Green Patio centrado
$contract23 = '
<div class="col-md-4 col-xs-6" ></div><div class="col-md-4 col-xs-6" ><p class="MsoNormal" align="right" style="margin-bottom: background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><b><span lang="EN-US" style="font-size: 9pt;"><font face="Arial"><o:p><br></o:p></font></span></b></p><p class="MsoNormal" align="right" style="margin-bottom: 7.5pt; text-align: right; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><b><span lang="EN-US" style="font-size: 9pt;"><font face="Arial"><o:p><br></o:p></font></span></b></p><p class="MsoNormal" align="right" style="margin-bottom: 7.5pt; text-align: right; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVYAAAEJCAYAAADPdw+hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAAFxEAABcRAcom8z8AACVdSURBVHhe7d0JmFxVmTfwBBAQUWTfZJFdliTdde+t6iw2MpCJyA4BEhgFSQJ8GCCEJN3p7jp3qeqq3tNhF2ZAGRyfOAoyOmFkWAQZB0FxPkb8RPlAVhFFw2IEMtT839tvNV3Vt7qW7oRO5/97nvN03XPPPXc7973nLlU9iYiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIho3Gs2dVPcwL40CJx56fS03TWbiIhqYXzrXD/lvN+eTeQyHQ0517fvRfZWA2OJiKhqxrNezHY25BBcc0E6npMAizxfRxMRUTW8wElmOhveloCKz2GSwIpe6zpjErtoMSIiqsSiRbGPGN/+z86eGYNBVZL0XDMdiXfdwLlZixIRUSUQVBcEaWf90N5qPnV2N+SM7/yHMUduq8WJiKgc9Ex7evqmDwuqklLt8RyC7uvGWOdqcSIiKsd49rXdvdGBVZIEXde3rtHiREQ0kjbPakxn4i9JzzQqqErSoNutkxAR0UjcwLm4d1XhQ6vi1NUzXV67+uqaNXO31smIiKgUN4hfKIEzKqDmU9ibTTmvGeMcp5MREW2ZjInN7O2dfl5ra+xEzRrG+PELygVWSZ3d03PJZOwinWwYz7PO7L921nktLfUHaxYR0cSCoOqkM/HXVq2emQtSzgZj6i/XUQWMZ19SSWDtQmB1XScysLq+vaKjqyG3+tpZuXQ28TjmfYSOIiKaGBDY9vcC+yn5eqrrO7l0JpHLdiTeRwBcqkUGIbA2SVCMCqZDkwRfuW2gk4X6Fx+yHcZlM5iP3C6QefX2z8wlXesKLUJENDGk0/Epmc5Ezk998KRfgmtHZ2KD68eXZrOxnbToJATgVRKA8+VKpYHA+kGPtc2zG4xvPyj1Dn2jIAywnv371tb4oVqUiGjz5/v2UfJ11KGBNR/0kN53A/txE8SO9X3r/CAdf1fKDi0XlTIdCQRM604PARX1L/BT9nr5LYHib2vJPCXf952pujhERJu/UoE1H/gkwEpPU1JUmVJJgmh+uqivv0qS+sIy6DXr4hARbf6MsY4O0tGBNZ8GAm/0uJFSuek04L5lTAMfYBHRxCE91nKBdWMluV+b9GNdxjRur4tDRLT5W7z4kO3cwO7r6Cr/GtVYJ3nI1ebZp+uiEBFNHJ4XOyHTkXinlsv9WlP4epdnP93aWn+MLgYR0cQhv/qPIPf97r4Z4fulUYFwLJPcW0Ug/6v8tqsuAhHRxOP7Vl22I/Gr9mz591RHm+QWQNKzH21qt3fV2RMRTUxJ37pBgt7GvCUg762m2uPPyUMznS0R0cQlPUg/sB+SH1GJCoqjTXILQN6LTSZji3WWREQTX1PTzJ0RXP9zYwTXrh75n1jWXUuWJD6qsyMi2jLID7P4aeexTvnO/xg8zJI6unpm5PyU/aMuM2UPnQ0R0cRhzJE7GmOdEgTWfpo1jDHxA9PZxJj0XOW+bSYbf9CYun20+mFMKubIv37RQSKizUf426tZ5yeeb7+eao8/6Qb2t/xM9LukK1bE9m/PxB+t5BetSqVMR0OuPeM8vHJl/d5a7VCTXd9qbu9I3Ifl+W22I/GyG1iX5XKTJut4IqLxz/fjp/StnplLZ+LhS/ryS1Qd3YlXg7TjN2WO2VmLDWr1rfP9lPOWPHSKCpwjpfAXrVLO00vMkbtodYNSKdtyffuudCbxP9IrlrIShLOdiXdMwH/rQkSbEQTWE7NFP1YtQS38+b6U/ZDnWZ/XooNcz/6/CHgF01SSJGgnk9aPtZqQ3A5AL3khAvl7Ub98Ff6X15RzqhYnIhr/ogKrJHl3dSC4SqCzW93AuSzpOhdL8nznZenhFk9TLkkv1/WsF41vLWr16xdIneilPigBN5AecMT7st29M3JtKf5+ABFtRlKpxMldA//7PzJJgJVLc+k5SgDuwOdSv6daSZIAKvXIfymQoCnBO6qcJLkV4KftHxsz9UBdXCKi8S+dju+J4HlvJf+7aixTJd/mkmAu/1dLF5WIaPNhWusXdHRO/8toeqJjnSTQI/g+w6+6EtFmy/Xsr3V0b9pea6kk92KznQ3vG8+6WhePiGjzY4LYTNe335Z/Rx0V7DZV0p8QzCGo+rpoRESbL9+PnxGknfXy2lNU0NvYSf4ljLxLi6D6DSwOvxRARBNDW5t1pp9y3pMn8pvynqtc/subAug19zU1Df9iAhHRZq3VxE50A/tJeTVqpNehilP4nmpgP+UGzlPVfDNLXufKdiY2+O22Z0zjNroYREQTi3mgcRs35QTpbOLP8qMp5QKl/GJVT9+MnOfbX/d85/rOMg/CpLxc9ssDs2xHw498316qsyYimtjkv6b6KeerXmC/JYEzf/+1+D1U6dlmOxK/DwLnONe3MmGQHTJeyueT3Gbo7Z+R8wP7x7j0TxsT20FnR0S05UDAnN2ejV+IHukvpAcrAVZ6sZLks/x2gPHszkVm7x2MqZ8dpOP/T3qtQ8uEX11Ny9da7duzXfEL5XdetXoioi2XMdZBnX3TG9q8+s8ZP/aP0pPFpf9zyD9Dfg3LSzlz2zznCy1B/cEIqL2pdPwtL7BecP1Yi9duy3TxpUunfEyrIyKioYw5YHvTae+FnudumjUJl/Ztru8Y+Tx37qStOzE+nZ62eziSiIiqh95pEr1YVweJiGi0hvZYiYhoDDCwEhGNMQZWIqIxxsBKRDTGJLAaz27VQSIiGi0E1hYT2L06SEREo+UFznIE1/uMadxRs4iIaDR8P77UDeyfy//S0iwiIhoNz3NWGt/6QxDUHaBZREQ0Gl7KOdX1nWX8XVUiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiKiLUX/4kO2S7r2pV5gr/JT8dWe76w2ntVrAuc4LVKzxYvnbOe61jnGm9Zkgvqri5Pr1y8zXmy58a1T5s6dtK1OVrPcpEmTUdcZMr+k1B0xz8iE8l6q7ivGNG6vVVXEBNOOx3xMZJ0lEtYZ5adN1yoqYozzCePVtbaYqcdqVsWa00fvKevX5tUnfX/aoZq9SRgz7XiD+UZtBy+ILXf9uiXGxGZq8TGXTsf3NEHsKtl2xkzZQ7OrZsxhu2E9rsTyrohal3JJ9nkQ1H1WqxuRl66flXTrAzeov3TRothHNHvUWoL6g3Fc+65v9fspZ7Uc78bYlyzuP2Q7LUJjwfj2Sa7v3OMHzhOp9nhu1eqZuf5rZoV/e/tn5LDh16XSzsMIjHemcXDqZFXJZmM7YUc+1J6N5yRlOxORyfXtvyKgP5Fuj/9QdnytB0EuN2my61lrZV7pEeZXnLp6GmR93zEmsYtWVRHPt67vWTU9l+mIrjcqXXPdzJwJ7HatoiJB0HBA0O5gPvGXg2DqbM2uSJsfj8n26O6dnvNS9umavUmE26evxPbpSoT52O5/9ALnMazfg2iPAU6wW+vkoxYE8WMzHQ3hvBBUbunvn1NTEDGmboqfdsJ2Urwesg4p7JsA40u1A9nnfmD3aXUj8gIru/ramTnPt19b2jXlY5pdk5tuin0E653MdjY8gO38bFfPdD3OZ4Z/5bj3Us7PcKzc53l1f2MaG7fRSalaK1fW740gdn1HV+K93n7swMBej8D2ItJzHyRH/v4O4zb09M2QBvOy7zu3NaMHoNVURAPrD6XBoc4/o7G8MDw5zyO9jPm9Lju6d9UMNELnmeUrpzpaTcXCwOrH/jU8YFPO29HzG54wX1mGJ1dkj99Jq6qIbMdubB9Z/qh6o1JX7/TnsS2WaBUVkcCKaTZIcHQD67/Ry9tfR5U1EFgTCKwzcm3epg6sDgKrnKSdV4ZvC+z3IPyMdua8joM/19OHAJSy7zdm6jTZl1pNTboQlJKudb/UK8EVHYl3m4x1kI6uiu9bh7uB/fRAOylaD6wb2u6GII0gVaId6D5v1upGNBBYZ+Vcz/n9aAJr0nXmoaPynAT2zm60G9/5A5b1tx8c42GS4/4vcsylMwkcL85jy0zdPloFVUouk7GjfyuNHY3kVTdwvuP7dZ+RM1tU8rz6OBrUd2XDy9kOwfXLWlVFBgKr/UCfBPBU/PKoeQxNuDQ5O51NPNDZ3YAebuKVFlNf1e2IgcBqfU/mhx7CdVHzKJUWIWk1FXM9+yY5cFta6g+OqrNUmjt3blW9MgmsxnPelROGHCTGq7zHa1KJejlhhdP5zmmavUngBHnDQLuxj4raDkMTAsESBKfHV62eJT3Ap006doRWUxPpZSJYIKBYT+Bk9EtZDvTeVuvoak2OWmZJra0SdK2fyzbGFc8hUWUkVbrPcbJpl94kgtwrtQZWCaqyPFIPetK/9jy7FSfjHaKWq6nJPgzb5TaU3yBXrOi9/mzFiqkHalVUjtxjSfrWOtnY6YzzU68tNkNHleUF9SlMa9aYuVXdBx0aWBGgL9XssnAwZORAQHD9hUnV12t2WYWB1enX7I0mH1hxEG/Us7wEVvQ2NiD9Dpekrw7M0/o/OnpE4yGwBmh7mjUiY47cET21tQMnYvubxjTUfF8UHYhvrL5uFoKps8oEU47r6E68irb4x6VL9xzV5XUxuXpA2/6ZbONUKrGvZtdstIHV9+PnpjPxDalMPIe2srbJTDlMR40ombT+DuvwG+lE4bh7THrpOopGkvTs28PL+s6GR6WHpdkbVWFgdS7T7LLCyzjPWhdeEvl2WrPLKuqxXqPZG80HgbXyS/NaSGANb2/g0jrp2tfJ+rXjwEkm7YVapKTx0WOt/CA1Qf1xcssj7GEaJ6HZVZHeGQLrumxXw4ue58ySPATsR7TX6oeFxghOcAdJr1i2sewnza7ZaAKrXH1iWf4g0yfd2CMrVsSqurXV3Fb3N15g/WUVeq64ur1NtqOOoig4AC+V+0yZbPyPCKpVPfwYjVoD602LcGnoW3eFPZfAdjW7rIkcWDu65AGb0y33yHHJ/Fh48AX2ujbPatRikTa7wGoSuwTtzh0D94QHgmK1kq7Vj+nfN779A82a5Kft+bKvsA0fM2bsHtKMp8CKY60vvM2Xjv9/WS7Nrorx6xfISRy91rc8Lx7XbIqCnfV9uX9iXPtHmrVJ1BpYhdwPlssSTO9pVlkTPrD69o0ybIy9l59y/ksOwKA9fsdIT9I3t8Aq0NtaIfvQBPYczapYc3ra7n4q/ius83tyn1Wzsc0at0FbehZt6h30Wq/W7FEbL4G1tTV+KLb3k+1ZaY/18zW7asYcua3chuldFW7/3rE8CU0o2qAewllog/FjX9TsTWKUgfX80QXWTXePdeXKqaO+tzaSfGB1fecGzcJ+nXYkTh7runrQQ0nFu5AV+RR9cwys2IfL+hBcagmsxnNSEpiwb36qWYNc175UenTp9vj3Uqn6vTV7VMZLYPU868qB48V5p7s7tptm18R49iXhMes7747FOk1ILYF1vJdyXpfXLcbyHcFK1BpY5YsFxo09KNOhodV0KwC9u2slz5hJW42UGhsnyRm5pld7PuixDjxFjao/n2Tby/KFE1YpKrDKU2Z5R7ELAVOCpus6GR1VYHMLrC0tR+2HfXdvVy+WN6juywPyBQg/7Tzc0TU91+rHhq2rMdP3Sfr2+lWrZ2Bb2DX36oYaN4E1sK6WkxGOt2eqfR+7GNrSvGxH4n/Q3t5nYC0h6TvBwAv/zkub+mZ0rYE1uwLTedab8vBKeiCaXVY+sIYPegL7WTewv4X1/peREgLj9/MPOKolr3R1InC4gfXvWM+7ourPJ+klIWDcUu27wCIqsIqmzDE7y3zlsi2VjiNYRASTze4ea92cHgRVOWGlTKyqd5kRLC+QoNnmWetxSbuXZg+Sb9ahZ5cMe3ae/W0cD6Pq2YnxEljl9oYG1r41a6p7na8Y1ulo49q/kXdzGVhLwEHdLfdX8bemwCrTIEDdjZ32MILjRZpdkaGB1fjxRZo9IpkfGtc/SeOXd1oxXPH9y3xgDRs5krzHWC5JUMJ6zdMqqiK9YulZyfyi6h6awl6lb7/YlKn+oUKpwCqaMjN3Rv3hu8borT3R1HTErjoqNB4CaxDUVXRwGmMfhnb6lOwTX75abRp31FFltbTUHYAT5E/lSy+4lL1c7hXqqAKeZzdksvH35EsT8lmzazaObgXkA+tSzapZKjV1X5ykfiKvbDGwltCashe0oyFhg79ay6WofE8dO/svN361Meen4h2aXZF8YJWD3gTykrLzqZbA2m9oMiZ+oO/HD5WUTNYvDdLOyz1hkLBfbDVTTtKqKpIPrDI/L2X/g7xfWi51dEzfZ0lP4qNaRVXkYZL0rNCo7ai6hyaZj+lq2KOW3sRIgVVc1mTviu32M7kywd9/Xrr0gwNyPARWXNIfW7zfg3DfWweFl+/Y9wiGLtrZ6+H90cB+aaWpr+pVqzYvdoLcFkEv6zUE5amaPYzcZvLRqxv4dpN15+LFo/uu/HgJrBJQ9dbZt3tqbM95Jqj7bJCyf4fjnbcCSpHLHRyQsuPf9lvtozS7YggIH8fOejXc2YFT1TuA+cAqPTYcLH/CWVC+Rvd8PmH4eVySve4HcQka72NHIgBIALEfQrAa8TWiKPnAKg0Ml+kVfTd7NPL3WJuba/sthUqVC6yi1cTO8nHpNtBzjX9DToiSL19p/bACa9ijH7hV8gr2v3ydcnDfI+8F7Ks3g5STk3WTfdY+8K7umpaW6n6k5tZbG7dHW/qBfGsLVx8Xa3ZJbW318a7uhhewnd6VE7tm12Tc9FgDu0neP8XfN0f78MoN4gvlIZ8cj0HgfFqzqRga2z2ys4xnrdGsio1FYJV7NRKA5KCX3mg+yXBX7wwJuuF4Sa5r3Sq/uKVVVKUosE64161GCqzCde0ueUugs3d6Lula4cMsk45P+bADq7zwP3S/D+z7mTn5nQW0jz/L6z24NO+WX3TSSatiMlMPRNvcMHC7xbkbaRmGl5dKxnOuxHyfzGKbyjJqNTUZL4EVJ5azM52JN7HuOFk4n9LsmmB9rpBjE9voF83N03bXbCqGwHWdvHCNRvRstWfosQiscnBh2ttxJrxwaArkr2t/qS1lnez51ho5S3qp2D+uwHRaRVW29MAqbx/I5bfsa/x9S95tNO2JQz68wOpcH/ZYfac5at/jkvwCuU0gy62T1ARXN7elMwP3uWV+0lbLJQmq4Ynct18odT+2EuMlsEpZ49r/Gh5Dnn2LZletBT3U9kz8F9KG9PXMUf0YzoQmv0uJwPaMfBsFl91VXSKPRWCVaY0fv0CzIxkz9Vg/Zb/f2dOQazLVv78otvTAKuSHNVJp5x9kG6D8D9F7me3jcvvDvMfaNYrfQi1HXs/Cvn4D6/gGeukXygOpShOm+SV6z++gjcp7wDUZL4FVJH17hbylIm/FJN1pV2h2xdCOd0ga6zth2wmc3zcb50gdRaXg7HNWOitPpxs2BGm7tZpfWEJAfWU0gVV31IivW8lDHePZV+GycT0a6Uu+X3+MjqoYA+uANm+ajZPUqwO9RftP2G/hfcwPK7BW+wWBarie9bWwfXnOI5pVMeNZKblNEaSdn6TTtV3yjqfAKg9h0SbvDN8CStlPV/OV4GXLDv940rVXyNsS2Gfv4PPCan+FbYskZyMcWGukoctZLUjFeyt5QBS023NwZv/zNdfNyrkpp0ezK1JNYM2Te17hQwjf/jV6sZ/U7IrkA6s0TASWmnshlfogsA48KNpYqg2sos2zrpRlk9+ImKiBVd4mQED7OdbznVbfOl+zKybHBPbhn+SHn9HeWjS7KuMpsApj5m7rBnbYucAx97abspqxniM+zPL9xDGpjPNtaS8duLIJqvglOgK5rEevsBMH2hv94S9HOe+iQbWl2p1mHHRflAcdJrCmm5TzRQTTZnzuRtl35dWUTDbxkufFT9CqKlJLYG316z6DZXxDDsg2E2vS7IrkA6tMi8Z1v5t2LsLfheWSSdmXhOtf5b02rNMNAwHPXoE6FkTVXZywbpe4QWxeucY+VC2BVRjPuVoCqzw8nIiBFdvd09em1s1dU/23CqVHhp6ZJ8uY9KwHKn3fdqjxFliFnOixbe6WE4bcc8XJ49/kGEf7W+y11X8OJ6E6z4udarx4kxdYSZR9Vn5iUQIryjCo1kr+nxV6rI/LfTfZibIDpGEgiD6D9Ip8lvyw54feTjYbvwo7q+qfcJPAanz7RwPfoIpfrtll+WnnNASEd7t6Gl73UvEzNbssDaz3yD0mue0hSV7hKZfkFS806PXysr1WVRH0rm/s658xUE+l88JBjHm9ZlJ1llZTljxwDP97gOfcrFkVc10rI78iLweY/LCNZm8SaEs3y9NlnERG9aPVUdraLDtIOb+WoIgTyFdq/bZR0G3tJw++av2aq/wEJzog/y1tbrSvbglcaXXI1SEC6x9qDaxCgmumM/FF41lPhccyjvGBtyasPyKQymuPf5UvU8iXCqRtYV/dvqn/w8SEtHz5MZ9q72qwcZBfhQb1XJB23sLn97CB30lnEm9hwz+CoPZ5Yyr/oeli/f04c+KypHfVzHVuEC/726FDtZn6yzu6G9ajN/JEpT0eCazydgF6aJif/QZ6eFiP8gknkjfRkJ83fY1V3XrA2b4bgXIdtpm85hJZd3HCtn0T2/mX6OFO02rKCoJZ+6E3sQ77pOp3c+X/h/mB/Wh3z4x12M9VfeFitDDfPhzM6+SSXbPGjATBjq7puOKy/iQPZzW7auF9Sd8yXb3TsX2ce+TLHDqqIhJMsV8eRhtaJ/tJs2smy4Jgtw69zKfNTaP/Crr8jkW2u2E6ttfXcYy/4aWcv8pxjs/rccX1StK3lkkcGPqlEhojGfTU5KVio6m7u3G3ar5OWIoEOum1dt/UuNuSJdV/GyRcHmPv1V/Ff5KUM/XQdakkSfn2dntXWV6tpiLGHLljuK2K6hsphctmErtU83NsxpitRrNP5BaQ7IPRvFZUC1leWe7Rfnc9Cure/qZwnWJjUr8sp/ziVbX/GVVuJzQ1HTNw/GA/aXbNpJcq69XUZMtXk8fsVSfZ94XHeGy3JrR5HU1ERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERES0kZxyyin7nHrqqcfq4DCLFy/e7qyzzpp7xhlnHKBZIZkO+SfoYEVOOumkHVDPRXPnzt1fPp922mlfRh2H6+gCKLPXmWeeOVsHZXh/lD2nsbFxG80adPrpp09FsnVwGNSzEMmSzyiXQLoM9e0YjlSod3vk1+Pj5IGcD2DaOqQpOjgIeUdhmr11cBhZZmynuA4OI8tw9tlnn6iDVZk3b95u2B5zdDCS1I8yp+tgAYzbCfv9QB0MYX/sKkkHS0KdTn57DoX8E6Rd6GABaT9Y18/pYKUmY3kuGbLvTsE8zovFYh8Jx6rzzjvvE0O3I6Y5DGUv1MFIqHM62uBuOhgJ2yiG+TWjrj3weWuZN6Ybdqxg3T6LcYfoIG3pcGB9Eg1iARrGDWgwn9fsAlIG495GSmlWCMOzke7VwbLQ+PfGfM5BfctPPvnkT59//vkfwwFwKfKWfuELXzhIiw3Cch2H+u/XQVmOAzHcjnSJZg1CWYP8VTpYAPO4CvPowsGR0OGZqGspAsDHwwJKDjKUyxpjttKsQTiozsc8foN5FARXDK/ANMfrYAHMYz/Mqx/zvRx/P6PZBVDnp5Eew8dhwbwczDuOaR/WwUhYbjk5fU0HB2F5DpbtjlSw3ZEfk2CigyWhzo5zzjnnJalfs0LIvxdp8GQ4FJZV3K2DFcE+qsN2XJnfd/h7Fur/8qJFiwoCK+o9HOlRHZT1+AzKpZC3TLMKyD7D+Hb8NaWCKwL1DEx/C5J/4okn7iWBVeaNZRjWmUD+N2WcDtKWDg3wMDSua9F4TkD6u6igIg0P4+5Hg5IgcgWywiCAz59DY/qOfK4EpneRFujgIATZo1DP1+fMmbOdZoWQNwvzvUsHQ7J8WObZmHdBQEC55SjfroODkL8MZVt1cESod1eUTUZtA9QzB/X3YfmvHBpMkCdBs1EHC2C7HYGgcBqmuQzpYs0ugPkdgLr/HR9rCawWpv0XHYykweDzSAUnRcz3s1jubh0chOU9BuOO0MGSUF+AwHMb/nZiHvtrtuR/B9NH9kqxrNLbvEMHK4JlvBbbbg8dLAn1HoJUcJJHe/oEliejgwWQ34byFyM1Y3mHndQlkMp+q2RbCJT7e9Q1VwdpS6YH3UJpWPo5g78zdfQgBL490WjuwTi5rPRlGrkcx0F4LD5XFFgx7bY4SJxSBwnqmX3CCSd8TAdDyJPAeqcODkI9MQlaOhhCucjAiry+qMtPvZ1QEMxQb8nAiuU+C/Wcib/Hocxgfag/MrDqbYU75GQhJyaU+zLKHayjB6GumgMrtuk0TPsQ6p4i6dxzz52CXuRhOnoQlsPG+DtkmXR4Dwyvxv77ZFhgCCxjA+qRXmFYJ+o/UgKUjh6EcZ0Yt0DWCetwI9ZxB80f08CKKxm5xXMNppPAeYy0QR1VQMcXBFaU3QnL0qKDg5AfQ/5SuX2Add0Hy3yzjhqEMjOxbsN6+qWgvq9i2zflt5vsC0xf9pYKTUByMKDRtumgHFTSEzyzOMDJgYhG+wAa29aSpLHioNwPDSguB5IWG5H0AEZqaKh3x+IDWBo36v+eBCfM/6NIn8aw3Cu9GqMLAhHGleqxNiN/2D0x5MWL11OWD+sWGVhlu6Cu8J4dpl2Nz+G9TeRfgemGBVbt+S3SQVmOqxCYp+rgIJSpObBiOrn8/R3SWizTWhzY8ndYkIDJmM85GHeZDMg8kfrDMUVQ17nz589/ROrD8q7F8Bp8HnaPGHkdSEvkM9YVm+C0hZo/poFVyIkJdcqtnrX4ezzm5eRPEnlY94NR931ye+lLX/rS9ih3BIYvxjQ9WiQkJ1RMPxvj5muWbI9mzGOw1y1kPijzbzpYFuazGtvtv2QZJeHzWsznJB1NWxI0nqvQCJbg70X4Kz3XC9CYfom/BZdGGljvzzdmlD0KZb6C/OOQvyYsVAFMMx/THK2DgzRYL8/3evLQMCWwrpWAi/nsgjInY/g+HV0A40v1WG9FgPhbHRyE8qcU99gwv3KBNbyNIeVQ742yfMi7EH+HBVaUlwDTItOg7EL8XSonseJ1RJnR9FjlwcqItwLyZBkxr0V6kmqN6oUKOSEgSEXeDx4K69SBeq6Sz/KwCuvWiSQ941ukXYSFiqB8TYF1KNlnSN9FT3ZfzQph/SSwPoC0u5TBcpyEJLcBik/A+yL/VmyLC/BX2ry0fRd//16LhLBOh6POq6LaQhTUcQvS2TpIWzI0Mrm/1KINbBEO1EX4ewXS8RLstFg+sP5waC8BjXc+pnsU+cMu1UuReWCaq1H3tpoVQp4cBCnpTWhWCOXlSevgww4JSmjsC4cuWx7ymlA2q4OD5CBH3dfLOmhWCHWfKAegDoZQtwRMt9StANk+OiiXqPsiT+7ReahrhmaHUO+xyJPt+BXUF25b+YvyNxQvB8oeiDoewMeqAyvqlHus9+hgWZj3ZZjmbKRL5DJYswtgeaZF9ayLYb5d2B5y5RDCvjkC69k7b968X6H+yLcgkH8qpvumDlYE+0RubRRsG6zH7TgxfEoHQ5j3oah78EFnKSh3EMoZ2Sf5/YK/sq8ujdg3JyJv2DOBKKjnVqTzdZC2VGgEl6PRRL6qg3HflEsqHcwH1h8UX36hXBvSP+tgWRKwUD6O+m7FQRmTwIYGfZ00cOlJabFBKCM9wqH1T8ZwI+pwdXgQ8q5GCnSwAPJnIX1P5iPDmP+VSN8o7rVJYEWZlhKB9XTUUfDUF1lzUP5R/C0IRCh3syynDg5C0NkN8+gdegLBOsorZBIcqw6sCID1mPa7OlgWllNeM7tbg1UkLHt4f1AHS0K5dsz7Sh0Moad7IJbpceQ3aFYBTHMSxn1dByuC7XsElvdr+Csnr62w/Bmky4vbot4KWKuDkaRNo8y1OlgA9f8txhU85JR9gzYqD1zvwbIfJe0Df7+F4fO0yCDk34Q0TwdpS4XG8ani142EBBU00v2GBhc0sK1xsO2Jj8MOfjTG3fVjxeTAlnlLgJHPxZfHeXLwYDkLehF6/6zgfVqBZZR3Moc9jMnDch4ul6zyGeX2k9e98LEggMo6l6pDlhHzKHhwIsNy8BW/+iPbqriskhODzHdwO8o20G1bNcxj2+LtU47sdyzDR3VwGKlTkg6WNH/+/J2jer2zZ8/epVT9sg3l5KKDlZosl+VYpp3kM/b9QcXbW1SyHVGHvIdasP3zpH5sm2HvIyN/R+RPlfvx8u4sPh8tD3N19CAJukM7I0RERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERERFuKSZP+F0vlO4rFICMJAAAAAElFTkSuQmCC" alt="" style="float: left;"></p><p class="MsoNormal" style="margin-bottom: 7.5pt; text-indent: 3pt; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial;"></p></div></div></div></div><div class="col-md-4 col-xs-6" ></div>
';
//Generamos el contrato
$contract = $contract00.'<b>'.' '.$client->getName().'</b>'.' '.$contract01. 'CIF '.$client->getIdDocument().' '.
$contract02.'<b>'.' '.$client->getAddress().'</b>'.','.$contract03.' '.$representante.'.'.
$contract04.$reserva->getTitle().$contract05.$fechaInicio.$contract06.$horaInicio.$contract07.
$contract08.$textoSalas.$contract09.$cierre.$contract10.$pax.$contract11.$fechaInicio.
$contract12.$textoSalas.$contract13.$textoMontaje.$textoDesmontaje.$contract14.$tiempoCedido.
$contract15.$contract16.$contract17.$contract18.$contract19.$contract20.$contract21.$contract22.$contract23
;
// Si no habia contracto originalmente en la reserva se actualiza
if (empty($contractOrigin)){
$reserva->setContract($contract);
$em->persist($reserva);
$em->flush();
} else {
$contract = $contractOrigin;
}
return $this->render('MDS/GreenPatioBundle/reservations/view-contract-reservation.html.twig',
array(
'id' => $id,
'contract' => $contract,
)
);
}
/**
* @Route("/createdeposit/{id}", name="reservations_greenpatio_createdeposit")
*/
public function createDepositAction($id, EntityManagerInterface $em, Request $request)
{
$newRequest = $request->request->get('reservation_deposit');
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$newDeposit = new ReservationDeposit();
$newDeposit->setReservationId($id);
if (empty($newRequest['date'])) {
$newDeposit->setDate(new DateTime ('now'));
} else {
$newDeposit->setDate(new DateTime ($newRequest['date']));
}
if (empty($newRequest['description'])) {
$newDeposit->setDescription(null);
} else {
$newDeposit->setDescription($newRequest['description']);
}
if (empty($newRequest['amount'])) {
$newDeposit->setAmount(null);
} else {
$newDeposit->setAmount($newRequest['amount']);
}
if (array_key_exists('isDone',$newRequest)) {
$newDeposit->setIsDone(true);
} else {
$newDeposit->setIsDone(false);
}
$newDeposit->setCreatedAt(new DateTime ('now'));
$newDeposit->setCreatedId($user_id);
$newDeposit->setUpdatedAt(new DateTime ('now'));
$newDeposit->setUpdatedId($user_id);
$em->persist($newDeposit);
$em->flush();
return $this->redirectToRoute('reservations_greenpatio_edit_simple',
array(
'id' => $id,
'token' => null,
'_fragment' => 'btn_dpt'
));
}
/**
* @Route("/depositupdate/{id}", name="reservations_greenpatio_deposit_update")
*/
public function depositUpdateAction($id, EntityManagerInterface $em, Request $request)
{
$newRequest = $request->request->get('reservation_deposit_isdone_pending');
$deposito = $em->getRepository(ReservationDeposit::class)->findOneById($id);
if (array_key_exists('isDone',$newRequest)) {
$deposito->setIsDone(true);
} else {
$deposito->setIsDone(false);
}
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$deposito->setUpdatedAt(new DateTime ('now'));
$deposito->setUpdatedId($user_id);
$em->persist($deposito);
$em->flush();
return $this->redirectToRoute('reservations_greenpatio_edit_simple',
array(
'id' => $deposito->getReservationId(),
'token' => null,
'_fragment' => 'btn_dpt'
));
}
/**
* @Route("/loadedreservations", name="reservations_greenpatio_loaded_reservations")
*/
public function loadedReservationsAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
$hoy = new DateTime('now');
$diaInicio = new DateTime($hoy->format('Y-m'). '-01');
// Se buscan las reservas creadas desde el inicio de mes
$parameters = array(
'diaInicio' => $diaInicio,
);
$dql = 'SELECT i
FROM GreenPatioBundle:Reservation i
WHERE i.createdAt > :diaInicio';
$query = $em->createQuery($dql)->setParameters($parameters);
$reservas = $query->getResult();
return $this->render('MDS/GreenPatioBundle/reservations/list-loaded-reservations.html.twig',
array(
'reservations' => $reservas,
'itemsOfSearch' => '',
)
);
}
/**
* @Route("/searchreservations", name="reservations_greenpatio_search_reservations")
*/
public function searchReservationsAction(Request $request)
{
$searchloaded = $request->request->get('searchloaded');
$dateStart = new \DateTime($searchloaded['date_start']);
$dateEnd = new \DateTime($searchloaded['date_end']);
$itemsOfSearch = ' Entre las fechas: '.$dateStart->format('d/m/Y').' y '.$dateEnd->format('d/m/Y');
$em = $this->getDoctrine()->getManager();
// Se buscan las reservas creadas en las fechas solicitadas
$parameters = array(
'diaInicio' => $dateStart,
'diaFin' => $dateEnd,
);
$dql = 'SELECT i
FROM GreenPatioBundle:Reservation i
WHERE i.createdAt BETWEEN :diaInicio AND :diaFin';
$query = $em->createQuery($dql)->setParameters($parameters);
$reservas = $query->getResult();
return $this->render('MDS/GreenPatioBundle/reservations/list-loaded-reservations.html.twig',
array(
'reservations' => $reservas,
'itemsOfSearch' => $itemsOfSearch,
)
);
}
private function sendMail($mailAddressFrom, $mailAddressTo, $mailSubject, $mailBody){
$em = $this->getDoctrine()->getManager();
$agent = $em->getRepository(User::class)->findOneByEmail($mailAddressFrom);
$client = $em->getRepository(Client::class)->findOneByEmail($mailAddressTo);
if (empty($client)){ $client = $em->getRepository(ClientContact::class)->findOneByEmail($mailAddressTo); } // Si el cliente era null puede ser un client contact
if (!empty($client)){
$replyTo = array(
$client->getEmail() => $client->getName(),
$agent->getEmail() => $agent->getName().' '. $agent->getLastName(),
);
} else {
// El AddressTo es un contacto no registrado
$replyTo = array(
$mailAddressTo => $mailAddressTo,
$agent->getEmail() => $agent->getName().' '. $agent->getLastName(),
);
}
$agentMail = $mailAddressFrom;
$mailAgent = $agentMail;
//Se prepara el correo con los agentes a notificar
$firmGmail = $agent->getFirmGmail();
$data = array(
'body' => $mailBody,
'firm' => $firmGmail,
);
// EJECUTAR ENVIO DE ALERTA PARA EL AGENTE
$transporter = new \Swift_SmtpTransport();
$transporter->setHost('smtp.gmail.com')
->setEncryption('ssl')//ssl / tls
->setPort(465)// 465 / 587
->setUsername('desarrollo@develup.solutions')
->setPassword('MeDITeRRANeAN_Develup30102023#');
$mailer = new \Swift_Mailer($transporter);
$message = new \Swift_Message();
$message->setSubject($mailSubject)
->setSender($agentMail)
->setFrom(array("desarrollo@develup.solutions" => "Green Patio"))
->setReplyTo($agentMail)
->setTo($replyTo)
->setBody(
$this->renderView(
'mail/structure-mail.html.twig',
array('data' => $data)
),
'text/html'
);
$mailer->send($message);
return true;
}
private function makeAlert($reservaId, $clientId, $clientMail, $agentId, $agentMail){
$em = $this->getDoctrine()->getManager();
$alertaPrevia = $em->getRepository(ReservationMailAlertClient::class)->findOneByReservationId($reservaId);
$reserva = $em->getRepository(Reservation::class)->findOneById($reservaId);
$dias = $reserva->getDaysBlock();
if (empty($dias) or !(is_numeric($dias))){
$dias = 7;
}
$diasMenosDos = $dias - 2;
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$hoy = new \DateTime("now", NULL);
$hoyMasCinco = $hoy;
$hoyMasCinco->add(new DateInterval('P'.$diasMenosDos.'D')); // 5 dias despues, 48 horas antes de la cancelacion (o los especificados)
$hoyMasCinco->add(new DateInterval("PT2H")); // Ajustamos la diferencia con el reloj del servidor
$hoy = new \DateTime("now", NULL);
$hoyMasSiete = $hoy;
$hoyMasSiete->add(new DateInterval('P'.$dias.'D')); // Siete dias despues (o los especificados)
$hoyMasSiete->add(new DateInterval("PT2H"));
//Si no hay una alerta previa se hace la alerta
if (empty($alertaPrevia)){
$alerta = new ReservationMailAlertClient();
$alerta->setReservationId($reservaId);
$alerta->setClientId($clientId);
$alerta->setClientMail($clientMail);
$alerta->setAgentId($agentId);
$alerta->setAgentMail($agentMail);
$alerta->setAlertDateTime($hoyMasCinco); // A los 5 dias se alerta (o los especificados)
$alerta->setAlertSended(false);
$alerta->setCancelDateTime($hoyMasSiete); // A los 7 dias se cancela (o los especificados)
$alerta->setCancelSended(false);
$alerta->setOldReservationId(null); // Aqui se guardara el Id de reserva cuando se vaya a eliminar el registro (solo se pondra reservationId a 0)
$alerta->setCreatedAt($hoy);
$alerta->setCreatedId($user_id);
$em->persist($alerta);
$em->flush();
}
return true;
}
private function benefitForReservation($id){
$em = $this->getDoctrine()->getManager();
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$lounges = $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($id);
$services = $em->getRepository(ReservationService::class)->findByReservationId($id);
$payedLounges = array();
$payedServices = array();
$unPayedServices = array();
// Salas
foreach ($lounges as $item){
// Si la sala esta en ReservationInvoiceItems se encuentra facturado, en caso contraio, no lo esta o ha sido rectificado
$loungeInvoicedItem = $em->getRepository(ReservationInvoiceItems::class)->findOneByLngControlId($item->getId());
if (!empty($loungeInvoicedItem)){
// Esta facturado el Item
$payedLounges[] = $item;
}
}
// Servicios
foreach ($services as $item){
// Si el servicio esta en ReservationInvoiceItems se encuentra facturado, en caso contraio, no lo esta o ha sido rectificado
$serviceInvoicedItem = $em->getRepository(ReservationInvoiceItems::class)->findOneBySrvControlId($item->getId());
if (!empty($serviceInvoicedItem)){
// Esta facturado el Item
$payedServices[] = $item;
} else {
// No esta facturado el Item o fue rectificado
$unPayedServices[] = $item;
}
}
$benefit = 0;
$payed = 0;
// Se suman los pagos
foreach ($payedLounges as $item){
$benefit = $benefit + $item->getServicePrice();
$payed = $payed + $item->getServicePrice();
}
foreach ($payedServices as $item){
$benefit = $benefit + $item->getPrice();
$payed = $payed + $item->getPrice();
}
// Se restan los impagos
foreach ($unPayedServices as $item){
// Se verifica el check de toinvoice por si el servicio se facturara a futuro (Requisito de Rafa)
if ($item->getToinvoice()){
$benefit += (float)$item->getPrice();
$payed += (float)$item->getPrice();
} else {
// No esta pagado y no esta marcado "Para facturar"
$benefit = $benefit - (float)$item->getPrice();
}
}
// Porcentaje de beneficio
$percBenefit = ($benefit * 100);
if (!($payed == 0)){ $percBenefit = $percBenefit / $payed; } else { $percBenefit = 0; };
return array(
'benefit' => $benefit,
'percBenefit' => $percBenefit,
'payedLounges' => $payedLounges,
'payedServices' => $payedServices,
'unPayedServices' => $unPayedServices,
);
}
private function verificarStatusInicialyFinal($id,$user_id,$estadoInicial,$estadoFinal){
$em = $this->getDoctrine()->getManager();
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$user_logueado = $em->getRepository(User::class)->findOneById($user_id);
$newStatus = 'Pendiente';
//Este Switch ya no es necesario
switch ($estadoInicial) {
case 'Bloqueo':
// De bloqueo solo se sale si el usuario es Salvador o un Admin O si se va a Cancelar "Deleted" o "Cotizado"
// if (($user_logueado->getRole() == 'ROLE_ADMIN') or ($user_id == 14) or $estadoFinal == 'Deleted' or $estadoFinal == 'Cotizado'){
if ($estadoFinal == 'Deleted' or $estadoFinal == 'Cotizado'){
$newStatus = $estadoFinal;
} else {
// No se cambia el estado
$newStatus = $estadoInicial;
}
break;
case 'Pendiente':
// De Pendiente solo se sale si el usuario es Salvador o un Admin O si se va a Cancelar "Deleted"
$newStatus = $estadoFinal;
// if (($user_logueado->getRole() == 'ROLE_ADMIN') or ($user_id == 14) or $estadoFinal == 'Deleted'){
if ($estadoFinal == 'Deleted'){
$newStatus = $estadoFinal;
} else {
// No se cambia el estado
$newStatus = $estadoInicial;
}
break;
case 'Deleted':
// De Cancelado solo se sale si el usuario es Salvador o un Admin O "Bloqueo" o "Pendiente"
// if (($user_logueado->getRole() == 'ROLE_ADMIN') or ($user_id == 14) or $estadoFinal == 'Bloqueo' or $estadoFinal == 'Pendiente'or $estadoFinal == 'Cotizado'){
if ($estadoFinal == 'Bloqueo' or $estadoFinal == 'Pendiente'or $estadoFinal == 'Cotizado'){
$newStatus = $estadoFinal;
} else {
// No se cambia el estado
$newStatus = $estadoInicial;
}
break;
case 'Cotizado':
$newStatus = $estadoFinal;
// De Cotizado solo se sale si el usuario es Salvador o un Admin O a O "Bloqueo" o "Pendiente" o "Cancelado"
// if (($user_logueado->getRole() == 'ROLE_ADMIN') or ($user_id == 14) or $estadoFinal == 'Bloqueo' or $estadoFinal == 'Pendiente' or $estadoFinal == 'Deleted'){
if ($estadoFinal == 'Bloqueo' or $estadoFinal == 'Pendiente' or $estadoFinal == 'Deleted' or $estadoFinal == 'Confirmed'){
$newStatus = $estadoFinal;
}
break;
case 'Invoiced':
// De Facturado no se debe salir a menos que se rectifique
// Si todas las facturas del expediente se encuentran rectificadas pasamos al estado "Confirmado" sino seguimos en "Facturado"
$reservaInvoices = $em->getRepository(ReservationInvoice::class)->findByReservationId($id);
$estanTodasRectificadas = true;
foreach ($reservaInvoices as $item){
$reservaInvoiceRect = $em->getRepository(ReservationInvoiceRec::class)->findOneByInvoiceToRec($item->getId());
if (empty($reservaInvoiceRect)){ $estanTodasRectificadas = false; } else { $estanTodasRectificadas = ($estanTodasRectificadas and true); }
}
if ($estanTodasRectificadas){
$newStatus = 'Confirmed';
} else {
$newStatus = $estadoInicial;
}
break;
case 'Confirmed':
// Se puede ir a cualquier estado
$newStatus = $estadoFinal;
break;
default:
// No hacer nada con el campo Status
$newStatus = $estadoInicial;
break;
}
$newStatus = $estadoFinal;
return $newStatus;
}
private function disponibilidadGreenPatio($id){
// $id Id de la reserva
$em = $this->getDoctrine()->getManager();
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$lounges = $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($id);
$services = $em->getRepository(ReservationService::class)->findByReservationId($id);
//Buscamos salas que tengamos entre el inicio y fin del evento a confirmar
//Sumamos un dia ya que por solicitud de Salva deseamos saber que eventos hay un dia antes y un dia despues
$fechaInicio = new \Datetime($reserva->getDateStart()->format('Y-m-d'));
$fechaInicio->sub(new \DateInterval("P1D"));
$fechaFin = new \Datetime($reserva->getDateEnd()->format('Y-m-d 23:59'));
$fechaFin->add(new \DateInterval("P1D"));
// Los eventos que debemos verificar son los Confirmados y Facturados
$parameters = array(
'reservaId' => $id,
'dateStart' => $fechaInicio,
'dateEnd' => $fechaFin,
'facturado' => 'Invoiced',
'confirmado' => 'Confirmed',
);
$dql = 'SELECT r
FROM GreenPatioBundle:Reservation r
INNER JOIN GreenPatioBundle:ReservationLoungeSimple l WITH r.id = l.idReservation
WHERE (r.status = :facturado OR r.status = :confirmado)
AND (not(r.id = :reservaId))
AND ((l.dateStart >= :dateStart and l.dateStart <= :dateEnd))';
$query = $em->createQuery($dql)->setParameters($parameters);
$reservationInDates = $query->getResult();
return $reservationInDates;
}
private function disponibilidadAvExpress($id){
// $id Id de la reserva de GreenPatio que vamos a confirmar
$em = $this->getDoctrine()->getManager();
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
//Sumamos un dia ya que por solicitud de Salva deseamos saber que eventos hay un dia antes y un dia despues
$fechaInicio = new \Datetime($reserva->getDateStart()->format('Y-m-d'));
$fechaInicio->sub(new \DateInterval("P1D"));
$fechaFin = new \Datetime($reserva->getDateEnd()->format('Y-m-d 23:59'));
$fechaFin->add(new \DateInterval("P1D"));
$parameters = array(
'dateStart' => $fechaInicio,
'dateEnd' => $fechaFin,
);
$dql = 'SELECT i
FROM AvexpressBundle:AveFiles i
WHERE ((i.dateStart <= :dateStart and i.dateEnd >= :dateEnd))
OR (i.dateEnd = :dateStart)
OR ((i.dateEnd > :dateStart and i.dateEnd <= :dateEnd))
OR (i.dateStart = :dateStart)
OR ((i.dateStart > :dateStart and i.dateStart <= :dateEnd))
OR (i.dateStart = :dateEnd)
ORDER BY i.dateStart ASC';
$query = $em->createQuery($dql)->setParameters($parameters);
$avFilesInDates = $query->getResult();
return $avFilesInDates;
}
private function sendMailLot($mailAddressFrom, $mailArrayTo, $mailSubject, $mailBody){
$em = $this->getDoctrine()->getManager();
$agent = $em->getRepository(User::class)->findOneByEmail($mailAddressFrom);
$replyTo = array();
foreach ($mailArrayTo as $item){
// Verificamos que los correos sean validos
if (filter_var($item,FILTER_VALIDATE_EMAIL)){
$replyTo[$item] = $item;
}
}
$agentMail = $mailAddressFrom;
$mailAgent = $agentMail;
//Se prepara el correo con los agentes a notificar
$firmGmail = $agent->getFirmGmail();
$data = array(
'body' => $mailBody,
'firm' => $firmGmail,
);
// EJECUTAR ENVIO DE ALERTA PARA EL AGENTE
$transporter = new \Swift_SmtpTransport();
$transporter->setHost('smtp.gmail.com')
->setEncryption('ssl')//ssl / tls
->setPort(465)// 465 / 587
->setUsername('desarrollo@develup.solutions')
->setPassword('MeDITeRRANeAN_Develup30102023#');
$mailer = new \Swift_Mailer($transporter);
$message = new \Swift_Message();
$message->setSubject($mailSubject)
->setSender($agentMail)
->setFrom(array("desarrollo@develup.solutions" => "System Mante 3.0"))
->setReplyTo($agentMail)
->setTo($replyTo)
->setBody(
$this->renderView(
'mail/structure-mail.html.twig',
array('data' => $data)
),
'text/html'
);
$mailer->send($message);
return true;
}
private function sendTelegramToConfirmReservation ( $id ){
// En ID tenemos el numero de la reserva de GreenPatio
$em = $this->getDoctrine()->getManager();
/* Obtengo usuario logueado */
$user_logueado = $this->get('security.token_storage')->getToken()->getUser();
$user_id = $user_logueado->getId();
$dataGP = $this->disponibilidadGreenPatio($id);
$dataAV = $this->disponibilidadAvExpress($id);
$reserva = $em->getRepository(Reservation::class)->findOneById($id);
$agente = $em->getRepository(User::class)->findOneById($user_id);
$salto0 = ' ';
$salto = '. .';
$saltoAlfa = ' ...................................................................................................................... ';
$mailBody = 'Solicitud de confirmación de reserva: '.$reserva->getTitle();
$mailBody = $mailBody. $salto0.'Estimado administrador,'
. $salto0.$agente->getName().' '. $agente->getLastName(). ' ha solicitado la confirmación de la reserva:'
. $salto0.$reserva->getTitle(). ' con ID: '.$reserva->getId()
. $salto0.'Este evento incia el día '.$reserva->getDateStart()->format('d/m/Y').' a las '.$reserva->getDateStart()->format('H:i'). ' y finaliza el día '.$reserva->getDateEnd()->format('d/m/Y').' a las '.$reserva->getDateEnd()->format('H:i')
. $saltoAlfa;
if (!empty($dataGP) or !empty($dataAV)){
if(!empty($dataGP)){
// Conflictos con otros eventos en Green Patio
$mailBody = $mailBody . 'Este evento coincide con la(s) reserva(s):'. $salto0.$salto0;
foreach ($dataGP as $res){
$mailBody = $mailBody . 'Reserva: '.$res->getTitle().', con ID: '.$res->getId().', fecha de inicio: '.$res->getDateStart()->format('d/m/Y').' a las '.$res->getDateStart()->format('H:i').', fecha de finalización: '.$res->getDateEnd()->format('d/m/Y').' a las '.$res->getDateEnd()->format('H:i'). $salto0.$salto0;
}
$mailBody = $mailBody . $saltoAlfa;
}
if(!empty($dataAV)){
// Conflictos con otros eventos de AvExpress
$mailBody = $mailBody . 'Este evento coincide en AV con el expediente(s):'. $salto0.$salto0;
foreach ($dataAV as $file){
$mailBody = $mailBody .$salto0.$salto0. 'Expediente: '.$file->getTitle().', con ID: '.$file->getId().', fecha de inicio: '.$file->getDateStart()->format('d/m/Y H:i').', fecha de finalización: '.$file->getDateEnd()->format('d/m/Y H:i');
}
}
}
$mailBody = $mailBody . $saltoAlfa.$saltoAlfa.'CALENDARIO GREEN PATIO: '.'https://inout.mante.solutions/reservations-greenpatio';
$mailBody = $mailBody . $salto.$salto.'SI deseo confirmar: '.'https://inout.mante.solutions/reservations-greenpatio/adminconfirmres/y/'.$id;
$mailBody = $mailBody . $salto.$salto.'NO deseo confirmar: '.'https://inout.mante.solutions/reservations-greenpatio/adminconfirmres/n/'.$id;
$mailBody = $mailBody . $salto.$salto.'PARA QUE LOS ENLACES FUNCIONEN, ANTES DEBES INCIAR SESION '.'https://dev.mante.solutions';
// $this->sendTelegram(20,$mailBody);
$this->sendTelegram(14,$mailBody);
return true;
}
private function sendTelegram ( $id, $text )
{
$em = $this->getDoctrine()->getManager();
$telegUser = $em->getRepository(MdvTelegramUser::class)->findOneByUserId($id);
if (empty($telegUser)){return true;}
$parameters = array(
'chat_id' => $telegUser->getChatId(),
'text' => $text,
);
$bot_token = $telegUser->getBotToken();
$url = "https://api.telegram.org/bot$bot_token/sendMessage";
if (!$curl = curl_init()){
exit();
}
curl_setopt($curl,CURLOPT_POST,true);
curl_setopt($curl,CURLOPT_POSTFIELDS,$parameters);
curl_setopt($curl,CURLOPT_URL,$url);
curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
$output = curl_exec($curl);
curl_close($curl);
return true;
}
private function notificacionReservasPorCotizar(){
// Se buscan las reservas en estado "Iniciado" y se notifica a todos los
// agentes de Green Patio, Solo se notifica 1 vez por dia
// Solo se mantendran las alertas de los ultimos 6 meses
$em = $this->getDoctrine()->getManager();
$alertas = $em->getRepository(ReservationAlertStarted::class)->findAll();
if (!empty($alertas)){ $ultimaAlerta = end($alertas); } else { $ultimaAlerta = null; }
$alertas = $em->getRepository(ReservationAlertStarted::class)->findAll();
$agentesGreenPatio = $em->getRepository(User::class)->findByUserrol(48);
$hoy = new DateTime('now');
$fechaLimite = new DateTime('now');
$fechaLimite->modify('-180 day');
if (!empty($ultimaAlerta)){ $mismaFecha = $ultimaAlerta->getAlertDate()->format('Ymd') == $hoy->format('Ymd'); } else { $mismaFecha = false; }
if ($mismaFecha){
// No se debe notificar, la ultima alerta es del dia de hoy
} else {
// Hay que notificar
if (empty($agentesGreenPatio)){ return true; }
$mailAddressFrom = $agentesGreenPatio[0]->getEmail();
$mailArrayTo = array();
foreach ($agentesGreenPatio as $agente){
$mailArrayTo[$agente->getEmail()] = $agente->getEmail();
}
$mailSubject = 'EXPENDIENTES POR COTIZAR';
$reservasIniciado = $em->getRepository(Reservation::class)->findByStatus('Iniciado');
$mailBody = null;
foreach ($reservasIniciado as $reserva){
$agenteReserva = $em->getRepository(User::class)->findOneById($reserva->getCreatedBy());
$agenteReserva = $agenteReserva->getName().' '.$agenteReserva->getLastName();
$mailBody = $mailBody. '<br>Evento: '.$reserva->getId().'<br>Nombre del Evento: '.$reserva->getTitle().'<br>Agente: '.$agenteReserva.'<br>Enlace al Evento: <a href="https://inout.mante.solutions/reservations-greenpatio/editsimple/'.$reserva->getId().'">"IR AL EXPEDIENTE"</a><br><br>';
}
if (!empty($mailBody)){
$this->sendMailLot($mailAddressFrom, $mailArrayTo, $mailSubject, $mailBody);
// Creamos la alerta del dia
$alertToday = new ReservationAlertStarted();
$alertToday->setAlertDate($hoy);
$alertToday->setMessage($mailBody);
$em->persist($alertToday);
$em->flush();
}
}
// Eliminamos las alertas con mas de 6 meses de antiguedad
foreach ($alertas as $alerta){
if ($alerta->getAlertDate() < $fechaLimite){
$em->remove($alerta);
$em->flush();
}
}
return true;
}
private function modificarBooleanoDeMeses( $loungeNewProfile, $dateStart, $dateEnd ){
// Se ajustan los booleanos segun las fechas dadas y se guarda la entidad
$em = $this->getDoctrine()->getManager();
$monthStart = intval($dateStart->format('m'));
$monthEnd = intval($dateEnd->format('m'));
for ($indice = 1; $indice <= 12; $indice++) {
if (($indice == $monthStart) or ($indice == $monthEnd) or (($indice > $monthStart) and ($indice < $monthEnd))){
switch ($indice){
case 1: $loungeNewProfile->setMonth1(true); break;
case 2: $loungeNewProfile->setMonth2(true); break;
case 3: $loungeNewProfile->setMonth3(true); break;
case 4: $loungeNewProfile->setMonth4(true); break;
case 5: $loungeNewProfile->setMonth5(true); break;
case 6: $loungeNewProfile->setMonth6(true); break;
case 7: $loungeNewProfile->setMonth7(true); break;
case 8: $loungeNewProfile->setMonth8(true); break;
case 9: $loungeNewProfile->setMonth9(true); break;
case 10: $loungeNewProfile->setMonth10(true); break;
case 11: $loungeNewProfile->setMonth11(true); break;
case 12: $loungeNewProfile->setMonth12(true); break;
default: break;
}
} else {
switch ($indice){
case 1: $loungeNewProfile->setMonth1(false); break;
case 2: $loungeNewProfile->setMonth2(false); break;
case 3: $loungeNewProfile->setMonth3(false); break;
case 4: $loungeNewProfile->setMonth4(false); break;
case 5: $loungeNewProfile->setMonth5(false); break;
case 6: $loungeNewProfile->setMonth6(false); break;
case 7: $loungeNewProfile->setMonth7(false); break;
case 8: $loungeNewProfile->setMonth8(false); break;
case 9: $loungeNewProfile->setMonth9(false); break;
case 10: $loungeNewProfile->setMonth10(false); break;
case 11: $loungeNewProfile->setMonth11(false); break;
case 12: $loungeNewProfile->setMonth12(false); break;
default: break;
}
}
}
$loungeNewProfile->setDateStart($dateStart);
$loungeNewProfile->setDateEnd($dateEnd);
try {
$em->persist($loungeNewProfile);
$em->flush();
// $event = 'The Item has been created.';
// $successMessage = $this->translator->trans($event);
// $this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e) {
$event = 'An error occurred: ' . $e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
return true;
}
private function verificarPreciosCoincidiendo( $loungeNewProfile ){
// Se buscan posibles coincidencias de precios activos con el nuevo precio que se ha creado
$em = $this->getDoctrine()->getManager();
$parameters = array(
'id' => $loungeNewProfile->getId(),
'loungeId' => $loungeNewProfile->getLoungeId(),
'fechaInicio' => $loungeNewProfile->getDateStart(),
'fechaFin' => $loungeNewProfile->getDateEnd(),
'priceIsActive' => true,
);
$dql = 'SELECT i
FROM GreenPatioBundle:ReservationLoungeProfile i
WHERE i.id <> :id and i.loungeId = :loungeId and i.priceIsActive = :priceIsActive and
((i.dateStart BETWEEN :fechaInicio AND :fechaFin) or (i.dateEnd BETWEEN :fechaInicio AND :fechaFin) or
(:fechaInicio BETWEEN i.dateStart AND i.dateEnd) or (:fechaFin BETWEEN i.dateStart AND i.dateEnd))';
$query = $em->createQuery($dql)->setParameters($parameters);
$coincidencias = $query->getResult();
if (!empty($coincidencias)){ array_unshift($coincidencias, $loungeNewProfile); }
return $coincidencias;
}
private function duplicarEntidad( $loungeNewProfile, $loungeProfile, $dateStart, $dateEnd ){
// Se copian todos los valores de la entidad $loungeProfile en $loungeNewProfile
$em = $this->getDoctrine()->getManager();
$loungeNewProfile->setLoungeId($loungeProfile->getLoungeId());
$loungeNewProfile->setPeriodId($loungeProfile->getPeriodId());
$loungeNewProfile->setPrice($loungeProfile->getPrice());
$loungeNewProfile->setDescription($loungeProfile->getDescription());
$loungeNewProfile->setCreatedId($loungeProfile->getCreatedId());
$loungeNewProfile->setCreatedAt($loungeProfile->getCreatedAt());
$loungeNewProfile->setUpdatedId($loungeProfile->getUpdatedId());
$loungeNewProfile->setUpdatedAt($loungeProfile->getUpdatedAt());
$loungeNewProfile->setYear1($loungeProfile->getYear1());
$loungeNewProfile->setYear2($loungeProfile->getYear2());
$loungeNewProfile->setMonth1($loungeProfile->getMonth1());
$loungeNewProfile->setMonth2($loungeProfile->getMonth2());
$loungeNewProfile->setMonth3($loungeProfile->getMonth3());
$loungeNewProfile->setMonth4($loungeProfile->getMonth4());
$loungeNewProfile->setMonth5($loungeProfile->getMonth5());
$loungeNewProfile->setMonth6($loungeProfile->getMonth6());
$loungeNewProfile->setMonth7($loungeProfile->getMonth7());
$loungeNewProfile->setMonth8($loungeProfile->getMonth8());
$loungeNewProfile->setMonth9($loungeProfile->getMonth9());
$loungeNewProfile->setMonth10($loungeProfile->getMonth10());
$loungeNewProfile->setMonth11($loungeProfile->getMonth11());
$loungeNewProfile->setMonth12($loungeProfile->getMonth12());
$loungeNewProfile->setDay1($loungeProfile->getDay1());
$loungeNewProfile->setDay2($loungeProfile->getDay2());
$loungeNewProfile->setDay3($loungeProfile->getDay3());
$loungeNewProfile->setDay4($loungeProfile->getDay4());
$loungeNewProfile->setDay5($loungeProfile->getDay5());
$loungeNewProfile->setDay6($loungeProfile->getDay6());
$loungeNewProfile->setDay7($loungeProfile->getDay7());
$loungeNewProfile->setTitle($loungeProfile->getTitle());
$loungeNewProfile->setPriceIsActive($loungeProfile->getPriceIsActive());
// En la funcion modificarBooleanoDeMeses se establecen los dateStart y dateEnd
// $loungeNewProfile->setDateStart($dateStart);
// $loungeNewProfile->setDateEnd($dateEnd);
if (empty($dateStart) or empty($dateEnd)){ return true; }
try {
$em->persist($loungeNewProfile);
$em->flush();
// $event = 'The Item has been created.';
// $successMessage = $this->translator->trans($event);
// $this->addFlash('mensajereservation', $successMessage);
} catch (\Exception $e) {
$event = 'An error occurred: ' . $e->getMessage();
$errorMessage = $this->translator->trans($event);
$this->addFlash('mensajereservationerror', $errorMessage);
}
return true;
}
private function verificarCambioCliente( $idRes ){
// Solo se puede cambiar el cliente si no hay un documento emitido (factura, factura de deposito)
$em = $this->getDoctrine()->getManager();
$resInv = $em->getRepository(ReservationInvoice::class)->findByReservationId($idRes);
return empty($resInv);
}
private function reordenarSalas( $number, $idLounge ){
// number es el numero de la sala editada
$em = $this->getDoctrine()->getManager();
$number--;
$parameters = array(
'idLounge' => $idLounge,
'rankLounge' => $number,
);
$dql = 'SELECT i
FROM GreenPatioBundle:ReservationLoungeDetails i
WHERE i.rankLounge > :rankLounge AND i.id <> :idLounge';
$query = $em->createQuery($dql)->setParameters($parameters);
$salasParaReordenar = $query->getResult();
foreach ($salasParaReordenar as $sala) {
$sala->setRankLounge(($sala->getRankLounge() + 1));
$em->persist($sala);
$em->flush();
}
return empty($resInv);
}
private function laReservaEsConfirmable( $id ){
// Una reserva se puede confirmar solo cuando tiene un deposito realizado
$em = $this->getDoctrine()->getManager();
$depositos = $em->getRepository(ReservationDeposit::class)->findBy(array('reservationId' => $id, 'isDone' => true));
return !empty($depositos);
}
private function laReservaEsCotizable( $id ){
// Una reserva se puede cotizar solo cuando tiene al menos una sala agregada
$em = $this->getDoctrine()->getManager();
$salas = $em->getRepository(ReservationLoungeSimple::class)->findBy(array('idReservation' => $id));
// return !empty($salas);
return true; // Se pidio que siempre se sincronizara con Av
}
private function notificacionReservasPendientesDelSegundoDeposito(){
// Se buscan las reservas con depositos y se notifica a todos los
// agentes de Green Patio si no tienen el segundo deposito y faltan 30 días
// o menos para el evento, Solo se notifica 1 vez por dia
$em = $this->getDoctrine()->getManager();
$depositosHechos = $em->getRepository(ReservationDeposit::class)->findByIsDone(true);
$arrayDepositos = array();
$arrayReservasPemdientesSegunDepositos = array();
$today = new \Datetime('now');
$todayPlusMonth = new \Datetime('+ 30 days');
// Se agrupan los depositos por reservas
foreach ($depositosHechos as $item){
$arrayDepositos[$item->getReservationId()][] = $item;
}
foreach ($arrayDepositos as $item){
if (sizeof($item)<2){
// Solo nos interesan reservas con un deposito
$reserva = $em->getRepository(Reservation::class)->findOneById($item[0]->getReservationId());
if ($reserva->getStatus() == 'Confirmed'){
// Solo nos interesan reservas confirmadas
if (($reserva->getDateStart() < $todayPlusMonth) and ($reserva->getDateStart()>$today)){
// Solo nos interesan reservas que inician en 30 dias
$arrayReservasPemdientesSegunDepositos[] = $reserva;
}
}
}
}
$alertas = $em->getRepository(ReservationAlertSecondDeposit::class)->findAll();
if (!empty($alertas)){ $ultimaAlerta = end($alertas); } else { $ultimaAlerta = null; }
$agentesGreenPatio = $em->getRepository(User::class)->findByUserrol(48);
$hoy = new DateTime('now');
$fechaLimite = new DateTime('now');
$fechaLimite->modify('-180 day');
if (!empty($ultimaAlerta)){ $mismaFecha = $ultimaAlerta->getAlertDate()->format('Ymd') == $hoy->format('Ymd'); } else { $mismaFecha = false; }
if ($mismaFecha){
// No se debe notificar, la ultima alerta es del dia de hoy
} else {
// Hay que notificar
if (empty($agentesGreenPatio)){ return true; }
$mailAddressFrom = $agentesGreenPatio[0]->getEmail();
$mailArrayTo = array();
foreach ($agentesGreenPatio as $agente){
$mailArrayTo[$agente->getEmail()] = $agente->getEmail();
}
$mailSubject = 'EXPENDIENTES CON DEPOSITOS PENDIENTES';
$reservasIniciado = $arrayReservasPemdientesSegunDepositos;
$mailBody = null;
foreach ($reservasIniciado as $reserva){
$agenteReserva = $em->getRepository(User::class)->findOneById($reserva->getCreatedBy());
$agenteReserva = $agenteReserva->getName().' '.$agenteReserva->getLastName();
$mailBody = $mailBody. '<br>Evento: '.$reserva->getId().'<br>Nombre del Evento: '.$reserva->getTitle().'<br>Agente: '.$agenteReserva.'<br>Enlace al Evento: <a href="https://inout.mante.solutions/reservations-greenpatio/editsimple/'.$reserva->getId().'">"IR AL EXPEDIENTE"</a><br><br>';
}
if (!empty($mailBody)){
$this->sendMailLot($mailAddressFrom, $mailArrayTo, $mailSubject, $mailBody);
// Creamos la alerta del dia
$alertToday = new ReservationAlertSecondDeposit();
$alertToday->setAlertDate($hoy);
$alertToday->setMessage($mailBody);
$em->persist($alertToday);
$em->flush();
}
}
// Eliminamos las alertas con mas de 6 meses de antiguedad
foreach ($alertas as $alerta){
if ($alerta->getAlertDate() < $fechaLimite){
$em->remove($alerta);
$em->flush();
}
}
return true;
}
};