src/MDS/GreenPatioBundle/Controller/ReservationsController.php line 8161

Open in your IDE?
  1. <?php
  2. namespace App\MDS\GreenPatioBundle\Controller;
  3. use App\Entity\Client;
  4. use App\Entity\ClientContact;
  5. use App\Entity\Supplier;
  6. use App\Entity\User;
  7. use App\Entity\HtFile;
  8. use App\MDS\AvexpressBundle\Entity\AveFiles;
  9. use App\Entity\WidgetNotes;
  10. use App\Form\WidgetNotesType;
  11. use App\MDS\DevelupBundle\Entity\MdvTelegramUser;
  12. use App\MDS\EventsBundle\Entity\Proposal;
  13. use App\MDS\GreenPatioBundle\Entity\CvrReservationInvoice;
  14. use App\MDS\GreenPatioBundle\Entity\CvrReservationInvoiceRec;
  15. use App\MDS\GreenPatioBundle\Entity\ExternalUser;
  16. use App\MDS\GreenPatioBundle\Entity\Reservation;
  17. use App\MDS\GreenPatioBundle\Entity\ReservationDeposit;
  18. use App\MDS\GreenPatioBundle\Entity\ReservationLounge;
  19. use App\MDS\GreenPatioBundle\Entity\ReservationLoungeDescription;
  20. use App\MDS\GreenPatioBundle\Entity\ReservationLoungeDetails;
  21. use App\MDS\GreenPatioBundle\Entity\ReservationLoungePicture;
  22. use App\MDS\GreenPatioBundle\Entity\ReservationLoungeProfile;
  23. use App\MDS\GreenPatioBundle\Entity\ReservationLoungeSimple;
  24. use App\MDS\GreenPatioBundle\Entity\ReservationLoungeVideo;
  25. use App\MDS\GreenPatioBundle\Entity\ReservationMailAlertClient;
  26. use App\MDS\GreenPatioBundle\Entity\ReservationPeriod;
  27. use App\MDS\GreenPatioBundle\Entity\ReservationService;
  28. use App\MDS\GreenPatioBundle\Entity\ReservationVisit;
  29. use App\MDS\GreenPatioBundle\Entity\ReservationAlertStarted;
  30. use App\MDS\GreenPatioBundle\Entity\ReservationAlertSecondDeposit;
  31. use App\MDS\GreenPatioBundle\Entity\ReservationInvoice;
  32. use App\MDS\GreenPatioBundle\Entity\ReservationInvoiceDepositItems;
  33. use App\MDS\GreenPatioBundle\Entity\ReservationInvoiceItems;
  34. use App\MDS\GreenPatioBundle\Entity\ReservationInvoiceRec;
  35. use App\MDS\GreenPatioBundle\Entity\ReservationPaymentsClient;
  36. use App\MDS\GreenPatioBundle\Form\ReservationLoungeDetailsType;
  37. use App\MDS\GreenPatioBundle\Form\ReservationLoungeProfileType;
  38. use App\MDS\GreenPatioBundle\Form\ReservationLoungeType;
  39. use App\MDS\GreenPatioBundle\Form\ReservationPeriodType;
  40. use App\MDS\GreenPatioBundle\Form\ReservationType;
  41. use Symfony\Component\Routing\Annotation\Route;
  42. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  43. use Symfony\Component\HttpFoundation\Request;
  44. use Symfony\Component\HttpFoundation\Session\Session;
  45. use Symfony\Component\HttpFoundation\JsonResponse;
  46. use Google_Client;
  47. use Google_Service_Calendar;
  48. use Psr\Log\LoggerInterface;
  49. use DateTime;
  50. use DatePeriod;
  51. use DateInterval;
  52. use Symfony\Contracts\Translation\TranslatorInterface;
  53. use Doctrine\ORM\EntityManagerInterface;
  54. class ReservationsController extends AbstractController
  55. {
  56.     private $translator;
  57.     protected $googleCalendar;
  58.     public function __construct(TranslatorInterface $translator)
  59.     {
  60. //        $redirect_uri='urn:ietf:wg:oauth:2.0:oob';
  61.         $redirect_uri 'https://' $_SERVER['HTTP_HOST']. '/calendar/token';
  62.         $googleCalendar = new Google_Client();
  63.         $googleCalendar->setApplicationName('Google Calendar API PHP Quickstart');
  64.         //campos a extraer de la base de datos User
  65.         $googleCalendar->setClientId('2790497987-57qc3vu4pr7vb0s8phpub2me58pe34lb.apps.googleusercontent.com');
  66.         $googleCalendar->setClientSecret('nj2C7unaTO68DRhyORsyipSj');
  67.         //fin campos user
  68. //        $api_key = "AIzaSyBR84cS1IU2BPvk5V3VnbqdkJESlv440Ac";
  69. //        $client->setDeveloperKey($api_key);
  70.         $googleCalendar->setRedirectUri($redirect_uri);
  71.         $googleCalendar->addScope(Google_Service_Calendar::CALENDAR);
  72.         $guzzleClient = new \GuzzleHttp\Client(array('curl' => array(CURLOPT_SSL_VERIFYPEER => false)));
  73.         $googleCalendar->setHttpClient($guzzleClient);
  74.         $this->googleCalendar $googleCalendar;
  75.         $this->translator $translator;
  76.     }
  77.     /**
  78.      * @Route("/connectGoogle", name="homepage_Connect_Google")
  79.      */
  80.     public function indexConnectGoogleAction(Request $request) {
  81.         $session = new Session();
  82.         $token=$session->get('tokenGoogleCalendar');
  83.         if (!is_null($token)) {
  84.             $this->googleCalendar->setAccessToken($token);
  85.         }
  86.         // If there is no previous token or it's expired.
  87.         $data=array();
  88.         if ($this->googleCalendar->isAccessTokenExpired()) {
  89.             // Refresh the token if possible, else fetch a new one.
  90.             if ($this->googleCalendar->getRefreshToken()) {
  91.                 $this->googleCalendar->fetchAccessTokenWithRefreshToken($this->googleCalendar->getRefreshToken());
  92.             } else {
  93.                 // Request authorization from the user.
  94.                 $authUrl $this->googleCalendar->createAuthUrl();
  95.                 return $this->redirect($authUrl);
  96.             }
  97.         }
  98.         return $this->redirectToRoute('homepage');
  99.     }
  100.     /**
  101.      * @Route("/add",  name="reservations_greenpatio_add")
  102.      */
  103.     public function addReservationActionRequest $request)
  104.     {
  105.         return $this->redirectToRoute('reservations_greenpatio_add_simple');
  106.     }
  107.     /**
  108.      * @Route("/create", name="reservations_greenpatio_create")
  109.      */
  110.     public function createAction(Request $request)
  111.     {
  112.         $em $this->getDoctrine()->getManager();
  113.         $reserva = new Reservation();
  114.         $form $this->createReservationCreateForm($reserva);
  115.         $form->handleRequest($request);
  116.         /* Obtengo usuario logueado */
  117.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  118.         $user_id $user_logueado->getId();
  119.         $hoy = new \DateTime("now"NULL);
  120.         // Fin: Verificamos la disponibilidad del horario de reserva
  121.         if($form->isValid())
  122.         {
  123.             $reserva->setUpdatedBy($user_id);
  124.             $reserva->setUpdatedAt($hoy);
  125.             // El proveedor de catering no es obligatorio
  126.             if (is_null($reserva->getCateringName())){
  127.                 $reserva->setSupplier(null);
  128.                 $reserva->setCateringName(null);
  129.             } else {
  130.                 $reserva->setSupplier($reserva->getCateringName()->getId());
  131.                 $reserva->setCateringName($reserva->getCateringName()->getName());
  132.             }
  133.             if (!empty($reserva->getClient())){
  134.                 $reserva->setClient($reserva->getClient()->getId());
  135.             }
  136.             $reserva->setCreatedAt($hoy);
  137.             $reserva->setCreatedBy($user_id);
  138.             $reserva->setDateStart(new \DateTime('2078-01-01'));
  139.             $reserva->setDateEnd(new \DateTime('2000-01-01'));
  140.             if(is_null($reserva->getStatus())){$reserva->setStatus('Cotizado');}
  141.             if(is_null($reserva->getPriority()) or empty($reserva->getPriority()) or ($reserva->getPriority() == 'Auto')){
  142.                 $reserva->setPriority(1);
  143.             } else {
  144.                 // Se ha establecido una prioridad y todas las prioridades que coincidan con este evento deben ser alteradas
  145.                 // PENDIENTE A HABLAR CON RAFA
  146.             }
  147.             // Buscamos la menor fecha de sala para el inicio y la mayor para determinar el fin del evento
  148.             $salas $request->request->get('salas');
  149.             // crea una reserva sin sala. que fechas le pongo al evento
  150.             if (!is_null($salas)) {
  151.                 foreach ($salas as $sala) {
  152.                     if (sizeof($sala['mountingHourStart']) != 5){
  153.                         // Necesitamos la hora en formato HH:mm
  154.                         switch (strlen($sala['mountingHourStart'])) {
  155.                             case 0:
  156.                                 // Vacio
  157.                                 $sala['mountingHourStart'] = '00:00';
  158.                                 break;
  159.                             case 1:
  160.                                 // H  -> 0H:00
  161.                                 if (is_numeric($sala['mountingHourStart'])){
  162.                                     $sala['mountingHourStart'] = '0'.$sala['mountingHourStart'].':00';
  163.                                 } else {
  164.                                     $sala['mountingHourStart'] = '00:00';
  165.                                 }
  166.                                 break;
  167.                             case 2:
  168.                                 // HH  -> HH:00
  169.                                 $sala['mountingHourStart'] = $sala['mountingHourStart'].':00';
  170.                                 break;
  171.                             case 3:
  172.                                 // Hmm  -> 0H:mm
  173.                                 $sala['mountingHourStart'] = '0'.$sala['mountingHourStart'];
  174.                                 break;
  175.                             case 4:
  176.                                 // HHmm  -> HH:mm
  177.                                 $sala['mountingHourStart'] = substr($sala['mountingHourStart'], 02) . ':' substr($sala['mountingHourStart'], 22);
  178.                                 break;
  179.                             default:
  180.                                 // XXXXyyy
  181.                                 $sala['mountingHourStart'] = '00:00';
  182.                                 break;
  183.                         }
  184.                     }
  185.                     if (sizeof($sala['removalHourEnd']) != 5){
  186.                         // Necesitamos la hora en formato HH:mm
  187.                         switch (strlen($sala['removalHourEnd'])) {
  188.                             case 0:
  189.                                 // Vacio
  190.                                 $sala['removalHourEnd'] = '00:00';
  191.                                 break;
  192.                             case 1:
  193.                                 // H  -> 0H:00
  194.                                 if (is_numeric($sala['removalHourEnd'])){
  195.                                     $sala['removalHourEnd'] = '0'.$sala['removalHourEnd'].':00';
  196.                                 } else {
  197.                                     $sala['removalHourEnd'] = '00:00';
  198.                                 }
  199.                                 break;
  200.                             case 2:
  201.                                 // HH  -> HH:00
  202.                                 $sala['removalHourEnd'] = $sala['removalHourEnd'].':00';
  203.                                 break;
  204.                             case 3:
  205.                                 // Hmm  -> 0H:mm
  206.                                 $sala['removalHourEnd'] = '0'.$sala['removalHourEnd'];
  207.                                 break;
  208.                             case 4:
  209.                                 // HHmm  -> HH:mm
  210.                                 $sala['removalHourEnd'] = substr($sala['removalHourEnd'], 02) . ':' substr($sala['removalHourEnd'], 22);
  211.                                 break;
  212.                             default:
  213.                                 // XXXXyyy
  214.                                 $sala['removalHourEnd'] = '00:00';
  215.                                 break;
  216.                         }
  217.                     }
  218.                     // Verificamos el montaje
  219.                     if ($reserva->getDateStart() > (new \DateTime($sala['mountingDate']))) {
  220.                         $reserva->setDateStart((new \DateTime($sala['mountingDate']." ".$sala['mountingHourStart'])));
  221.                     }
  222.                     if ($reserva->getDateStart() > (new \DateTime($sala['dateStart']))) {
  223.                         $reserva->setDateStart((new \DateTime($sala['dateStart']." ".$sala['hourStart'])));
  224.                     }
  225.                     if ($reserva->getDateEnd() < (new \DateTime($sala['dateEnd']))) {
  226.                         $reserva->setDateEnd((new \DateTime($sala['dateEnd']." ".$sala['hourEnd'])));
  227.                     }
  228.                     //Verificamos el desmontaje
  229.                     if ($reserva->getDateEnd() < (new \DateTime($sala['removalDate']))) {
  230.                         $reserva->setDateEnd((new \DateTime($sala['removalDate']." ".$sala['removalHourEnd'])));
  231.                     }
  232.                 }
  233.             } else {
  234.                 // No hay salas, se asigna a la reserva la fecha del dia actual
  235.                 $reserva->setDateStart((new \DateTime()));
  236.                 $reserva->setDateEnd((new \DateTime()));
  237.             }
  238.             // INICIO: se determina el numero de opcion o prioridad que tiene el evento
  239.             $salasTemp =$request->request->get('salas');
  240.             // Pendiente reunion con Rafa (se determina el numero de opcion o prioridad que tiene el evento)
  241.             // FIN: se determina el numero de opcion o prioridad que tiene el evento
  242.             try{
  243.                 $em->persist($reserva);
  244.                 $em->flush();
  245.                 $event 'The Reservation has been created.';
  246.                 $successMessage $this->translator->trans($event);
  247.                 $this->addFlash('mensajereservation'$successMessage);
  248.             } catch (\Exception $e){
  249.                 $event 'An error occurred: '.$e->getMessage();
  250.                 $errorMessage $this->translator->trans($event);
  251.                 $this->addFlash('mensajereservationerror'$errorMessage);
  252.             }
  253.         } else {
  254.             $errorMessagebase $this->translator->trans('Error, some fields are empty');
  255.             $this->addFlash('mensajetracingerror'$errorMessagebase);
  256.             $periods $em->getRepository(ReservationPeriod::class)->findAll();
  257.             return $this->render('MDS/GreenPatioBundle/reservations/add-reservations.html.twig',
  258.                 array(
  259.                     'form' => $form->createView(),
  260.                     'periods' => $periods,
  261.                 )
  262.             );
  263.         }
  264.         /* Fin Gestión de eventos en Log */
  265.         $salas =$request->request->get('salas');
  266.         // Inicio: Verificamos que hayan metido bien las salas, toda sala para poder facturar debe tener IdLounge, Fecha de inicio y fecha de fin
  267.         for ($i=0$i<sizeof($salas); $i++){
  268.             if (empty($salas[$i]['idLounge']) or empty($salas[$i]['dateStart']) or empty($salas[$i]['dateEnd'])){
  269.                 unset($salas[$i]);
  270.             }
  271.         }
  272.         // Fin: Verificamos que hayan metido bien las salas, toda sala para poder facturar debe tener IdLounge, Fecha de inicio y fecha de fin
  273.         if (!is_null($reserva->getId())){
  274.             if (!is_null($salas)) {
  275.                 foreach ($salas as $sala) {
  276.                     // Se guarda una sala si hay una sala seleccionada
  277.                     // IdLounge es el ID en la tabla reservation profile
  278.                     if (!empty(($sala['idLounge']))) {
  279.                         // consulto la tabla de precios para obtener el id de salon desde el id de precios
  280.                         $queryProfile $em->getRepository(ReservationLoungeProfile::class)->findOneById($sala['idLounge']);
  281.                         $reservaLounge = new ReservationLounge();
  282.                         $reservaLounge->setIdLounge($queryProfile->getLoungeId());
  283.                         $reservaLounge->setLoungeName(($em->getRepository(ReservationLoungeDetails::class)->findOneById($queryProfile->getLoungeId()))->getName());
  284.                         $reservaLounge->setCreatedAt($hoy);
  285.                         $reservaLounge->setCreatedBy($user_id);
  286.                         $reservaLounge->setUpdatedAt($hoy);
  287.                         $reservaLounge->setUpdatedBy($user_id);
  288.                         $reservaLounge->setIdReservation($reserva->getId());
  289.                         $reservaLounge->setDateStart(new \DateTime($sala['dateStart']." ".$sala['hourStart']));
  290.                         $reservaLounge->setDateEnd(new \DateTime($sala['dateEnd']." ".$sala['hourEnd']));
  291.                         $reservaLounge->setHourStart(substr($sala['hourStart'], 02));
  292.                         $reservaLounge->setMinStart(substr($sala['hourStart'], 32));
  293.                         $reservaLounge->setHourEnd(substr($sala['hourEnd'], 02));
  294.                         $reservaLounge->setMinEnd(substr($sala['hourEnd'], 32));
  295.                         $reservaLounge->setServicePrice($sala['servicePrice']);
  296.                         // el service name es la descripcion
  297.                         $reservaLounge->setServiceName($sala['serviceName']);
  298.                         $reservaLounge->setIdPeriod($sala['idLoungePrice']);
  299.                         if (empty($sala['servicePax'])){$reservaLounge->setPax(null);} else {$reservaLounge->setPax($sala['servicePax']);}
  300.                         $reservaLounge->setMounting($sala['serviceMounting']);
  301.                         if (empty($sala['mountingPrice'])){$reservaLounge->setMountingPrice(0);} else {$reservaLounge->setMountingPrice($sala['mountingPrice']);}
  302.                         $reservaLounge->setMountingLapse($sala['mountingLapse']);
  303.                         switch (strlen($sala['mountingHourStart'])) {
  304.                             case 0:
  305.                                 // Vacio
  306.                                 $reservaLounge->setMountingHourStart('00');
  307.                                 $reservaLounge->setMountingMinStart('00');
  308.                                 break;
  309.                             case 1:
  310.                                 // H  -> 0H:00
  311.                                 if (is_numeric($sala['mountingHourStart'])){
  312.                                     $reservaLounge->setMountingHourStart('0'.$sala['mountingHourStart']);
  313.                                 } else {
  314.                                     $reservaLounge->setMountingHourStart('00');
  315.                                 }
  316.                                 $reservaLounge->setMountingMinStart('00');
  317.                                 break;
  318.                             case 2:
  319.                                 // HH  -> HH:00
  320.                                 $reservaLounge->setMountingHourStart($sala['mountingHourStart']);
  321.                                 $reservaLounge->setMountingMinStart('00');
  322.                                 break;
  323.                             case 3:
  324.                                 // Hmm  -> 0H:mm
  325.                                 $reservaLounge->setMountingHourStart('0'.substr($sala['mountingHourStart'], 01));
  326.                                 $reservaLounge->setMountingMinStart(substr($sala['mountingHourStart'], 12));
  327.                                 break;
  328.                             case 4:
  329.                                 // HHmm  -> HH:mm
  330.                                 $reservaLounge->setMountingHourStart(substr($sala['mountingHourStart'], 02));
  331.                                 $reservaLounge->setMountingMinStart(substr($sala['mountingHourStart'], 22));
  332.                                 break;
  333.                             case 5:
  334.                                 // HH:mm  -> HH:mm
  335.                                 $reservaLounge->setMountingHourStart(substr($sala['mountingHourStart'], 02));
  336.                                 $reservaLounge->setMountingMinStart(substr($sala['mountingHourStart'], 32));
  337.                                 break;
  338.                             default:
  339.                                 // XXXXyyy
  340.                                 $reservaLounge->setMountingHourStart('00');
  341.                                 $reservaLounge->setMountingMinStart('00');
  342.                                 break;
  343.                         }
  344.                         switch (strlen($sala['mountingHourEnd'])) {
  345.                             case 0:
  346.                                 // Vacio
  347.                                 $reservaLounge->setMountingHourEnd('00');
  348.                                 $reservaLounge->setMountingMinEnd('00');
  349.                                 break;
  350.                             case 1:
  351.                                 // H  -> 0H:00
  352.                                 if (is_numeric($sala['mountingHourEnd'])){
  353.                                     $reservaLounge->setMountingHourEnd('0'.$sala['mountingHourEnd']);
  354.                                 } else {
  355.                                     $reservaLounge->setMountingHourEnd('00');
  356.                                 }
  357.                                 $reservaLounge->setMountingMinEnd('00');
  358.                                 break;
  359.                             case 2:
  360.                                 // HH  -> HH:00
  361.                                 $reservaLounge->setMountingHourEnd($sala['mountingHourEnd']);
  362.                                 $reservaLounge->setMountingMinEnd('00');
  363.                                 break;
  364.                             case 3:
  365.                                 // Hmm  -> 0H:mm
  366.                                 $reservaLounge->setMountingHourEnd('0'.substr($sala['mountingHourEnd'], 01));
  367.                                 $reservaLounge->setMountingMinEnd(substr($sala['mountingHourEnd'], 12));
  368.                                 break;
  369.                             case 4:
  370.                                 // HHmm  -> HH:mm
  371.                                 $reservaLounge->setMountingHourEnd(substr($sala['mountingHourEnd'], 02));
  372.                                 $reservaLounge->setMountingMinEnd(substr($sala['mountingHourEnd'], 22));
  373.                                 break;
  374.                             case 5:
  375.                                 // HH:mm  -> HH:mm
  376.                                 $reservaLounge->setMountingHourEnd(substr($sala['mountingHourEnd'], 02));
  377.                                 $reservaLounge->setMountingMinEnd(substr($sala['mountingHourEnd'], 32));
  378.                                 break;
  379.                             default:
  380.                                 // XXXXyyy
  381.                                 $reservaLounge->setMountingHourEnd('00');
  382.                                 $reservaLounge->setMountingMinEnd('00');
  383.                                 break;
  384.                         }
  385.                         $reservaLounge->setMountingDate(new \DateTime($sala['mountingDate'].' '.$reservaLounge->getMountingHourStart().':'.$reservaLounge->getMountingMinStart()));
  386.                         $reservaLounge->setRemovalLapse($sala['removalLapse']);
  387.                         $reservaLounge->setRemovalDate(new \DateTime($sala['removalDate']));
  388.                         switch (strlen($sala['removalHourStart'])) {
  389.                             case 0:
  390.                                 // Vacio
  391.                                 $reservaLounge->setRemovalHourStart('00');
  392.                                 $reservaLounge->setRemovalMinStart('00');
  393.                                 break;
  394.                             case 1:
  395.                                 // H  -> 0H:00
  396.                                 if (is_numeric($sala['removalHourStart'])){
  397.                                     $reservaLounge->setRemovalHourStart('0'.$sala['removalHourStart']);
  398.                                 } else {
  399.                                     $reservaLounge->setRemovalHourStart('00');
  400.                                 }
  401.                                 $reservaLounge->setRemovalMinStart('00');
  402.                                 break;
  403.                             case 2:
  404.                                 // HH  -> HH:00
  405.                                 $reservaLounge->setRemovalHourStart($sala['removalHourStart']);
  406.                                 $reservaLounge->setRemovalMinStart('00');
  407.                                 break;
  408.                             case 3:
  409.                                 // Hmm  -> 0H:mm
  410.                                 $reservaLounge->setRemovalHourStart('0'.substr($sala['removalHourStart'], 01));
  411.                                 $reservaLounge->setRemovalMinStart(substr($sala['removalHourStart'], 12));
  412.                                 break;
  413.                             case 4:
  414.                                 // HHmm  -> HH:mm
  415.                                 $reservaLounge->setRemovalHourStart(substr($sala['removalHourStart'], 02));
  416.                                 $reservaLounge->setRemovalMinStart(substr($sala['removalHourStart'], 22));
  417.                                 break;
  418.                             case 5:
  419.                                 // HH:mm  -> HH:mm
  420.                                 $reservaLounge->setRemovalHourStart(substr($sala['removalHourStart'], 02));
  421.                                 $reservaLounge->setRemovalMinStart(substr($sala['removalHourStart'], 32));
  422.                                 break;
  423.                             default:
  424.                                 // XXXXyyy
  425.                                 $reservaLounge->setRemovalHourStart('00');
  426.                                 $reservaLounge->setRemovalMinStart('00');
  427.                                 break;
  428.                         }
  429.                         switch (strlen($sala['removalHourEnd'])) {
  430.                             case 0:
  431.                                 // Vacio
  432.                                 $reservaLounge->setRemovalHourEnd('00');
  433.                                 $reservaLounge->setRemovalMinEnd('00');
  434.                                 break;
  435.                             case 1:
  436.                                 // H  -> 0H:00
  437.                                 if (is_numeric($sala['removalHourEnd'])){
  438.                                     $reservaLounge->setRemovalHourEnd('0'.$sala['removalHourEnd']);
  439.                                 } else {
  440.                                     $reservaLounge->setRemovalHourEnd('00');
  441.                                 }
  442.                                 $reservaLounge->setRemovalMinEnd('00');
  443.                                 break;
  444.                             case 2:
  445.                                 // HH  -> HH:00
  446.                                 $reservaLounge->setRemovalHourEnd($sala['removalHourEnd']);
  447.                                 $reservaLounge->setRemovalMinEnd('00');
  448.                                 break;
  449.                             case 3:
  450.                                 // Hmm  -> 0H:mm
  451.                                 $reservaLounge->setRemovalHourEnd('0'.substr($sala['removalHourEnd'], 01));
  452.                                 $reservaLounge->setRemovalMinEnd(substr($sala['removalHourEnd'], 12));
  453.                                 break;
  454.                             case 4:
  455.                                 // HHmm  -> HH:mm
  456.                                 $reservaLounge->setRemovalHourEnd(substr($sala['removalHourEnd'], 02));
  457.                                 $reservaLounge->setRemovalMinEnd(substr($sala['removalHourEnd'], 22));
  458.                                 break;
  459.                             case 5:
  460.                                 // HH:mm  -> HH:mm
  461.                                 $reservaLounge->setRemovalHourEnd(substr($sala['removalHourEnd'], 02));
  462.                                 $reservaLounge->setRemovalMinEnd(substr($sala['removalHourEnd'], 32));
  463.                                 break;
  464.                             default:
  465.                                 // XXXXyyy
  466.                                 $reservaLounge->setRemovalHourEnd('00');
  467.                                 $reservaLounge->setRemovalMinEnd('00');
  468.                                 break;
  469.                         }
  470.                         if (empty($sala['removalPrice'])){$reservaLounge->setRemovalPrice(0);} else {$reservaLounge->setRemovalPrice($sala['removalPrice']);}
  471.                         // INICIO: Verificamos si choca con otra reserva
  472.                         // Si sucede se usara el booleano OtherPriceSave para indicarlo
  473.                         $resFun $this->VerificarCoflictosEnSalas($reservaLounge);
  474.                         $tempBool $resFun['bool'];
  475.                         if($tempBool){
  476.                             $reservaLounge->setOtherPriceSave(true);
  477.                             $reserva->setPriority($resFun['priority']);
  478.                             // Se debe modificar la prioridad de la nueva reserva, que ya se habia guardado previamente
  479.                             try {
  480.                                 $em->persist($reserva);
  481.                                 $em->flush();
  482.                             } catch (\Exception $e) {
  483.                                 $event 'Error al actualizar la prioridad del evento ' $e->getMessage();
  484.                                 /* Para el usuario */
  485.                                 $errorMessage $this->translator->trans($event);
  486.                                 $this->addFlash('mensajereservationerror'$errorMessage);
  487.                             }
  488.                         } else {
  489.                             $reservaLounge->setOtherPriceSave(false);
  490.                         }
  491.                         // FIN: Verificamos si choca con otra reserva
  492.                         // INICIO: Si es necesario se actualizan fechas de inicio y fin usando dia de montaje y desmontaje
  493.                         if (($reservaLounge->getMountingDate() < $reserva->getDateStart()) or ($reserva->getDateEnd() < $reservaLounge->getRemovalDate())){
  494.                             if ($reservaLounge->getMountingDate() < $reserva->getDateStart()){
  495.                                 $reserva->setDateStart($reservaLounge->getMountingDate());
  496.                             }
  497.                             if ($reserva->getDateEnd() < $reservaLounge->getRemovalDate()){
  498.                                 $reserva->setDateEnd($reservaLounge->getRemovalDate());
  499.                             }
  500.                             try {
  501.                                 $em->persist($reserva);
  502.                                 $em->flush();
  503.                             } catch (\Exception $e) {
  504.                                 $event 'Error al actualizar fechas de inicio y fin, por montaje y desmontaje de sala: ' $e->getMessage();
  505.                                 $errorMessage $this->translator->trans($event);
  506.                                 $this->addFlash('mensajereservationerror'$errorMessage);
  507.                             }
  508.                         }
  509.                         // FIN: Si es necesario se actualizan fechas de inicio y fin usando dia de montaje y desmontaje
  510.                         try {
  511.                             $em->persist($reservaLounge);
  512.                             $em->flush();
  513.                         } catch (\Exception $e) {
  514.                             $event 'Al agregar la sala ha ocurrido un error: ' $e->getMessage();
  515.                             /* Para el usuario */
  516.                             $errorMessage $this->translator->trans($event);
  517.                             $this->addFlash('mensajereservationerror'$errorMessage);
  518.                         }
  519.                     }
  520.                 }
  521.                 // INICIO: Verificamos la prioridad
  522.                 $numeroPriority 1;
  523.                 //INICIO: Buscamos las salas que coincidan en tiempo de reserva
  524.                 foreach ($salas as $sala){
  525.                     $newdateStar $sala['dateStart'].' '.$sala['hourStart'];
  526.                     $newdateEnd $sala['dateEnd'].' '.$sala['hourEnd'];
  527.                     $reservaProfile $em->getRepository(ReservationLoungeProfile::class)->findOneById($sala['idLounge']);
  528.                     $parameters = array(
  529.                         'dateStar' => $newdateStar,
  530.                         'dateEnd' => $newdateEnd,
  531.                         'idLounge' => $reservaProfile->getLoungeId(),
  532.                         'idRes' => $reserva->getId(),
  533.                     );
  534.                     $dql 'SELECT i
  535.                             FROM GreenPatioBundle:ReservationLounge i
  536.                             WHERE  (i.dateStart >= :dateStar
  537.                               and i.dateStart <= :dateEnd
  538.                               and i.idLounge = :idLounge
  539.                               and i.idReservation != :idRes)
  540.                               or 
  541.                               (i.dateStart <= :dateStar
  542.                               and i.dateStart >= :dateEnd
  543.                               and i.idLounge = :idLounge
  544.                               and i.idReservation != :idRes)
  545.                               ';
  546.                     $query $em->createQuery($dql)->setParameters($parameters);
  547.                     $reservationLounge $query->getResult();
  548.                 }
  549.                 //FIN: Buscamos las salas que coincidan en tiempo de reserva
  550.                 // INICIO: Buscamos el numero de opcion a asignar
  551.                 $modificarPrior false;
  552.                 if (!empty($reservaLounge)){
  553.                     foreach($reservationLounge as $resLoung){
  554.                         $reservaClash $em->getRepository(Reservation::class)->findOneById($resLoung->getIdReservation());
  555.                         $tempPrior $reservaClash->getPriority();
  556.                         if ($numeroPriority <= $tempPrior){
  557.                             // Ya tenemos una reserva con opcion de mayor relevancia (un numero de opción inferior)
  558.                             $numeroPriority $tempPrior +1;
  559.                             $modificarPrior true;
  560.                         }
  561.                     }
  562.                     if ($modificarPrior){
  563.                         // Se debe modificar la prioridad
  564.                         $reserva->setPriority($numeroPriority);
  565.                         try{
  566.                             $em->persist($reserva);
  567.                             $em->flush();
  568.                             $event 'The Reservation has been created.';
  569.                             $successMessage $this->translator->trans($event);
  570.                             $this->addFlash('mensajereservation'$successMessage);
  571.                         } catch (\Exception $e){
  572.                             $event 'An error occurred: '.$e->getMessage();
  573.                             $errorMessage $this->translator->trans($event);
  574.                             $this->addFlash('mensajereservationerror'$errorMessage);
  575.                         }
  576.                     }
  577.                 } else {
  578.                     // El numero de opción asignada fue el correcto
  579.                 }
  580.                 // FIN: Buscamos el numero de opcion a asignar
  581.                 // FIN: Verificamos la prioridad
  582.             }
  583.         } else {
  584.             $lounges null;    // Si fallo la reserva no habrá salas
  585.         }
  586.         return $this->redirectToRoute('reservations_greenpatio_index');
  587.     }
  588.     public function VerificarCoflictosEnSalas($nuevaSala)
  589.     {
  590.         $em $this->getDoctrine()->getManager();
  591.         $allSalas $em->getRepository(ReservationLounge::class)->findAll();
  592.         $tempBool false;  //Aun no se ha detectado un conflicto
  593.         $prioridad =1;
  594.         foreach ($allSalas as $sala){
  595.             if ($sala->getIdReservation()== $nuevaSala->getIdReservation()){
  596.                 // No hay conflicto son de la misma reserva
  597.                 $tempBool = ($tempBool or false);
  598.             } else {
  599.                 if (!($sala->getIdLounge() == $nuevaSala->getIdLounge())) {
  600.                     // No hay conflicto no son la misma sala
  601.                     $tempBool = ($tempBool or false);
  602.                 } else {
  603.                     // Caso 1: F. inicio de $nuevaSala entre las feachas de $sala
  604.                     if (($nuevaSala->getDateStart()>$sala->getDateStart()) and ($nuevaSala->getDateStart()<$sala->getDateEnd())){
  605.                         $tempBool true;
  606.                         // Buscamos la prioridad que tiene el evento de la sala que colisiona para determinar la nueva prioridad del evento que se está creando
  607.                         $resTemp $em->getRepository(Reservation::class)->findOneById($sala->getIdReservation());
  608.                         if (($prioridad $resTemp->getPriority()) or ($prioridad == $resTemp->getPriority())){
  609.                             $prioridad $resTemp->getPriority() +1;
  610.                         }
  611.                     }
  612.                     // Caso 2: F. fin de $nuevaSala entre las feachas de $sala
  613.                     if (($nuevaSala->getDateEnd()>$sala->getDateStart()) and ($nuevaSala->getDateEnd()<$sala->getDateEnd())){
  614.                         $tempBool true;
  615.                         // Buscamos la prioridad que tiene el evento de la sala que colisiona para determinar la nueva prioridad del evento que se está creando
  616.                         $resTemp $em->getRepository(Reservation::class)->findOneById($sala->getIdReservation());
  617.                         if (($prioridad <= $resTemp->getPriority()) or ($prioridad == $resTemp->getPriority())){
  618.                             $prioridad $resTemp->getPriority() +1;
  619.                         }
  620.                     }
  621.                     // Caso 3: F. inicio de $sala entre las feachas de $nuevaSala
  622.                     if (($sala->getDateStart()>$nuevaSala->getDateStart()) and ($sala->getDateStart()<$nuevaSala->getDateEnd())){
  623.                         $tempBool true;
  624.                         // Buscamos la prioridad que tiene el evento de la sala que colisiona para determinar la nueva prioridad del evento que se está creando
  625.                         $resTemp $em->getRepository(Reservation::class)->findOneById($sala->getIdReservation());
  626.                         if (($prioridad <= $resTemp->getPriority()) or ($prioridad == $resTemp->getPriority())){
  627.                             $prioridad $resTemp->getPriority() +1;
  628.                         }
  629.                     }
  630.                     // Caso 4: F. fin de $sala entre las feachas de $nuevaSala
  631.                     if (($sala->getDateEnd()>$nuevaSala->getDateStart()) and ($sala->getDateEnd()<$nuevaSala->getDateEnd())){
  632.                         $tempBool true;
  633.                         // Buscamos la prioridad que tiene el evento de la sala que colisiona para determinar la nueva prioridad del evento que se está creando
  634.                         $resTemp $em->getRepository(Reservation::class)->findOneById($sala->getIdReservation());
  635.                         if (($prioridad <= $resTemp->getPriority()) or ($prioridad == $resTemp->getPriority())){
  636.                             $prioridad $resTemp->getPriority() +1;
  637.                         }
  638.                     }
  639.                     // Caso 5: fechas iguales
  640.                     if (($nuevaSala->getDateStart()==$sala->getDateStart()) or
  641.                         ($nuevaSala->getDateStart()==$sala->getDateEnd()) or
  642.                         ($nuevaSala->getDateEnd()==$sala->getDateStart()) or
  643.                         ($nuevaSala->getDateEnd()==$sala->getDateEnd())) {
  644.                         $tempBool true;
  645.                     }
  646.                 }
  647.             }
  648.         }
  649.         $res = array('bool' => $tempBool,'priority' => $prioridad);
  650.         return ($res);
  651.     }
  652.     public function CalculoPrioridad($reserva)
  653.     {
  654.         $em $this->getDoctrine()->getManager();
  655.         $listAllReservas $em->getRepository(Reservation::class)->findAll();
  656.         // logico para controlar el conflicto entre salas
  657.         $logSalasError false;
  658.         // valor original de la prioridad
  659.         $oldPriority $reserva->getPriority();
  660.         foreach ($listAllReservas as $resv)
  661.         {
  662.             $reservaSala explode(","$reserva->getSalas());          // Arreglo de salas para agregar
  663.             $resSala explode(","$resv->getSalas());                  // Arreglo de salas que ya estan en
  664.             foreach ($reservaSala as $item){
  665.                 if (in_array($item$resSala)){
  666.                     $logSalasError = ($logSalasError or true);          // Este logico indica si hay conflicto entre las salas
  667.                 }
  668.             }
  669.             if ((($reserva->getDateStart()==$resv->getDateStart()) or ($reserva->getDateStart() < $resv->getDateStart())) and
  670.                 ($resv->getDateStart() < $reserva->getDateEnd()) and ($resv->getStatus()=='Confirmed')) {
  671.                 if ($resv->getPriority() == $reserva->getPriority()){
  672.                     $reserva->setPriority($reserva->getPriority()-1);
  673.                 } else {
  674.                     if ($resv->getPriority() < $reserva->getPriority()){
  675.                         $reserva->setPriority($resv->getPriority()-1);
  676.                     } else {
  677.                         // ($resv->getPriority() > $reserva->getPriority())
  678.                         // No se debe cambiar la prioridad ya que esta por debajo de la reserva ya creada
  679.                     }
  680.                 }
  681.             }
  682.             if ((($resv->getDateStart()==$reserva->getDateStart()) or ($resv->getDateStart() < $reserva->getDateStart())) and
  683.                 ($reserva->getDateEnd() < $resv->getDateEnd()) and ($resv->getStatus()=='Confirmed')) {
  684.                 if ($resv->getPriority() == $reserva->getPriority()){
  685.                     $reserva->setPriority($reserva->getPriority()-1);
  686.                 } else {
  687.                     if ($resv->getPriority() < $reserva->getPriority()){
  688.                         $reserva->setPriority($resv->getPriority()-1);
  689.                     } else {
  690.                         // ($resv->getPriority() > $reserva->getPriority())
  691.                         // No se debe cambiar la prioridad ya que esta por debajo de la reserva ya creada
  692.                     }
  693.                 }
  694.             }
  695.             if ((($reserva->getDateStart()==$resv->getDateStart()) or ($reserva->getDateStart() < $resv->getDateStart())) and
  696.                 (($resv->getDateEnd()==$reserva->getDateEnd()) or ($resv->getDateEnd() < $reserva->getDateEnd())) and
  697.                 ($resv->getStatus()=='Confirmed')) {
  698.                 if ($resv->getPriority() == $reserva->getPriority()){
  699.                     $reserva->setPriority($reserva->getPriority()-1);
  700.                 } else {
  701.                     if ($resv->getPriority() < $reserva->getPriority()){
  702.                         $reserva->setPriority($resv->getPriority()-1);
  703.                     } else {
  704.                         // ($resv->getPriority() > $reserva->getPriority())
  705.                         // No se debe cambiar la prioridad ya que esta por debajo de la reserva ya creada
  706.                     }
  707.                 }
  708.             }
  709.             if ((($resv->getDateStart()==$reserva->getDateStart()) or ($resv->getDateStart()<$reserva->getDateStart())) and
  710.                 (($resv->getDateEnd()==$reserva->getDateEnd()) or ($resv->getDateEnd()<$reserva->getDateEnd())) and
  711.                 ($resv->getStatus()=='Confirmed')) {
  712.                 if ($resv->getPriority() == $reserva->getPriority()){
  713.                     $reserva->setPriority($reserva->getPriority()-1);
  714.                 } else {
  715.                     if ($resv->getPriority() < $reserva->getPriority()){
  716.                         $reserva->setPriority($resv->getPriority()-1);
  717.                     } else {
  718.                         // ($resv->getPriority() > $reserva->getPriority())
  719.                         // No se debe cambiar la prioridad ya que esta por debajo de la reserva ya creada
  720.                     }
  721.                 }
  722.             }
  723.         }
  724.         $priority $reserva->getPriority();
  725.         $reserva->setPriority($oldPriority);    // Se restablece el valor de origen de la prioridad
  726.         $data = array(
  727.             'prioridad' => $priority
  728.         );
  729.         return $data;
  730.     }
  731.     public function NombreSalasPrecios()
  732.     {
  733.         $em $this->getDoctrine()->getManager();
  734.         $reservaLoungeDetails $em->getRepository(ReservationLoungeDetails::class)->findAll();
  735.         $data = array();
  736.         foreach ($reservaLoungeDetails as $res){
  737.             if (!empty($data['salas'])) {
  738.                 $data['salas'] = $data['salas'] . ',' $res->getName();
  739.             } else {
  740.                 $data['salas'] = $res->getName();
  741.             }
  742.         }
  743.         $dataArray = array('-1');
  744.         foreach ($reservaLoungeDetails as $res){
  745.             array_push($dataArray,array($res->getId(), $res->getName()));
  746.         }
  747.         unset($dataArray[0]);
  748.         $data['arraySalas'] = $dataArray;
  749. //        $reservaGpPrice = $em->getRepository('GreenPatioBundle:ReservationGpPrice')->findAll();
  750.         $parameters = array();
  751.         $dql 'SELECT p
  752.                 FROM GreenPatioBundle:ReservationGpPrice p                         
  753.                 ORDER BY p.idService ASC ';
  754.         $query $em->createQuery($dql)->setParameters($parameters);
  755.         $reservaGpPrice $query->getResult();
  756.         foreach ($reservaGpPrice as $res){
  757.             if (!empty($data['precios'])) {
  758.                 $data['precios'] = $data['precios'] . ',' $res->getNameAndPrice();
  759.             } else {
  760.                 $data['precios'] = $res->getNameAndPrice();
  761.             }
  762.         }
  763.         $dataArray = array('-1');
  764.         foreach ($reservaGpPrice as $res){
  765.             array_push($dataArray,array($res->getIdService(), $res->getNameAndPrice()));
  766.         }
  767.         unset($dataArray[0]);
  768.         $data['arrayPrecios'] = $dataArray;
  769.         return $data;
  770.     }
  771.     private function CalculosTotalesEdit($id)
  772.     {
  773.         $em $this->getDoctrine()->getManager();
  774.         $reservaLounges $em->getRepository(ReservationLounge::class)->findByIdReservation($id);
  775.         $reservaServices $em->getRepository(ReservationService::class)->findByReservationId($id);
  776.         $data_iva = array(
  777.             'iva' => 21,
  778.             'ivaMontoVeintiUno' => 0,
  779.             'ivaMontoDiez' => 0,
  780.             'ivaMontoCero' => 0,
  781.         );
  782.         $lounge = array(
  783.             'neto' => 0,
  784.             'sumSubT' => 0,
  785.         ); // Acumula sumatoria de netos y sumantoria de subtotales
  786.         $service = array(
  787.             'neto' => 0,
  788.             'sumSubT' => 0,
  789.         ); // Acumula sumatoria de netos y sumantoria de subtotales
  790.         $totales_neto_all 0;
  791.         foreach ($reservaLounges as $item){
  792.             if (is_null($item->getServicePrice()) or empty($item->getServicePrice())){
  793.                 $subtotal 0;
  794.                 $neto 0;
  795.                 $subnetoMounting 0;
  796.                 $subtotalLounge 0;
  797.                 $subnetoRemoval 0;
  798.             } else {
  799.                 if (!empty($item->getMountingPrice()) and ($item->getMountingPrice() != )){
  800.                     $subtotalMounting $item->getMountingPrice() * 1.21;
  801.                     $subnetoMounting $item->getMountingPrice();
  802.                 } else {
  803.                     $subtotalMounting 0;
  804.                     $subnetoMounting 0;
  805.                 }
  806.                 $subtotalLounge $item->getServicePrice() * 1.21;
  807.                 $subneto $item->getServicePrice();
  808.                 if (!empty($item->getRemovalPrice()) and ($item->getRemovalPrice() != )){
  809.                     $subtotalRemoval $item->getRemovalPrice() * 1.21;
  810.                     $subnetoRemoval $item->getRemovalPrice();
  811.                 } else {
  812.                     $subtotalRemoval 0;
  813.                     $subnetoRemoval 0;
  814.                 }
  815.                 $subtotal $subtotalMounting $subtotalLounge $subtotalRemoval;
  816.                 $neto $subnetoMounting $subneto $subnetoRemoval;
  817.                 // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP),
  818.                 $subtotal round($subtotal,2,PHP_ROUND_HALF_UP);
  819.                 $neto round($neto,2,PHP_ROUND_HALF_UP);
  820.             }
  821.             // Acumula netos totales e IVA
  822.             $totales_neto_all $totales_neto_all $neto;
  823.             $data_iva['ivaMontoVeintiUno'] = $data_iva['ivaMontoVeintiUno'] + ($neto 0.21);
  824.             // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
  825.             $totales_neto_all round($totales_neto_all,2,PHP_ROUND_HALF_UP);
  826.             $data_iva['ivaMontoVeintiUno'] = round($data_iva['ivaMontoVeintiUno'],2,PHP_ROUND_HALF_UP);
  827.             // Acumula netos totales e IVA
  828.             $lounge['neto'] = $lounge['neto'] + $neto;
  829.             $lounge['sumSubT'] = $lounge['sumSubT'] + $subtotal;
  830. //            // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
  831.             $lounge['neto'] = round($lounge['neto'],2,PHP_ROUND_HALF_UP);
  832.             $lounge['sumSubT'] = round($lounge['sumSubT'],2,PHP_ROUND_HALF_UP);
  833.         }
  834.         foreach ($reservaServices as $item){
  835.             if (is_null($item->getPrice()) or empty($item->getPrice())){
  836.                 $subtotal 0;
  837.                 $neto 0;
  838.                 $subtotalService 0;
  839.             } else {
  840.                 $subtotalService $item->getPrice();
  841.                 $subneto $item->getPrice();
  842.                 // Commission
  843.                 if ($item->getOpCommission()=='1'){
  844.                     $subtotalService $subtotalService * (+ ($item->getCommission()/100));
  845.                     $subneto $subneto  * (+ ($item->getCommission()/100));
  846.                 } else {
  847.                     $subtotalService $subtotalService * (- ($item->getCommission()/100));
  848.                     $subneto $subneto * (- ($item->getCommission()/100));
  849.                 }
  850.                 // Over
  851.                 if ($item->getOpOver()=='1'){
  852.                     $subtotalService $subtotalService $item->getOver();
  853.                     $subneto $subneto $item->getOver();
  854.                 } else {
  855.                     $subtotalService $subtotalService $item->getOver();
  856.                     $subneto $subneto $item->getOver();
  857.                 }
  858.                 // IVA
  859.                 if ($item->getOpIva()=='1'){
  860.                     $subtotalService $subtotalService * (+ ($item->getIva()/100));
  861.                 } else {
  862.                     $subtotalService $item->getPrice();
  863.                     $subneto = ($subneto 100) / (100 $item->getIva());
  864.                 }
  865.                 switch ($item->getServiceCatId()){
  866.                     case 1// Alojamiento
  867.                         // el numero de noches $numNoches; precio unitario $subneto
  868.                         $numNoches = (($item->getDateOutAt())->diff($item->getDateInAt()))->days;
  869.                         // La personas no afectan este calculo
  870.                         $subtotal $subtotalService $numNoches $item->getUnits();
  871.                         $subnetoUnit $subneto;
  872.                         $subneto $subneto $numNoches $item->getUnits();
  873.                         break;
  874.                     case 2//Actividades
  875.                         // El número de personas es considerado en el calculo
  876.                         $pax $item->getPax();
  877.                         if (empty($pax) or $pax == "0") {
  878.                             $pax 1;
  879.                         }
  880.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  881.                         if ($days 1){
  882.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  883.                         } else {
  884.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  885.                         }
  886.                         $subtotal $subtotalService $days $item->getUnits();
  887.                         $subnetoUnit $subneto;
  888.                         $subneto $subneto $days $item->getUnits();
  889.                         break;
  890.                     case 3// AV
  891.                         $pax $item->getPax();
  892.                         if (empty($pax) or $pax == "0") {
  893.                             $pax 1;
  894.                         }
  895.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  896.                         if ($days 1){
  897.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  898.                         } else {
  899.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  900.                         }
  901.                         $unitsServ $item->getUnits();
  902.                         if (empty($unitsServ) or $unitsServ == "0") {
  903.                             $unitsServ 1;
  904.                         }
  905.                         $subtotal $subtotalService $days $unitsServ $pax;
  906.                         $subnetoUnit $subneto;
  907.                         $subneto $subneto $days $unitsServ $pax;
  908.                         break;
  909.                     case 4//Creative
  910.                         $pax $item->getPax();
  911.                         if (empty($pax) or $pax == "0") {
  912.                             $pax 1;
  913.                         }
  914.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  915.                         if ($days 1){
  916.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  917.                         } else {
  918.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  919.                         }
  920.                         $unitsServ $item->getUnits();
  921.                         if (empty($unitsServ) or $unitsServ == "0") {
  922.                             $unitsServ 1;
  923.                         }
  924.                         $subtotal $subtotalService $days $unitsServ $pax;
  925.                         $subnetoUnit $subneto;
  926.                         $subneto $subneto $days $unitsServ $pax;
  927.                         break;
  928.                     case 5//Cruise
  929.                         $pax $item->getPax();
  930.                         if (empty($pax) or $pax == "0") {
  931.                             $pax 1;
  932.                         }
  933.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days);
  934.                         if ($days 1){
  935.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  936.                         } else {
  937.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  938.                         }
  939.                         $unitsServ $item->getUnits();
  940.                         if (empty($unitsServ) or $unitsServ == "0") {
  941.                             $unitsServ 1;
  942.                         }
  943.                         $subtotal $subtotalService $days $unitsServ $pax;
  944.                         $subnetoUnit $subneto;
  945.                         $subneto $subneto $days $unitsServ $pax;
  946.                         break;
  947.                     case 6//Entertaiment
  948.                         $pax $item->getPax();
  949.                         if (empty($pax) or $pax == "0") {
  950.                             $pax 1;
  951.                         }
  952.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  953.                         if ($days 1){
  954.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  955.                         } else {
  956.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  957.                         }
  958.                         $unitsServ $item->getUnits();
  959.                         if (empty($unitsServ) or $unitsServ == "0") {
  960.                             $unitsServ 1;
  961.                         }
  962.                         $subtotal $subtotalService $days $unitsServ $pax;
  963.                         $subnetoUnit $subneto;
  964.                         $subneto $subneto $days $unitsServ $pax;
  965.                         break;
  966.                     case 7// Gifts
  967.                         $pax $item->getPax();
  968.                         if (empty($pax) or $pax == "0") {
  969.                             $pax 1;
  970.                         }
  971. //                        $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
  972.                         $days 1;
  973.                         if ($days 1){
  974.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  975.                         } else {
  976.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  977.                         }
  978.                         $unitsServ $item->getUnits();
  979.                         if (empty($unitsServ) or $unitsServ == "0") {
  980.                             $unitsServ 1;
  981.                         }
  982.                         $subtotal $subtotalService $days $unitsServ $pax;
  983.                         $subnetoUnit $subneto;
  984.                         $subneto $subneto $days $unitsServ $pax;
  985.                         break;
  986.                     case 8//Guide
  987.                         $pax $item->getPax();
  988.                         if (empty($pax) or $pax == "0") {
  989.                             $pax 1;
  990.                         }
  991.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  992.                         if ($days 1){
  993.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  994.                         } else {
  995.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  996.                         }
  997.                         $unitsServ $item->getUnits();
  998.                         if (empty($unitsServ) or $unitsServ == "0") {
  999.                             $unitsServ 1;
  1000.                         }
  1001.                         $subtotal $subtotalService $days $unitsServ $pax;
  1002.                         $subnetoUnit $subneto;
  1003.                         $subneto $subneto $days $unitsServ $pax;
  1004.                         break;
  1005.                     case 9//Itineraries
  1006.                         $pax $item->getPax();
  1007.                         if (empty($pax) or $pax == "0") {
  1008.                             $pax 1;
  1009.                         }
  1010.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1011.                         if ($days 1){
  1012.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1013.                         } else {
  1014.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1015.                         }
  1016.                         $unitsServ $item->getUnits();
  1017.                         if (empty($unitsServ) or $unitsServ == "0") {
  1018.                             $unitsServ 1;
  1019.                         }
  1020.                         $subtotal $subtotalService $days $unitsServ $pax;
  1021.                         $subnetoUnit $subneto;
  1022.                         $subneto $subneto $days $unitsServ $pax;
  1023.                         break;
  1024.                     case 10//Lounge  -- No Aplica
  1025.                         break;
  1026.                     case 11//Menu
  1027.                         $pax $item->getPax();
  1028.                         if (empty($pax) or $pax == "0") {
  1029.                             $pax 1;
  1030.                         }
  1031.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1032.                         if ($days 1){
  1033.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1034.                         } else {
  1035.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1036.                         }
  1037.                         $unitsServ $item->getUnits();
  1038.                         if (empty($unitsServ) or $unitsServ == "0") {
  1039.                             $unitsServ 1;
  1040.                         }
  1041.                         $subtotal $subtotalService $days $unitsServ $pax;
  1042.                         $subnetoUnit $subneto;
  1043.                         $subneto $subneto $days $unitsServ $pax;
  1044.                         break;
  1045.                     case 12//Others
  1046.                         $pax $item->getPax();
  1047.                         if (empty($pax) or $pax == "0") {
  1048.                             $pax 1;
  1049.                         }
  1050.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1051.                         if ($days 1){
  1052.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1053.                         } else {
  1054.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1055.                         }
  1056.                         $unitsServ $item->getUnits();
  1057.                         if (empty($unitsServ) or $unitsServ == "0") {
  1058.                             $unitsServ 1;
  1059.                         }
  1060.                         $subtotal $subtotalService $days $unitsServ $pax;
  1061.                         $subnetoUnit $subneto;
  1062.                         $subneto $subneto $days $unitsServ $pax;
  1063.                         break;
  1064.                     case 13//Transport
  1065.                         $pax $item->getPax();
  1066.                         if (empty($pax) or $pax == "0") {
  1067.                             $pax 1;
  1068.                         }
  1069.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1070.                         if ($days 1){
  1071.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1072.                         } else {
  1073.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1074.                         }
  1075.                         $unitsServ $item->getUnits();
  1076.                         if (empty($unitsServ) or $unitsServ == "0") {
  1077.                             $unitsServ 1;
  1078.                         }
  1079.                         $subtotal $subtotalService $days $unitsServ $pax;
  1080.                         $subnetoUnit $subneto;
  1081.                         $subneto $subneto $days $unitsServ $pax;
  1082.                         break;
  1083.                     case 14//Technology
  1084.                         $pax $item->getPax();
  1085.                         if (empty($pax) or $pax == "0") {
  1086.                             $pax 1;
  1087.                         }
  1088. //                        $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
  1089.                         $days 1;
  1090.                         $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1091.                         $unitsServ $item->getUnits();
  1092.                         if (empty($unitsServ) or $unitsServ == "0") {
  1093.                             $unitsServ 1;
  1094.                         }
  1095.                         $subtotal $subtotalService $days $unitsServ $pax;
  1096.                         $subnetoUnit $subneto;
  1097.                         $subneto $subneto $days $unitsServ $pax;
  1098.                         break;
  1099.                     case 15//Assisstant
  1100.                         $pax $item->getPax();
  1101.                         if (empty($pax) or $pax == "0") {
  1102.                             $pax 1;
  1103.                         }
  1104.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1105.                         $unitsServ $item->getUnits();
  1106.                         if (empty($unitsServ) or $unitsServ == "0") {
  1107.                             $unitsServ 1;
  1108.                         }
  1109.                         $subtotal $subtotalService $days $unitsServ $pax;
  1110.                         $subnetoUnit $subneto;
  1111.                         $subneto $subneto $days $unitsServ $pax;
  1112.                         break;
  1113.                     case 16//DDR
  1114.                         $pax $item->getPax();
  1115.                         if (empty($pax) or $pax == "0") {
  1116.                             $pax 1;
  1117.                         }
  1118.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1119.                         if ($days 1){
  1120.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1121.                         } else {
  1122.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1123.                         }
  1124.                         $unitsServ $item->getUnits();
  1125.                         if (empty($unitsServ) or $unitsServ == "0") {
  1126.                             $unitsServ 1;
  1127.                         }
  1128.                         $subtotal $subtotalService $days $unitsServ $pax;
  1129.                         $subnetoUnit $subneto;
  1130.                         $subneto $subneto $days $unitsServ $pax;
  1131.                         break;
  1132.                     default:
  1133.                         $pax $item->getPax();
  1134.                         if (empty($pax) or $pax == "0") { $pax 1; }
  1135.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1136.                         $unitsServ $item->getUnits();
  1137.                         if (empty($unitsServ) or $unitsServ == "0") { $unitsServ 1; }
  1138.                         $subtotal $subtotalService $days $unitsServ $pax;
  1139.                         $subnetoUnit $subneto;
  1140.                         $subneto $subneto $days $unitsServ $pax;
  1141.                         break;
  1142.                 }
  1143.                 // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP),
  1144.                 $subtotal round($subtotal,2,PHP_ROUND_HALF_UP);
  1145.                 $neto round($subneto,2,PHP_ROUND_HALF_UP);
  1146.             }
  1147.             switch ($item->getIva()){
  1148.                 // Acumula IVA
  1149.                 case 21:
  1150.                     $data_iva['ivaMontoVeintiUno'] = $data_iva['ivaMontoVeintiUno'] + ($neto * ($item->getIva()/100));
  1151.                     break;
  1152.                 case 10:
  1153.                     $data_iva['ivaMontoDiez'] = $data_iva['ivaMontoDiez'] + ($neto * ($item->getIva()/100));
  1154.                     break;
  1155.                 case 0:
  1156.                     break;
  1157.                 default:
  1158.                     break;
  1159.             }
  1160.             $totales_neto_all $totales_neto_all $neto;
  1161.             // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
  1162.             $totales_neto_all round($totales_neto_all,2,PHP_ROUND_HALF_UP);
  1163.             $data_iva['ivaMontoVeintiUno'] = round($data_iva['ivaMontoVeintiUno'],2,PHP_ROUND_HALF_UP);
  1164.             $data_iva['ivaMontoDiez'] = round($data_iva['ivaMontoDiez'],2,PHP_ROUND_HALF_UP);
  1165.             // Acumula netos totales e IVA
  1166.             $service['neto'] = $service['neto'] + $neto;
  1167.             $service['sumSubT'] = $service['sumSubT'] + $subtotal;
  1168.             // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
  1169.             $service['neto'] = round($service['neto'],2,PHP_ROUND_HALF_UP);
  1170.             $service['sumSubT'] = round($service['sumSubT'],2,PHP_ROUND_HALF_UP);
  1171. //            $i++;
  1172.         }
  1173.         $data = array(
  1174.             'totales_global_con_iva' => $lounge['sumSubT'],
  1175.             'totales_global_iva' => $lounge['sumSubT'] - $lounge['neto'],
  1176.             'totales_global_neto' => $lounge['neto'],
  1177.             'totales_global_servicios_neto' => $service['neto'],
  1178.             'totales_global_servicios_con_iva' => $service['sumSubT'],
  1179.             'totales_global_servicios_iva' => $service['sumSubT'] - $service['neto'],
  1180.             'sumatoria_totales_global_con_iva' => $lounge['sumSubT'] + $service['sumSubT'],
  1181.             'sumatoria_totales_global_neto' => $lounge['neto'] + $service['neto'],
  1182.             'sumatoria_totales_global_iva' => $lounge['sumSubT'] + $service['sumSubT'] - $lounge['neto'] - $service['neto'],
  1183.         );
  1184.         return $data;
  1185.     }
  1186.     private function CalculosTotalesEditSimple($id)
  1187.     {
  1188.         $em $this->getDoctrine()->getManager();
  1189.         $reservaLounges $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($id);
  1190.         $reservaServices $em->getRepository(ReservationService::class)->findByReservationId($id);
  1191.         $data_iva = array(
  1192.             'iva' => 21,
  1193.             'ivaMontoVeintiUno' => 0,
  1194.             'ivaMontoDiez' => 0,
  1195.             'ivaMontoCero' => 0,
  1196.         );
  1197.         $lounge = array(
  1198.             'neto' => 0,
  1199.             'sumSubT' => 0,
  1200.         ); // Acumula sumatoria de netos y sumantoria de subtotales
  1201.         $service = array(
  1202.             'neto' => 0,
  1203.             'sumSubT' => 0,
  1204.         ); // Acumula sumatoria de netos y sumantoria de subtotales
  1205.         $totales_neto_all 0;
  1206.         foreach ($reservaLounges as $item){
  1207.             if (is_null($item->getServicePrice()) or empty($item->getServicePrice())){
  1208.                 $subtotal 0;
  1209.                 $neto 0;
  1210.                 $subnetoMounting 0;
  1211.                 $subtotalLounge 0;
  1212.                 $subnetoRemoval 0;
  1213.             } else {
  1214. //                if (!empty($item->getMountingPrice()) and ($item->getMountingPrice() != 0 )){
  1215. //                    $subtotalMounting = $item->getMountingPrice() * 1.21;
  1216. //                    $subnetoMounting = $item->getMountingPrice();
  1217. //                } else {
  1218. //                    $subtotalMounting = 0;
  1219. //                    $subnetoMounting = 0;
  1220. //                }
  1221.                 $subtotalLounge $item->getServicePrice() * 1.21;
  1222.                 $subneto $item->getServicePrice();
  1223. //                if (!empty($item->getRemovalPrice()) and ($item->getRemovalPrice() != 0 )){
  1224. //                    $subtotalRemoval = $item->getRemovalPrice() * 1.21;
  1225. //                    $subnetoRemoval = $item->getRemovalPrice();
  1226. //                } else {
  1227. //                    $subtotalRemoval = 0;
  1228. //                    $subnetoRemoval = 0;
  1229. //                }
  1230.                 $subtotal $subtotalLounge;
  1231.                 $neto $subneto;
  1232.                 // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP),
  1233.                 $subtotal round($subtotal,2,PHP_ROUND_HALF_UP);
  1234.                 $neto round($neto,2,PHP_ROUND_HALF_UP);
  1235.             }
  1236.             // Acumula netos totales e IVA
  1237.             $totales_neto_all $totales_neto_all $neto;
  1238.             $data_iva['ivaMontoVeintiUno'] = $data_iva['ivaMontoVeintiUno'] + ($neto 0.21);
  1239.             // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
  1240.             $totales_neto_all round($totales_neto_all,2,PHP_ROUND_HALF_UP);
  1241.             $data_iva['ivaMontoVeintiUno'] = round($data_iva['ivaMontoVeintiUno'],2,PHP_ROUND_HALF_UP);
  1242.             // Acumula netos totales e IVA
  1243.             $lounge['neto'] = $lounge['neto'] + $neto;
  1244.             $lounge['sumSubT'] = $lounge['sumSubT'] + $subtotal;
  1245. //            // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
  1246.             $lounge['neto'] = round($lounge['neto'],2,PHP_ROUND_HALF_UP);
  1247.             $lounge['sumSubT'] = round($lounge['sumSubT'],2,PHP_ROUND_HALF_UP);
  1248.         }
  1249.         foreach ($reservaServices as $item){
  1250.                 $subtotal 0;
  1251.                 $neto 0;
  1252.                 $subtotalService 0;
  1253.             if (!is_null($item->getPrice()) and !empty($item->getPrice())){
  1254.                 $subtotalService $item->getPrice();
  1255.                 $subneto $item->getPrice();
  1256.                 // Commission
  1257.                 if ($item->getOpCommission()=='1'){
  1258.                     $subtotalService = (float)$subtotalService * (+ ((float)$item->getCommission()/100));
  1259.                     $subneto = (float)$subneto  * (+ ($item->getCommission()/100));
  1260.                 } else {
  1261.                     $subtotalService = (float)$subtotalService * (- ((float)$item->getCommission()/100));
  1262.                     $subneto = (float)$subneto * (- ($item->getCommission()/100));
  1263.                 }
  1264.                 // Over
  1265.                 if ($item->getOpOver()=='1'){
  1266.                     $subtotalService $subtotalService $item->getOver();
  1267.                     $subneto $subneto $item->getOver();
  1268.                 } else {
  1269.                     $subtotalService $subtotalService $item->getOver();
  1270.                     $subneto $subneto $item->getOver();
  1271.                 }
  1272.                 // IVA
  1273.                 if ($item->getOpIva()=='1'){
  1274.                     $subtotalService $subtotalService * (+ ($item->getIva()/100));
  1275.                 } else {
  1276.                     $subtotalService $item->getPrice();
  1277.                     $subneto = ($subneto 100) / (100 $item->getIva());
  1278.                 }
  1279.                 switch ($item->getServiceCatId()){
  1280.                     case 1// Alojamiento
  1281.                         // el numero de noches $numNoches; precio unitario $subneto
  1282.                         $numNoches = (($item->getDateOutAt())->diff($item->getDateInAt()))->days;
  1283.                         // La personas no afectan este calculo
  1284.                         $subtotal $subtotalService $numNoches $item->getUnits();
  1285.                         $subnetoUnit $subneto;
  1286.                         $subneto $subneto $numNoches $item->getUnits();
  1287.                         break;
  1288.                     case 2//Actividades
  1289.                         // El número de personas es considerado en el calculo
  1290.                         $pax $item->getPax();
  1291.                         if (empty($pax) or $pax == "0") {
  1292.                             $pax 1;
  1293.                         }
  1294.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1295.                         if ($days 1){
  1296.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1297.                         } else {
  1298.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1299.                         }
  1300.                         $subtotal $subtotalService $days $item->getUnits();
  1301.                         $subnetoUnit $subneto;
  1302.                         $subneto $subneto $days $item->getUnits();
  1303.                         break;
  1304.                     case 3// AV
  1305.                         $pax $item->getPax();
  1306.                         if (empty($pax) or $pax == "0") {
  1307.                             $pax 1;
  1308.                         }
  1309.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1310.                         if ($days 1){
  1311.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1312.                         } else {
  1313.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1314.                         }
  1315.                         $unitsServ $item->getUnits();
  1316.                         if (empty($unitsServ) or $unitsServ == "0") {
  1317.                             $unitsServ 1;
  1318.                         }
  1319.                         $subtotal $subtotalService $days $unitsServ $pax;
  1320.                         $subnetoUnit $subneto;
  1321.                         $subneto $subneto $days $unitsServ $pax;
  1322.                         break;
  1323.                     case 4//Creative
  1324.                         $pax $item->getPax();
  1325.                         if (empty($pax) or $pax == "0") {
  1326.                             $pax 1;
  1327.                         }
  1328.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1329.                         if ($days 1){
  1330.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1331.                         } else {
  1332.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1333.                         }
  1334.                         $unitsServ $item->getUnits();
  1335.                         if (empty($unitsServ) or $unitsServ == "0") {
  1336.                             $unitsServ 1;
  1337.                         }
  1338.                         $subtotal $subtotalService $days $unitsServ $pax;
  1339.                         $subnetoUnit $subneto;
  1340.                         $subneto $subneto $days $unitsServ $pax;
  1341.                         break;
  1342.                     case 5//Cruise
  1343.                         $pax $item->getPax();
  1344.                         if (empty($pax) or $pax == "0") {
  1345.                             $pax 1;
  1346.                         }
  1347.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days);
  1348.                         if ($days 1){
  1349.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1350.                         } else {
  1351.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1352.                         }
  1353.                         $unitsServ $item->getUnits();
  1354.                         if (empty($unitsServ) or $unitsServ == "0") {
  1355.                             $unitsServ 1;
  1356.                         }
  1357.                         $subtotal $subtotalService $days $unitsServ $pax;
  1358.                         $subnetoUnit $subneto;
  1359.                         $subneto $subneto $days $unitsServ $pax;
  1360.                         break;
  1361.                     case 6//Entertaiment
  1362.                         $pax $item->getPax();
  1363.                         if (empty($pax) or $pax == "0") {
  1364.                             $pax 1;
  1365.                         }
  1366.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1367.                         if ($days 1){
  1368.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1369.                         } else {
  1370.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1371.                         }
  1372.                         $unitsServ $item->getUnits();
  1373.                         if (empty($unitsServ) or $unitsServ == "0") {
  1374.                             $unitsServ 1;
  1375.                         }
  1376.                         $subtotal $subtotalService $days $unitsServ $pax;
  1377.                         $subnetoUnit $subneto;
  1378.                         $subneto $subneto $days $unitsServ $pax;
  1379.                         break;
  1380.                     case 7// Gifts
  1381.                         $pax $item->getPax();
  1382.                         if (empty($pax) or $pax == "0") {
  1383.                             $pax 1;
  1384.                         }
  1385. //                        $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
  1386.                         $days 1;
  1387.                         if ($days 1){
  1388.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1389.                         } else {
  1390.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1391.                         }
  1392.                         $unitsServ $item->getUnits();
  1393.                         if (empty($unitsServ) or $unitsServ == "0") {
  1394.                             $unitsServ 1;
  1395.                         }
  1396.                         $subtotal $subtotalService $days $unitsServ $pax;
  1397.                         $subnetoUnit $subneto;
  1398.                         $subneto $subneto $days $unitsServ $pax;
  1399.                         break;
  1400.                     case 8//Guide
  1401.                         $pax $item->getPax();
  1402.                         if (empty($pax) or $pax == "0") {
  1403.                             $pax 1;
  1404.                         }
  1405.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1406.                         if ($days 1){
  1407.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1408.                         } else {
  1409.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1410.                         }
  1411.                         $unitsServ $item->getUnits();
  1412.                         if (empty($unitsServ) or $unitsServ == "0") {
  1413.                             $unitsServ 1;
  1414.                         }
  1415.                         $subtotal $subtotalService $days $unitsServ $pax;
  1416.                         $subnetoUnit $subneto;
  1417.                         $subneto $subneto $days $unitsServ $pax;
  1418.                         break;
  1419.                     case 9//Itineraries
  1420.                         $pax $item->getPax();
  1421.                         if (empty($pax) or $pax == "0") {
  1422.                             $pax 1;
  1423.                         }
  1424.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1425.                         if ($days 1){
  1426.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1427.                         } else {
  1428.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1429.                         }
  1430.                         $unitsServ $item->getUnits();
  1431.                         if (empty($unitsServ) or $unitsServ == "0") {
  1432.                             $unitsServ 1;
  1433.                         }
  1434.                         $subtotal $subtotalService $days $unitsServ $pax;
  1435.                         $subnetoUnit $subneto;
  1436.                         $subneto $subneto $days $unitsServ $pax;
  1437.                         break;
  1438.                     case 10//Lounge  -- No Aplica
  1439. //                        $pax = $item->getPax();
  1440. //                        if (empty($pax) or $pax == "0") {
  1441. //                            $pax = 1;
  1442. //                        }
  1443. //
  1444. //                        $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days + 1);
  1445. //                        if ($days > 1){
  1446. //                            $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1447. //                        } else {
  1448. //                            $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1449. //                        }
  1450. //
  1451. //                        $unitsServ = $item->getUnits();
  1452. //                        if (empty($unitsServ) or $unitsServ == "0") {
  1453. //                            $unitsServ = 1;
  1454. //                        }
  1455. //
  1456. //                        $subtotal = $subtotalService * $days * $unitsServ * $pax;
  1457. //                        $subnetoUnit = $subneto;
  1458. //                        $subneto = $subneto * $days * $unitsServ * $pax;
  1459. //
  1460. //                        $data_supplier['service'][$i] = array (
  1461. //                            'id' => $item->getId(),
  1462. //                            'serviceCatId' => $item->getServiceCatId(),
  1463. //                            'serviceName' => $item->getName(),
  1464. //                            'serviceType' => 'Itinerarios',
  1465. //                            'date' => $dateServ,
  1466. //                            'qty' => $unitsServ,
  1467. //                            'iva' => $item->getIva(),
  1468. //                            'pax' => $item->getPax(),
  1469. //                            'precioUnit' => $subnetoUnit,
  1470. //                            'subneto' => $subneto,
  1471. //                            'subtotal' => $subtotal,
  1472. //                        );
  1473.                         break;
  1474.                     case 11//Menu
  1475.                         $pax $item->getPax();
  1476.                         if (empty($pax) or $pax == "0") {
  1477.                             $pax 1;
  1478.                         }
  1479.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1480.                         if ($days 1){
  1481.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1482.                         } else {
  1483.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1484.                         }
  1485.                         $unitsServ $item->getUnits();
  1486.                         if (empty($unitsServ) or $unitsServ == "0") {
  1487.                             $unitsServ 1;
  1488.                         }
  1489.                         $subtotal $subtotalService $days $unitsServ $pax;
  1490.                         $subnetoUnit $subneto;
  1491.                         $subneto $subneto $days $unitsServ $pax;
  1492.                         break;
  1493.                     case 12//Others
  1494.                         $pax $item->getPax();
  1495.                         if (empty($pax) or $pax == "0") {
  1496.                             $pax 1;
  1497.                         }
  1498.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1499.                         if ($days 1){
  1500.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1501.                         } else {
  1502.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1503.                         }
  1504.                         $unitsServ $item->getUnits();
  1505.                         if (empty($unitsServ) or $unitsServ == "0") {
  1506.                             $unitsServ 1;
  1507.                         }
  1508.                         $subtotal $subtotalService $days $unitsServ $pax;
  1509.                         $subnetoUnit $subneto;
  1510.                         $subneto $subneto $days $unitsServ $pax;
  1511.                         break;
  1512.                     case 13//Transport
  1513.                         $pax $item->getPax();
  1514.                         if (empty($pax) or $pax == "0") {
  1515.                             $pax 1;
  1516.                         }
  1517.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1518.                         if ($days 1){
  1519.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1520.                         } else {
  1521.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1522.                         }
  1523.                         $unitsServ $item->getUnits();
  1524.                         if (empty($unitsServ) or $unitsServ == "0") {
  1525.                             $unitsServ 1;
  1526.                         }
  1527.                         $subtotal $subtotalService $days $unitsServ $pax;
  1528.                         $subnetoUnit $subneto;
  1529.                         $subneto $subneto $days $unitsServ $pax;
  1530.                         break;
  1531.                     case 14//Technology
  1532.                         $pax $item->getPax();
  1533.                         if (empty($pax) or $pax == "0") {
  1534.                             $pax 1;
  1535.                         }
  1536.                         $days 1;
  1537.                         $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1538.                         $unitsServ $item->getUnits();
  1539.                         if (empty($unitsServ) or $unitsServ == "0") {
  1540.                             $unitsServ 1;
  1541.                         }
  1542.                         $subtotal $subtotalService $days $unitsServ $pax;
  1543.                         $subnetoUnit $subneto;
  1544.                         $subneto $subneto $days $unitsServ $pax;
  1545.                         break;
  1546.                     case 15//Assisstant
  1547.                         $pax $item->getPax();
  1548.                         if (empty($pax) or $pax == "0") {
  1549.                             $pax 1;
  1550.                         }
  1551.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1552.                         $unitsServ $item->getUnits();
  1553.                         if (empty($unitsServ) or $unitsServ == "0") {
  1554.                             $unitsServ 1;
  1555.                         }
  1556.                         $subtotal $subtotalService $days $unitsServ $pax;
  1557.                         $subnetoUnit $subneto;
  1558.                         $subneto $subneto $days $unitsServ $pax;
  1559.                         break;
  1560.                     case 16//DDR
  1561.                         $pax $item->getPax();
  1562.                         if (empty($pax) or $pax == "0") {
  1563.                             $pax 1;
  1564.                         }
  1565.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1566.                         if ($days 1){
  1567.                             $dateServ = ($item->getDateInAt())->format('d/m/Y'). ' - '.($item->getDateOutAt())->format('d/m/Y');
  1568.                         } else {
  1569.                             $dateServ = ($item->getDateInAt())->format('d/m/Y');
  1570.                         }
  1571.                         $unitsServ $item->getUnits();
  1572.                         if (empty($unitsServ) or $unitsServ == "0") {
  1573.                             $unitsServ 1;
  1574.                         }
  1575.                         $subtotal $subtotalService $days $unitsServ $pax;
  1576.                         $subnetoUnit $subneto;
  1577.                         $subneto $subneto $days $unitsServ $pax;
  1578.                         break;
  1579.                     default:
  1580.                         $pax $item->getPax();
  1581.                         if (empty($pax) or $pax == "0") {
  1582.                             $pax 1;
  1583.                         }
  1584.                         $days = ((($item->getDateOutAt())->diff($item->getDateInAt()))->days 1);
  1585.                         $unitsServ $item->getUnits();
  1586.                         if (empty($unitsServ) or $unitsServ == "0") {
  1587.                             $unitsServ 1;
  1588.                         }
  1589.                         $subtotal $subtotalService $days $unitsServ $pax;
  1590.                         $subnetoUnit $subneto;
  1591.                         $subneto $subneto $days $unitsServ $pax;
  1592.                         break;
  1593.                 }
  1594.                 // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP),
  1595.                 $subtotal round($subtotal,2,PHP_ROUND_HALF_UP);
  1596.                 $neto round($subneto,2,PHP_ROUND_HALF_UP);
  1597.             }
  1598.             switch ($item->getIva()){
  1599.                 // Acumula IVA
  1600.                 case 21:
  1601.                     $data_iva['ivaMontoVeintiUno'] = $data_iva['ivaMontoVeintiUno'] + ($neto * ($item->getIva()/100));
  1602.                     break;
  1603.                 case 10:
  1604.                     $data_iva['ivaMontoDiez'] = $data_iva['ivaMontoDiez'] + ($neto * ($item->getIva()/100));
  1605.                     break;
  1606.                 case 0:
  1607.                     break;
  1608.                 default:
  1609.                     break;
  1610.             }
  1611.             $totales_neto_all $totales_neto_all $neto;
  1612.             // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
  1613.             $totales_neto_all round($totales_neto_all,2,PHP_ROUND_HALF_UP);
  1614.             $data_iva['ivaMontoVeintiUno'] = round($data_iva['ivaMontoVeintiUno'],2,PHP_ROUND_HALF_UP);
  1615.             $data_iva['ivaMontoDiez'] = round($data_iva['ivaMontoDiez'],2,PHP_ROUND_HALF_UP);
  1616.             // Acumula netos totales e IVA
  1617.             $service['neto'] = $service['neto'] + $neto;
  1618.             $service['sumSubT'] = $service['sumSubT'] + $subtotal;
  1619.             // Se lleva a 2 decimales round($totales_neto_antes,2,PHP_ROUND_HALF_UP)
  1620.             $service['neto'] = round($service['neto'],2,PHP_ROUND_HALF_UP);
  1621.             $service['sumSubT'] = round($service['sumSubT'],2,PHP_ROUND_HALF_UP);
  1622.         }
  1623.         $data = array(
  1624.             'totales_global_con_iva' => $lounge['sumSubT'],
  1625.             'totales_global_iva' => $lounge['sumSubT'] - $lounge['neto'],
  1626.             'totales_global_neto' => $lounge['neto'],
  1627.             'totales_global_servicios_neto' => $service['neto'],
  1628.             'totales_global_servicios_con_iva' => $service['sumSubT'],
  1629.             'totales_global_servicios_iva' => $service['sumSubT'] - $service['neto'],
  1630.             'sumatoria_totales_global_con_iva' => $lounge['sumSubT'] + $service['sumSubT'],
  1631.             'sumatoria_totales_global_neto' => $lounge['neto'] + $service['neto'],
  1632.             'sumatoria_totales_global_iva' => $lounge['sumSubT'] + $service['sumSubT'] - $lounge['neto'] - $service['neto'],
  1633.         );
  1634.         return $data;
  1635.     }
  1636.     /**
  1637.      * @Route("/", name="reservations_greenpatio")
  1638.      */
  1639.     public function calendarReservationAction(Request $request) {
  1640.         // Enviar correos a los agentes de las reservas que se deban Cotizar
  1641.         $this->notificacionReservasPorCotizar();
  1642.         // Enviar correos a los agentes de las reservas que tienen depositos pendientes por recibir
  1643.         $this->notificacionReservasPendientesDelSegundoDeposito();
  1644.         $session = new Session();
  1645.         $token=$session->get('tokenGoogleCalendar');
  1646.         if (!is_null($token)) {
  1647.             $this->googleCalendar->setAccessToken($token);
  1648.             $connectGoogle "1";
  1649.         }else{
  1650.             $connectGoogle "0";
  1651.         }
  1652.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  1653. //      $user_userrol = $user_logueado->getUserrol();
  1654.         $user_id $user_logueado->getId();
  1655.         $wnotes = new WidgetNotes();
  1656.         $wnotes->setDateAt(new \DateTime("now"));
  1657.         $form $this->createWidgetNotesCreateForm($wnotes);
  1658.         return $this->render('MDS/GreenPatioBundle/reservations/calendar-reservations.html.twig',
  1659.             array(
  1660. //            'tracking' => $commercial_tracking,
  1661. //            'alertTodo' => $alertTodo,
  1662. //            'notes' => $notes,
  1663.                 'form' => $form->createView(),
  1664.                 'user'=> $user_id,
  1665.                 'connectGoogle' => $connectGoogle,
  1666. //            'token' => $user_logueado->getAccessKey(),
  1667.             )
  1668.         );
  1669.     }
  1670.     private function createWidgetNotesCreateForm(WidgetNotes $entity)
  1671.     {
  1672.         $form $this->createForm(WidgetNotesType::class, $entity, array(
  1673.             'action' => $this->generateUrl('widget_notes_calendar_create'),
  1674.             'method' => 'POST'
  1675.         ));
  1676.         return $form;
  1677.     }
  1678.     private function createWidgetNotesEditForm(WidgetNotes $entity$id)
  1679.     {
  1680.         $form $this->createForm(WidgetNotesType::class, $entity, array(
  1681.             'action' => $this->generateUrl('widget_notes_edit',
  1682.                 array(
  1683.                     'id' => $id
  1684.                 )),
  1685.             'method' => 'PUT'
  1686.         ));
  1687.         return $form;
  1688.     }
  1689.     /**
  1690.      * @Route("/widget/notes/calendar/create/", name="widget_notes_calendar_create")
  1691.      */
  1692.     public function addNotesAction(Request $requestLoggerInterface $logger)
  1693.     {
  1694.         $em $this->getDoctrine()->getManager();
  1695.         $notes $em->getRepository(WidgetNotes::class)->findAll();
  1696.         $wnotes = new WidgetNotes();
  1697.         $form $this->createWidgetNotesCreateForm($wnotes);
  1698.         $form->handleRequest($request);
  1699.         $forAgent $form->get('forAgent')->getData();
  1700.         if(!is_null($forAgent)){
  1701.             $wnotes->setForAgent($forAgent->getId());
  1702.         }
  1703.         if($form->isValid())
  1704.         {
  1705.             /* Obtengo usuario logueado */
  1706.             $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  1707.             $user_id $user_logueado->getId();
  1708.             $wnotes->setCreatedId($user_id);
  1709.             $wnotes->setUpdatedId($user_id);
  1710.             /* Gestión de eventos en Log */
  1711.             $user_lastname $user_logueado->getLastname();
  1712.             $user_name $user_logueado->getName();
  1713.             $user_email $user_logueado->getEmail();
  1714.             $user_rol $user_logueado->getRoles();
  1715.             $event_url $request->getPathInfo();
  1716.             $event_complete $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
  1717.             try{
  1718.                 $em->persist($wnotes);
  1719.                 $em->flush();
  1720.                 $event 'The Note has been created succesfully.';
  1721.                 $successMessage $this->translator->trans($event);
  1722.                 $this->addFlash('mensaje'$successMessage);
  1723.                 $logger->info($event_complete.' | '.$event);
  1724.             } catch (\Exception $e){
  1725.                 $event 'An error occurred: '.$e->getMessage();
  1726.                 /* Para el log */
  1727.                 $logger->error($event_complete.' | '.$event);
  1728.                 /* Para el usuario */
  1729.                 $errorMessage $this->translator->trans($event);
  1730.                 $this->addFlash('mensajeerror'$errorMessage);
  1731.             }
  1732.             /* Fin Gestión de eventos en Log */
  1733.         }else{
  1734.             $errorMessage $this->translator->trans('Error, some fields are empty');
  1735.             $this->addFlash('mensajeerror'$errorMessage);
  1736.         }
  1737.         return $this->redirectToRoute('homepage');
  1738.     }
  1739.     /**
  1740.      * @Route("/list/{idgroup}", defaults={"idgroup" = 0}, name="reservations_greenpatio_index")
  1741.      */
  1742.     public function indexAction($idgroupRequest $request) {
  1743.         $em $this->getDoctrine()->getManager();
  1744.         $parameters = array(
  1745.             'statusdel' => 'Deleted'
  1746.         );
  1747.         $dql 'SELECT i
  1748.                 FROM GreenPatioBundle:Reservation i
  1749.                 WHERE i.status <> :statusdel
  1750.                 ORDER BY i.dateStart ASC';
  1751.         $query $em->createQuery($dql)->setParameters($parameters);
  1752.         $ref = array();
  1753.         $reservas $query->getResult();
  1754.         $reservasZero = array();
  1755.         foreach ($reservas as $res){
  1756.             $client $em->getRepository(Client::class)->findOneById($res->getClient());
  1757.             if (!empty($client)){
  1758.                 $res->setClient($client->getName());
  1759.             } else {
  1760.                 $res->setClient(null);
  1761.             }
  1762.             $res->setCreatedBy(
  1763.                 ($em->getRepository(User::class)->findOneById($res->getCreatedBy()))->getName() . ' '.
  1764.                 ($em->getRepository(User::class)->findOneById($res->getCreatedBy()))->getLastName());
  1765.             $ref[$res->getId()] = '#'.($res->getDateStart())->format('ymd').($res->getDateEnd())->format('ymd');
  1766.             switch ($res->getStatus()){
  1767.                 case 'Bloqueo'$res->setStatus('BLOQUEO'); break;
  1768.                 case 'Confirmed'$res->setStatus('CONFIRMADO'); break;
  1769.                 case 'Invoiced'$res->setStatus('FACTURADO'); break;
  1770.                 case 'Cotizado'$res->setStatus('COTIZADO'); break;
  1771.                 case 'Deleted'$res->setStatus('CANCELADO'); break;
  1772.                 default: $res->setStatus('INICIADO'); break;
  1773.             }
  1774.             $reservasZero[] = array(
  1775.                 'dateStart' => $res->getDateStart(),
  1776.                 'dateEnd' => $res->getDateEnd(),
  1777.                 'id' => $res->getId(),
  1778.                 'title' => $res->getTitle(),
  1779.                 'client' => $res->getClient(),
  1780.                 'createdBy' => $res->getCreatedBy(),
  1781.                 'ref' => $ref[$res->getId()],
  1782.                 'status' => $res->getStatus(),
  1783.             );
  1784.         }
  1785.         $reservas $reservasZero;
  1786.         return $this->render('MDS/GreenPatioBundle/reservations/list-reservations.html.twig',
  1787.             array(
  1788.                 'groups' => null,
  1789.                 'titleView' => '',
  1790.                 'reservations' => $reservas
  1791.             )
  1792.         );
  1793.     }
  1794.     /**
  1795.      * @Route("/listcanceled/{idgroup}", defaults={"idgroup" = 0}, name="reservations_canceled")
  1796.      */
  1797.     public function indexCanceledAction($idgroupRequest $request) {
  1798.         $em $this->getDoctrine()->getManager();
  1799.         $parameters = array(
  1800.             'status' => 'Deleted'
  1801.         );
  1802.         $dql 'SELECT i
  1803.                 FROM GreenPatioBundle:Reservation i
  1804.                 WHERE i.status = :status
  1805.                 ORDER BY i.dateStart ASC';
  1806.         $query $em->createQuery($dql)->setParameters($parameters);
  1807.         $ref = array();
  1808.         $reservas $query->getResult();
  1809.         foreach ($reservas as $res){
  1810.             $client $em->getRepository(Client::class)->findOneById($res->getClient());
  1811.             if (!empty($client)){
  1812.                 $res->setClient($client->getName());
  1813.             } else {
  1814.                 $res->setClient(null);
  1815.             }
  1816.             $res->setCreatedBy(
  1817.                 ($em->getRepository(User::class)->findOneById($res->getCreatedBy()))->getName() . ' '.
  1818.                 ($em->getRepository(User::class)->findOneById($res->getCreatedBy()))->getLastName());
  1819.             $ref[$res->getId()] = '#'.($res->getDateStart())->format('ymd').($res->getDateEnd())->format('ymd');
  1820.         }
  1821. //        for ($i = 0; $i<sizeof($reservas);$i++){
  1822. //            if ($reservas[$i]->getStatus() == "Deleted"){
  1823. //                unset($reservas[$i]);
  1824. //            }
  1825. //        }
  1826.         $reservasZero = array();
  1827.         foreach ($reservas as $res){
  1828.             $reservasZero[] = array(
  1829.                 'dateStart' => $res->getDateStart(),
  1830.                 'dateEnd' => $res->getDateEnd(),
  1831.                 'id' => $res->getId(),
  1832.                 'title' => $res->getTitle(),
  1833.                 'client' => $res->getClient(),
  1834.                 'createdBy' => $res->getCreatedBy(),
  1835.                 'ref' => $ref[$res->getId()],
  1836.                 'status' => $res->getStatus(),
  1837.             );
  1838.         }
  1839.         $reservas $reservasZero;
  1840.         return $this->render('MDS/GreenPatioBundle/reservations/list-reservations.html.twig',
  1841.             array(
  1842.                 'groups' => null,
  1843.                 'titleView' => ' Canceladas',
  1844.                 'reservations' => $reservas
  1845.             )
  1846.         );
  1847.     }
  1848.     /**
  1849.      * @Route("/listquoted/{idgroup}", defaults={"idgroup" = 0}, name="reservations_quoted")
  1850.      */
  1851.     public function indexQuotedAction($idgroupRequest $request) {
  1852.         $em $this->getDoctrine()->getManager();
  1853.         $parameters = array(
  1854.             'status' => 'Cotizado'
  1855.         );
  1856.         $dql 'SELECT i
  1857.                 FROM GreenPatioBundle:Reservation i
  1858.                 WHERE i.status = :status
  1859.                 ORDER BY i.createdAt ASC';
  1860.         $query $em->createQuery($dql)->setParameters($parameters);
  1861.         $ref = array();
  1862.         $reservas $query->getResult();
  1863.         foreach ($reservas as $res){
  1864.             $client $em->getRepository(Client::class)->findOneById($res->getClient());
  1865.             if (!empty($client)){
  1866.                 $res->setClient($client->getName());
  1867.             } else {
  1868.                 $res->setClient(null);
  1869.             }
  1870.             $res->setCreatedBy(
  1871.                 ($em->getRepository(User::class)->findOneById($res->getCreatedBy()))->getName() . ' '.
  1872.                 ($em->getRepository(User::class)->findOneById($res->getCreatedBy()))->getLastName());
  1873. //            $ref[$res->getId()] = '#'.($res->getDateStart())->format('ymd').($res->getDateEnd())->format('ymd');
  1874.             $ref[$res->getId()] = '#'.($res->getCreatedAt())->format('ymdHi');
  1875.         }
  1876.         $reservasZero = array();
  1877.         foreach ($reservas as $res){
  1878.             $data $this->CalculosTotalesEditSimple($res->getId());
  1879.             $reservasZero[] = array(
  1880.                 'dateStart' => $res->getDateStart(),
  1881.                 'dateEnd' => $res->getDateEnd(),
  1882.                 'id' => $res->getId(),
  1883.                 'title' => $res->getTitle(),
  1884.                 'client' => $res->getClient(),
  1885.                 'sales' => $data['sumatoria_totales_global_con_iva'],
  1886.                 'ref' => $ref[$res->getId()],
  1887.                 'createdAt' => $res->getCreatedAt(),
  1888.             );
  1889.         }
  1890.         $reservas $reservasZero;
  1891.         return $this->render('MDS/GreenPatioBundle/reservations/list-reservations-quotation.html.twig',
  1892.             array(
  1893.                 'groups' => null,
  1894.                 'titleView' => ' Cotizadas',
  1895.                 'reservations' => $reservas
  1896.             )
  1897.         );
  1898.     }
  1899.     /**
  1900.      * @Route("/edit/{id}", name="reservations_greenpatio_edit")
  1901.      */
  1902.     public function editAction($id)
  1903.     {
  1904.         return $this->redirectToRoute('reservations_greenpatio_edit_simple', array( 'id' => $id'token' => null ));
  1905.     }
  1906.     private function createEditReservationsForm(Reservation $entity$id)
  1907.     {
  1908.         $form $this->createForm(ReservationType::class, $entity,
  1909.             array(
  1910.                 'action' => $this->generateUrl('reservations_update',
  1911.                     array(
  1912.                         'id' => $id
  1913.                     )
  1914.                 ), 'method' => 'PUT'));
  1915.         return $form;
  1916.     }
  1917.     /**
  1918.      * @Route("/update/{id}", name="reservations_update")
  1919.      */
  1920.     public function updateAction($idRequest $request)
  1921.     {
  1922.         $em $this->getDoctrine()->getManager();
  1923.         // INICIO: Si la reserva esta facturada no puede ser modificada
  1924.         $tempoReserva $em->getRepository(Reservation::class)->findOneById($id);
  1925.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  1926.         $oldPriority $reserva->getPriority();         // Si no es un administrador la prioridad no se debe modificar
  1927.         /* Obtengo usuario logueado */
  1928.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  1929.         $user_id $user_logueado->getId();
  1930.         $hoy = new \DateTime("now"NULL);
  1931.         $reserva->setUpdatedBy($user_id);
  1932.         $reserva->setUpdatedAt($hoy);
  1933.         $arrayRequest $request->request->get('reservation');
  1934.         // Verificamos si se desea cambiar el status
  1935.         $boolConfirmacion false;
  1936.         if ($reserva->getStatus() != $arrayRequest['status']){
  1937.             // Si se pidio cambiar el estado y es un usario de GreenPatio (rol 48) y el estado inicial no es Pendiente
  1938.             if ($user_logueado->getUserRol() == 48){
  1939.                 if ($reserva->getStatus() != 'Pendiente') {
  1940. //                    $boolConfirmacion = true;
  1941.                     //Ya no es necesario solicitar a Salva o Rafa que confirmen
  1942.                 }
  1943.             }
  1944.         }
  1945.         $clientContact $request->request->get('clientContact');
  1946.         $contactUnregistered $request->request->get('contactUnregistered');
  1947.         $nameContactUnregistered $request->request->get('nameContactUnregistered');
  1948.         $phoneContactUnregistered $request->request->get('phoneContactUnregistered');
  1949.         $daysBlockToEmail $request->request->get('days');
  1950.         $reserva->setTitle($arrayRequest['title']);
  1951.         $reserva->setClientContact($clientContact);
  1952.         if (filter_var($contactUnregisteredFILTER_VALIDATE_EMAIL)) {          // Validamos el correo electronico
  1953.             $reserva->setContactUnregistered($contactUnregistered);
  1954.         }
  1955.         if (!empty($nameContactUnregistered)){ $reserva->setNameContactUnregistered($nameContactUnregistered); }
  1956.         if (!empty($phoneContactUnregistered)){ $reserva->setPhoneContactUnregistered($phoneContactUnregistered); }
  1957.         if (!empty($daysBlockToEmail)) {
  1958.             $reserva->setDays($daysBlockToEmail);
  1959.         }
  1960.         if(!empty($arrayRequest['client'])){
  1961.             // Solo se puede cambiar un cliente si no se ha creado una factura
  1962.             if ($this->verificarCambioCliente($id)){
  1963.                 $reserva->setClient($arrayRequest['client']);
  1964.             }
  1965.         } else {
  1966.             $reserva->setClient(null);
  1967.         }
  1968.         if(!empty($arrayRequest['daysBlock'])){
  1969.             $reserva->setDaysBlock($arrayRequest['daysBlock']);
  1970.         } else {
  1971.             $reserva->setDaysBlock(7);
  1972.         }
  1973.         // Si se ha cambiado al estado "Bloqueo" se envia un correo al cliente y al agente
  1974.         if (!empty($arrayRequest['status'])){
  1975.             if ($arrayRequest['status'] == 'Bloqueo'){
  1976.                 if ((!empty($reserva->getClient())) or (!empty($reserva->getClientContact())) or (!empty($reserva->getContactUnregistered()))) {
  1977.                     //Solo se envia correo de notificacion del correo si hay cliente o contacto o contacto no registrado
  1978.                     $client $em->getRepository(Client::class)->findOneById($reserva->getClient());
  1979.                     $mailAddressTo null;
  1980.                     if (!empty($client) and (!empty($client->getEmail()))){ $mailAddressTo $client->getEmail(); }         // Si hay cliente con correo se le envia a este
  1981.                     if (!empty($reserva->getClientContact())){
  1982.                         $contacto $em->getRepository(ClientContact::class)->findOneById($reserva->getClientContact());
  1983.                         if (!empty($contacto) and (!empty($contacto->getEmail()))){ $mailAddressTo $contacto->getEmail(); }   // Si hay un contacto seleccionado tiene prioridad sobre el contacto de cliente
  1984.                     }
  1985.                     if (!empty($reserva->getContactUnregistered())){ $mailAddressTo $reserva->getContactUnregistered(); }     // Si hay correo de contacto no registrado este tiene prioridad sobre todos
  1986.                     if (!empty($mailAddressTo)) {
  1987.                         $agente $em->getRepository(User::class)->findOneById($user_id);
  1988.                         $mailAddressFrom $agente->getEmail();
  1989.                         $mailSubject 'Notificación de Bloqueo - Reserva de espacio en Green Patio';
  1990.                         $mailBody 'Estimado cliente,' .
  1991.                             '<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.' .
  1992.                             '<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.' .
  1993.                             '<br><br>Reserva: ' $reserva->getId() .' - '$reserva->getTitle();
  1994.                         if (!empty($reserva->getDays())){ $mailBody $mailBody '<br>Días bloqueados: '.$reserva->getDays(); }
  1995.                         $mailBody $mailBody '<br><br><br>Muchas gracias por su colaboración.<br><br><br>';
  1996.                         //Se envia el correo al cliente y al agente
  1997.                         $alertaPrevia $em->getRepository(ReservationMailAlertClient::class)->findOneByReservationId($reserva->getId());
  1998.                         if (empty($alertaPrevia)){
  1999.                             //El correo solo se enviara si no se ha enviado ya una alerta previamente
  2000.                             $this->sendMail($mailAddressFrom$mailAddressTo$mailSubject$mailBody);
  2001.                         }
  2002.                         //Se genera el control de la alerta
  2003.                         $this->makeAlert($reserva->getId(), $reserva->getClient(), $mailAddressTo$agente->getId(), $agente->getEmail());
  2004.                     }
  2005.                 }
  2006.                 // Modificar la fecha de notificación
  2007.                 if (!empty($arrayRequest['dateNextMailAlert'])) {
  2008.                     $nextReservaMailAlert $em->getRepository(ReservationMailAlertClient::class)->findOneByReservationId($id);
  2009.                     if (!empty($nextReservaMailAlert)){
  2010.                         // La nueva fecha tiene que ser de mañana en adelante
  2011.                         if (new \Datetime($arrayRequest['dateNextMailAlert']) > new \Datetime('now')){
  2012.                             if ($nextReservaMailAlert->getAlertSended() == 0){
  2013.                                 // Si no se ha enviado el mensaje de alerta se modifican la alerta y la cancelacion (+2 dias)
  2014.                                 $newAlertDatetime = new \DateTime($arrayRequest['dateNextMailAlert'].' 15:00');
  2015.                                 $newCancelDatetime date"Y-m-d H:i"strtotime$newAlertDatetime->format('Y-m-d H:i') . "+2 days" ));
  2016.                                 $newCancelDatetime = new \DateTime($newCancelDatetime);
  2017.                                 $nextReservaMailAlert->setAlertDateTime($newAlertDatetime);
  2018.                                 $nextReservaMailAlert->setCancelDateTime($newCancelDatetime);
  2019.                                 $em->persist($nextReservaMailAlert);
  2020.                                 $em->flush();
  2021.                             } else {
  2022.                                 // Si no se ha enviado el mensaje de cancelacion (paso a cotizacion)
  2023.                                 $newCancelDatetime = new \DateTime($arrayRequest['dateNextMailAlert'].' 15:00');
  2024.                                 $nextReservaMailAlert->setCancelDateTime($newCancelDatetime);
  2025.                                 $em->persist($nextReservaMailAlert);
  2026.                                 $em->flush();
  2027.                             }
  2028.                         }
  2029.                     }
  2030.                 }
  2031.             }
  2032.             $newStatus $this->verificarStatusInicialyFinal($id,$user_id,$reserva->getStatus(),$arrayRequest['status']);
  2033.             // Despues de estudiar el estatus se actualiza con el valor que puede tomar
  2034.             $arrayRequest['status'] = $newStatus;
  2035.             $reserva->setStatus($newStatus);
  2036.             if (!($arrayRequest['status'] == 'Bloqueo')){
  2037.                 // Si no es un bloqueo, tal vez se deba eliminar una alerta
  2038.                 $alertaPrevia $em->getRepository(ReservationMailAlertClient::class)->findOneByReservationId($id);
  2039.                 if (!empty($alertaPrevia)){
  2040.                     if ($arrayRequest['status'] == 'Deleted'){
  2041.                         // Si se cancela y hay una alerta previa se debe enviar automaticamente correo al cliente y agente acerca de la cancelacion o desbloqueo
  2042.                         $agent $em->getRepository(User::class)->findOneById($alertaPrevia->getAgentId());
  2043.                         $mailAddressTo $alertaPrevia->getClientMail();
  2044.                         $mailAddressFrom $alertaPrevia->getAgentMail();
  2045.                         $replyTo = array(
  2046.                             $alertaPrevia->getClientMail() => $alertaPrevia->getClientMail(),
  2047.                             $alertaPrevia->getAgentMail() => $agent->getName().' '$agent->getLastName(),
  2048.                         );
  2049.                         $mailSubject 'Notificación de Bloqueo - Reserva de espacio en Green Patio';
  2050.                         $mailBody 'Estimado cliente,'.
  2051.                             '<br><br>Nos ponemos en contacto con usted para informarle de que su reserva ha sido cancelada.'.
  2052.                             '<br><br>Reserva: ' $reserva->getId() .' - '$reserva->getTitle();
  2053.                         if (!empty($reserva->getDays())){ $mailBody $mailBody '<br>Días bloqueados: '.$reserva->getDays(); }
  2054.                         $mailBody $mailBody '<br><br><br>Muchas gracias por su colaboración.<br><br><br>';
  2055.                         //Se envia el correo al cliente y al agente
  2056.                         $this->sendMail($mailAddressFrom$mailAddressTo$mailSubject$mailBody);
  2057.                         $alertaPrevia->setOldReservationId($alertaPrevia->getReservationId());
  2058.                         $alertaPrevia->setReservationId(0);
  2059.                         $alertaPrevia->setCancelSended(1);
  2060.                     } else {
  2061.                         $alertaPrevia->setOldReservationId($alertaPrevia->getReservationId());
  2062.                         $alertaPrevia->setReservationId(0);
  2063.                     }
  2064.                     $em->persist($alertaPrevia);
  2065.                     $em->flush();
  2066.                 }
  2067.             }
  2068.         }
  2069.         $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)
  2070.         $reserva->setContract($arrayRequest['contract']);
  2071.         $reserva->setDescription($arrayRequest['description']);
  2072.         if(!empty($arrayRequest['advancePayment'])){
  2073.             $reserva->setAdvancePayment($arrayRequest['advancePayment']);
  2074.         } else {
  2075.             $reserva->setAdvancePayment(0);
  2076.         }
  2077.         if(!empty($arrayRequest['deposit'])){
  2078.             $reserva->setDeposit($arrayRequest['deposit']);
  2079.         } else {
  2080.             $reserva->setDeposit(0);
  2081.         }
  2082.         if(!empty($arrayRequest['pax'])){
  2083.             $reserva->setPax($arrayRequest['pax']);
  2084.         } else {
  2085.             $reserva->setPax(null);
  2086.         }
  2087.         if(!empty($arrayRequest['idProposal'])){
  2088.             $reserva->setIdProposal($arrayRequest['idProposal']);
  2089.         } else {
  2090.             $reserva->setIdProposal(null);
  2091.         }
  2092.         if (!empty($arrayRequest['cateringName'])){
  2093.             $reserva->setCateringName($arrayRequest['cateringName']);
  2094.         }
  2095.         if(is_null($arrayRequest['priority']) or empty($arrayRequest['priority']) or ($arrayRequest['priority'] == 0)){
  2096.             // Si viene vacio o proridad 0 (Automatico)
  2097.             $reserva->setPriority(1);
  2098.         } else {
  2099.             $reserva->setPriority($arrayRequest['priority']);
  2100.         }
  2101.         if ($user_logueado->getRole() == 'ROLE_USER'){
  2102.             // La opcion o prioridad solo la pueden modificar los administradores para evitar competencias entre lo agentes
  2103.             $reserva->setPriority($oldPriority);
  2104.         }
  2105.         if(empty($reserva->getStatus())){$reserva->setStatus('Cotizado');}      //El estado de reserva en vacio es que esta en el proceso de cotizacion
  2106.         try{
  2107.             $em->persist($reserva);
  2108.             $em->flush();
  2109.             $event 'The Reservation has been Updated. Now';
  2110.             $successMessage $this->translator->trans($event);
  2111.             $this->addFlash('mensajereservation'$successMessage);
  2112.         } catch (\Exception $e){
  2113.             $event 'An error occurred: '.$e->getMessage();
  2114.             /* Para el usuario */
  2115.             $errorMessage $this->translator->trans($event);
  2116.             $this->addFlash('mensajereservationerror'$errorMessage);
  2117.         }
  2118.         if ($boolConfirmacion){
  2119.             // Se debe solicitar la confirmación ed la reserva
  2120.             return $this->redirectToRoute('reservations_greenpatio_send_confirmation_request_mail', array( 'id' => $id ));
  2121.         }
  2122.         if ($reserva->getStatus() == 'Confirmed'){
  2123.             // Si han confirmado se debe notificar a Salvador y a Rafa, no para que confirmen sino para que esten informados
  2124.             return $this->redirectToRoute('reservations_greenpatio_send_confirmation_request_mail', array( 'id' => $id ));
  2125.         }
  2126.         // Sincronización con HT
  2127.         if (!empty($reserva)) {
  2128.             // Rafa indico que siempre se sincronice al abrir un expediente de GP
  2129. //            if (in_array($reserva->getStatus(), ['Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
  2130.             if (in_array($reserva->getStatus(), [null'''Confirmed''Invoiced''Iniciado''Cotizado''Bloqueo'])) {
  2131.                 if ($reserva->getCateringName() == 'HIGO & TRIGO, S.L.') {
  2132.                     // Si no se ha creado aun el expediente de HT debemos crearlo
  2133.                     $htFile $em->getRepository(HtFile::class)->findByReservation($reserva);
  2134.                     if (empty($htFile)) {
  2135.                         return $this->redirectToRoute('sinc_gp_ht', array('id' => $id,));
  2136.                     }
  2137.                 }
  2138.             }
  2139.         }
  2140.         // Sincronización con Av Express
  2141.         $cotizable $this->laReservaEsCotizable($reserva->getId());
  2142.         if ($cotizable) {
  2143.             // Rafa indico que siempre se sincronice al abrir un expediente de GP
  2144. //            if (in_array($reserva->getStatus(), ['Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
  2145.             if (in_array($reserva->getStatus(), [null'''Confirmed''Invoiced''Iniciado''Cotizado''Bloqueo'])) {
  2146.                 $AveFile $em->getRepository(AveFiles::class)->findByReservation($reserva);
  2147.                 if (empty($AveFile)) {
  2148.                     // Si no se ha creado aun el expediente de Av Express debemos crearlo
  2149.                     return $this->redirectToRoute('sinc_gp_ave', array('id' => $id,));
  2150.                 }
  2151.             }
  2152.         }
  2153.         return $this->redirectToRoute('reservations_greenpatio_edit_simple', array( 'id' => $id'token' => null ));
  2154.     }
  2155.     /**
  2156.      * @Route("/updateOLD/{id}", name="reservations_updateOLD")
  2157.      */
  2158.     public function updateOLDAction($idRequest $request)
  2159.     {
  2160.         $em $this->getDoctrine()->getManager();
  2161.         // INICIO: Si la reserva esta facturada no puede ser modificada
  2162.         $tempoReserva $em->getRepository(Reservation::class)->findOneById($id);
  2163.         if ($tempoReserva->getStatus() == 'Invoiced'){
  2164.             return $this->redirectToRoute('reservations_greenpatio_index');
  2165.         }
  2166.         // FIN: Si la reserva esta facturada no puede ser modificada
  2167.         $services $em->getRepository(ReservationService::class)->findByReservationId($id);
  2168.         $arrayImdicesServices = array();
  2169.         if (!empty($services)){
  2170.             foreach ($services as $service){
  2171.                 $arrayImdicesServices[] = $service->getId();
  2172.             }
  2173.             //INICIO: Buscamos esos servicios con los indices generados en el request
  2174.             $arrayOfServices = array();//arreglo de servicios
  2175.             foreach ($arrayImdicesServices as $ind){
  2176.                 $temp $request->request->get('services_'.$ind);
  2177.                 // Agregamos el ID del servicio al arreglo
  2178.                 $temp += ["id" => $ind];
  2179.                 $arrayOfServices[] = $temp;
  2180.             }
  2181.             foreach ($arrayOfServices as $serv){
  2182.                 if (array_key_exists('boolDelete'$serv)){
  2183.                     // El servicio esta marcado para ser borrado de las tablas
  2184.                     $serviceDelete $em->getRepository(ReservationService::class)->findOneById($serv['id']);
  2185.                     $em->remove($serviceDelete);
  2186.                     $em->flush();
  2187.                 } else {
  2188.                     // No esta marcado para borrado solo se debe modificar
  2189.                     $serviceUpdated $em->getRepository(ReservationService::class)->findOneById($serv['id']);
  2190.                     $serviceUpdated->setName($serv['name']);
  2191.                     $serviceUpdated->setPrice($serv['price']);
  2192.                     $serviceUpdated->setCurrency($serv['currency']);
  2193.                     $serviceUpdated->setUnits($serv['units']);
  2194.                     $serviceUpdated->setPax($serv['pax']);
  2195.                     $serviceUpdated->setOpCommission($serv['opCommission']);
  2196.                     $serviceUpdated->setCommission($serv['commission']);
  2197.                     $serviceUpdated->setOpOver($serv['opOver']);
  2198.                     $serviceUpdated->setOver($serv['over']);
  2199.                     $serviceUpdated->setOpIva($serv['opIva']);
  2200.                     $serviceUpdated->setIva($serv['iva']);
  2201.                     $serviceUpdated->setSupplierId($serv['supplier']);
  2202.                     $serviceUpdated->setDateInAt(new \DateTime($serv['dateInAt'].' '$serv['start']));
  2203.                     $serviceUpdated->setDateOutAt(new \DateTime($serv['dateOutAt'].' '$serv['end']));
  2204. //                    /* Obtengo usuario logueado */
  2205.                     $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  2206.                     $user_id $user_logueado->getId();
  2207.                     $serviceUpdated->setUpdatedId($user_id);
  2208.                     $serviceUpdated->setUpdatedId($user_id);
  2209.                     try{
  2210.                         $em->persist($serviceUpdated);
  2211.                         $em->flush();
  2212.                     } catch (\Exception $e){
  2213.                         $event 'An error occurred: '.$e->getMessage();
  2214.                         /* Para el log */
  2215. //                        $logger->error($event_complete.' | '.$event);
  2216.                         /* Para el usuario */
  2217.                         $errorMessage $this->translator->trans($event);
  2218.                         $this->addFlash('mensajeclienterror'$errorMessage);
  2219.                     }
  2220.                 }
  2221.             }
  2222.         }
  2223.         //FIN: Buscamos esos servicios con los indices generados en el request
  2224.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  2225.         $oldPriority $reserva->getPriority();         // Si no es un administrador la prioridad no se debe modificar
  2226.         $form $this->createEditReservationsForm($reserva$id);
  2227.         $form->handleRequest($request);
  2228.         // INICIO: Formamos las salas que vienen en request
  2229.         // salasViejas son las salas que ya existian antes de editar
  2230.         $salas $request->request->get('salas');
  2231.         $lounges $request->request->get('long');
  2232.         $salasViejas = array();
  2233.         $salasViejasBorrar = array();
  2234.         $salasNuevas = array();
  2235.         $ind =0;
  2236.         $nuevoi 0;
  2237.         if (!empty($salas)) {
  2238.             if (array_key_exists('0'$salas)) {
  2239.                 $nuevoi 0;
  2240.             } else {
  2241.                 $nuevoi 1;
  2242.             }
  2243.         }
  2244.         // INICIO: Se verifica que todas las salas tengan el idPeriod
  2245. //        for ($i = $nuevoi; $i<sizeof($salas); $i++){
  2246. //            if (sizeof($salas[$i])==8){
  2247. //                $tempIdPeriod = ($em->getRepository(ReservationLoungeProfile::class)->findOneById($salas[$i]['idLounge']))->getPeriodId();
  2248. //                $salas[$i]['idPeriod'] = $tempIdPeriod;
  2249. //            }
  2250. //        }
  2251.         // FIN: Se verifica que todas las salas tengan el idPeriod
  2252.         // INICIO: Se recorre el long del request para determinar que salas pueden estar marcados para borrar por el boolDelete
  2253.         for ($i $nuevoi$isizeof($salas); $i++){
  2254.             if (array_key_exists('boolDelete'$salas[$i])){
  2255.                 //Existe el campo boolDelete, se debe eliminar de $sala
  2256.                 unset($salas[$i]);
  2257.             }
  2258.         }
  2259.         // FIN: Se recorre el long del request para determinar que salas pueden estar marcados para borrar por el boolDelete
  2260.         // INICIO: Guardamos en BD la reserva y luego las nuevas salas asociadas
  2261.         $usuarios $em->getRepository(User::class)->findAll();
  2262.         /* Obtengo usuario logueado */
  2263.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  2264.         $user_id $user_logueado->getId();
  2265.         $hoy = new \DateTime("now"NULL);
  2266.         // INICIO: Verificamos si se actualizan las horas de la reserva
  2267.         $reserva->setDateStart(new \DateTime('2078-01-01'));
  2268.         $reserva->setDateEnd(new \DateTime('2000-01-01'));
  2269.         if (!empty($salas)) {
  2270.             foreach ($salas as $newSala) {
  2271.                 if (!empty($newSala['mountindDate'])) {
  2272.                     if (new \DateTime($newSala['mountindDate']) < $reserva->getDateStart()) {
  2273.                         $reserva->setDateStart(new \DateTime($newSala['mountindDate']));
  2274.                     }
  2275.                 }
  2276.                 if (new \DateTime($newSala['dateStart']) < $reserva->getDateStart()) {
  2277.                     $reserva->setDateStart(new \DateTime($newSala['dateStart']));
  2278.                 }
  2279.                 if (new \DateTime($newSala['dateEnd']) > $reserva->getDateEnd()) {
  2280.                     $reserva->setDateEnd(new \DateTime($newSala['dateEnd']));
  2281.                 }
  2282.                 if (!empty($newSala['removalDate'])) {
  2283.                     if (new \DateTime($newSala['removalDate']) > $reserva->getDateEnd()) {
  2284.                         $reserva->setDateEnd(new \DateTime($newSala['removalDate']));
  2285.                     }
  2286.                 }
  2287.             }
  2288.         }
  2289.         // FIN: Verificamos si se actualizan las horas de la reserva
  2290.         if($form->isValid())
  2291.         {
  2292.             $reserva->setUpdatedBy($user_id);
  2293.             $reserva->setUpdatedAt($hoy);
  2294.             if(!empty($reserva->getClient())){
  2295.                 $reserva->setClient($reserva->getClient()->getId());
  2296.             } else {
  2297.                 $reserva->setClient(null);
  2298.             }
  2299.             if (!empty($reserva->getCateringName())){
  2300.                 $reserva->setCateringName($reserva->getCateringName()->getName());
  2301.             }
  2302.             if(is_null($reserva->getPriority()) or empty($reserva->getPriority())){$reserva->setPriority(1);}
  2303.             if ($user_logueado->getRole() == 'ROLE_USER'){
  2304.                 // La opcion o prioridad solo la pueden modificar los administradores para evitar competencias en tre lo agentes
  2305.                 $reserva->setPriority($oldPriority);
  2306.             }
  2307.             try{
  2308.                 $em->persist($reserva);
  2309.                 $em->flush();
  2310.                 $event 'The Reservation has been Updated. Now';
  2311.                 $successMessage $this->translator->trans($event);
  2312.                 $this->addFlash('mensajereservation'$successMessage);
  2313.             } catch (\Exception $e){
  2314.                 $event 'An error occurred: '.$e->getMessage();
  2315.                 /* Para el usuario */
  2316.                 $errorMessage $this->translator->trans($event);
  2317.                 $this->addFlash('mensajereservationerror'$errorMessage);
  2318.             }
  2319.             // INICIO: Guardamos en BD las salas asociadas
  2320.             // INICIO: Se eliminan las salas asociadas a la reserva para luego ingresar las que vengan en el request
  2321.             $salasObsoletas $em->getRepository(ReservationLounge::class)->findByIdReservation($reserva->getId());
  2322.             if (!is_null($salasObsoletas) and !is_null($salasViejasBorrar)) {
  2323.                 foreach ($salasObsoletas as $item) {
  2324.                     try {
  2325.                         $em->remove($item);
  2326.                         $em->flush();
  2327.                     } catch (\Exception $e){
  2328.                         $event 'An error occurred: '.$e->getMessage();
  2329.                         /* Para el usuario */
  2330.                         $errorMessage $this->translator->trans($event);
  2331.                         $this->addFlash('mensajereservationerror'$errorMessage);
  2332.                     }
  2333.                 }
  2334.             }
  2335.             // FIN: Se eliminan las salas asociadas a la reserva para luego ingresar las que vengan en el request
  2336.             $em $this->getDoctrine()->getManager();
  2337.             if (!empty($salas)) {
  2338.                 foreach ($salas as $newSala) {
  2339.                     $tempIdlounge $newSala['idLounge'];
  2340.                     // consulto la tabla de precios para obtener el id de salon desde el id de precios
  2341.                     $queryProfile $em->getRepository(ReservationLoungeProfile::class)->findOneById($tempIdlounge);
  2342.                     $tempIdPeriod $newSala['idLoungePrice'];
  2343. //                $temploungepriceid = $em->getRepository(ReservationLoungeProfile::class)->findOneById($tempIdLoung)->getLoungeId();
  2344.                     $temploungeSql = ($em->getRepository(ReservationLoungeDetails::class)->findOneById($queryProfile->getLoungeId()));
  2345.                     $tempNamelounge $temploungeSql->getName();
  2346.                     $sala = new ReservationLounge();
  2347.                     $sala->setLoungeName(empty($tempNamelounge) ? "" $tempNamelounge);
  2348.                     $sala->setIdLounge(empty($queryProfile->getLoungeId()) ? "0" $queryProfile->getLoungeId());
  2349.                     $sala->setDateStart(new \DateTime($newSala['dateStart']));
  2350.                     $sala->setHourStart(substr($newSala['hourStart'], 02));
  2351.                     $sala->setMinStart(substr($newSala['hourStart'], 32));
  2352.                     $sala->setHourEnd(substr($newSala['hourEnd'], 02));
  2353.                     $sala->setMinEnd(substr($newSala['hourEnd'], 32));
  2354.                     $sala->setDateEnd(new \DateTime($newSala['dateEnd']));
  2355.                     $sala->setIdService(empty($newSala['service']) ? "0" $newSala['service']);
  2356.                     $sala->setServiceName($newSala['serviceName']);
  2357.                     $sala->setServicePrice($newSala['servicePrice']);
  2358.                     $sala->setIdReservation($reserva->getId());
  2359.                     $sala->setOtherPriceSave(null);
  2360.                     $sala->setCreatedAt(new \DateTime());
  2361.                     $sala->setCreatedBy($user_id);
  2362.                     $sala->setUpdatedAt(new \DateTime());
  2363.                     $sala->setUpdatedBy($user_id);
  2364.                     $sala->setIdPeriod($tempIdPeriod);
  2365.                     $sala->setDateStart(new \DateTime($sala->getDateStart()->format('Y-m-d') . " " $sala->getHourStart() . ":" $sala->getMinStart()));
  2366.                     $sala->setDateEnd(new \DateTime($sala->getDateEnd()->format('Y-m-d') . " " $sala->getHourEnd() . ":" $sala->getMinEnd()));
  2367.                     if (empty($newSala['servicePax']) or is_null($newSala['servicePax'])) {
  2368.                         $sala->setPax(null);
  2369.                     } else {
  2370.                         $sala->setPax($newSala['servicePax']);
  2371.                     }
  2372.                     $sala->setMounting($newSala['serviceMounting']);
  2373.                     $sala->setMountingLapse($newSala['mountingLapse']);
  2374.                     switch (strlen($newSala['mountingHourStart'])) {
  2375.                         case 0:
  2376.                             // Vacio
  2377.                             $sala->setMountingHourStart('00');
  2378.                             $sala->setMountingMinStart('00');
  2379.                             break;
  2380.                         case 1:
  2381.                             // H  -> 0H:00
  2382. //                            $sala->setMountingHourStart('0'.$newSala['mountingHourStart']);
  2383.                             if (is_numeric($newSala['mountingHourStart'])){
  2384.                                 $sala->setMountingHourStart('0'.$newSala['mountingHourStart']);
  2385.                             } else {
  2386.                                 $sala->setMountingHourStart('00');
  2387.                             }
  2388.                             $sala->setMountingMinStart('00');
  2389.                             break;
  2390.                         case 2:
  2391.                             // HH  -> HH:00
  2392.                             if (is_numeric($newSala['mountingHourStart'])) {
  2393.                                 $sala->setMountingHourStart($newSala['mountingHourStart']);
  2394.                             } else {
  2395.                                 $sala->setMountingHourStart('00');
  2396.                             }
  2397.                             $sala->setMountingMinStart('00');
  2398.                             break;
  2399.                         case 3:
  2400.                             // Hmm  -> 0H:mm
  2401.                             if (is_numeric($newSala['mountingHourStart'])) {
  2402.                                 $sala->setMountingHourStart('0' substr($newSala['mountingHourStart'], 01));
  2403.                                 $sala->setMountingMinStart(substr($newSala['mountingHourStart'], 12));
  2404.                             } else {
  2405.                                 $sala->setMountingHourStart('00');
  2406.                                 $sala->setMountingMinStart('00');
  2407.                             }
  2408.                             break;
  2409.                         case 4:
  2410.                             // HHmm  -> HH:mm
  2411.                             if (is_numeric($newSala['mountingHourStart'])) {
  2412.                                 $sala->setMountingHourStart(substr($newSala['mountingHourStart'], 02));
  2413.                                 $sala->setMountingMinStart(substr($newSala['mountingHourStart'], 22));
  2414.                             } else {
  2415.                                 $sala->setMountingHourStart('00');
  2416.                                 $sala->setMountingMinStart('00');
  2417.                             }
  2418.                             break;
  2419.                         case 5:
  2420.                             // HH:mm  -> HH:mm
  2421.                             if (is_numeric(substr($newSala['mountingHourStart'], 02)) and is_numeric(substr($newSala['mountingHourStart'], 32))) {
  2422.                                 $sala->setMountingHourStart(substr($newSala['mountingHourStart'], 02));
  2423.                                 $sala->setMountingMinStart(substr($newSala['mountingHourStart'], 32));
  2424.                             } else {
  2425.                                 $sala->setMountingHourStart('00');
  2426.                                 $sala->setMountingMinStart('00');
  2427.                             }
  2428.                             break;
  2429.                         default:
  2430.                             // XXXXyyy
  2431.                             $sala->setMountingHourStart('00');
  2432.                             $sala->setMountingMinStart('00');
  2433.                             break;
  2434.                     }
  2435.                     switch (strlen($newSala['mountingHourEnd'])) {
  2436.                         case 0:
  2437.                             // Vacio
  2438.                             $sala->setMountingHourEnd('00');
  2439.                             $sala->setMountingMinEnd('00');
  2440.                             break;
  2441.                         case 1:
  2442.                             // H  -> 0H:00
  2443. //                            $sala->setMountingHourEnd('0'.$newSala['mountingHourEnd']);
  2444.                             if (is_numeric($newSala['mountingHourEnd'])){
  2445.                                 $sala->setMountingHourEnd('0'.$newSala['mountingHourEnd']);
  2446.                             } else {
  2447.                                 $sala->setMountingHourEnd('00');
  2448.                             }
  2449.                             $sala->setMountingMinEnd('00');
  2450.                             break;
  2451.                         case 2:
  2452.                             // HH  -> HH:00
  2453.                             if (is_numeric($newSala['mountingHourEnd'])) {
  2454.                                 $sala->setMountingHourEnd($newSala['mountingHourEnd']);
  2455.                             } else {
  2456.                                 $sala->setMountingHourEnd('00');
  2457.                             }
  2458.                             $sala->setMountingMinEnd('00');
  2459.                             break;
  2460.                         case 3:
  2461.                             // Hmm  -> 0H:mm
  2462.                             if (is_numeric($newSala['mountingHourEnd'])) {
  2463.                                 $sala->setMountingHourEnd('0' substr($newSala['mountingHourEnd'], 01));
  2464.                                 $sala->setMountingMinEnd(substr($newSala['mountingHourEnd'], 12));
  2465.                             } else {
  2466.                                 $sala->setMountingHourEnd('00');
  2467.                                 $sala->setMountingMinEnd('00');
  2468.                             }
  2469.                             break;
  2470.                         case 4:
  2471.                             // HHmm  -> HH:mm
  2472.                             if (is_numeric($newSala['mountingHourEnd'])) {
  2473.                                 $sala->setMountingHourEnd(substr($newSala['mountingHourEnd'], 02));
  2474.                                 $sala->setMountingMinEnd(substr($newSala['mountingHourEnd'], 22));
  2475.                             } else {
  2476.                                 $sala->setMountingHourEnd('00');
  2477.                                 $sala->setMountingMinEnd('00');
  2478.                             }
  2479.                             break;
  2480.                         case 5:
  2481.                             // HH:mm  -> HH:mm
  2482.                             if (is_numeric((substr($newSala['mountingHourEnd'], 02))) and is_numeric((substr($newSala['mountingHourEnd'], 32))))  {
  2483.                                 $sala->setMountingHourEnd(substr($newSala['mountingHourEnd'], 02));
  2484.                                 $sala->setMountingMinEnd(substr($newSala['mountingHourEnd'], 32));
  2485.                             } else {
  2486.                                 $sala->setMountingHourEnd('00');
  2487.                                 $sala->setMountingMinEnd('00');
  2488.                             }
  2489.                             break;
  2490.                         default:
  2491.                             // XXXXyyy
  2492.                             $sala->setMountingHourEnd('00');
  2493.                             $sala->setMountingMinEnd('00');
  2494.                             break;
  2495.                     }
  2496.                     switch (strlen($newSala['removalHourStart'])) {
  2497.                         case 0:
  2498.                             // Vacio
  2499.                             $sala->setRemovalHourStart('00');
  2500.                             $sala->setRemovalMinStart('00');
  2501.                             break;
  2502.                         case 1:
  2503.                             // H  -> 0H:00
  2504. //                            $sala->setRemovalHourStart('0'.$newSala['removalHourStart']);
  2505.                             if (is_numeric($newSala['removalHourStart'])){
  2506.                                 $sala->setRemovalHourEnd('0'.$newSala['removalHourStart']);
  2507.                             } else {
  2508.                                 $sala->setRemovalHourEnd('00');
  2509.                             }
  2510.                             $sala->setRemovalMinStart('00');
  2511.                             break;
  2512.                         case 2:
  2513.                             // HH  -> HH:00
  2514.                             if (is_numeric($newSala['removalHourStart'])) {
  2515.                                 $sala->setRemovalHourStart($newSala['removalHourStart']);
  2516.                             } else {
  2517.                                 $sala->setRemovalHourStart('00');
  2518.                             }
  2519.                             $sala->setRemovalMinStart('00');
  2520.                             break;
  2521.                         case 3:
  2522.                             // Hmm  -> 0H:mm
  2523.                             if (is_numeric($newSala['removalHourStart'])) {
  2524.                                 $sala->setRemovalHourStart('0' substr($newSala['removalHourStart'], 01));
  2525.                                 $sala->setRemovalMinStart(substr($newSala['removalHourStart'], 12));
  2526.                             } else {
  2527.                                 $sala->setRemovalHourStart('00');
  2528.                                 $sala->setRemovalMinStart('00');
  2529.                             }
  2530.                             break;
  2531.                         case 4:
  2532.                             // HHmm  -> HH:mm
  2533.                             if (is_numeric($newSala['removalHourStart'])) {
  2534.                                 $sala->setRemovalHourStart(substr($newSala['removalHourStart'], 02));
  2535.                                 $sala->setRemovalMinStart(substr($newSala['removalHourStart'], 22));
  2536.                             } else {
  2537.                                 $sala->setRemovalHourStart('00');
  2538.                                 $sala->setRemovalMinStart('00');
  2539.                             }
  2540.                             break;
  2541.                         case 5:
  2542.                             // HH:mm  -> HH:mm
  2543.                             if (is_numeric(substr($newSala['removalHourStart'], 02)) and is_numeric(substr($newSala['removalHourStart'], 32))) {
  2544.                                 $sala->setRemovalHourStart(substr($newSala['removalHourStart'], 02));
  2545.                                 $sala->setRemovalMinStart(substr($newSala['removalHourStart'], 32));
  2546.                             } else {
  2547.                                 $sala->setRemovalHourStart('00');
  2548.                                 $sala->setRemovalMinStart('00');
  2549.                             }
  2550.                             break;
  2551.                         default:
  2552.                             // XXXXyyy
  2553.                             $sala->setRemovalHourStart('00');
  2554.                             $sala->setRemovalMinStart('00');
  2555.                             break;
  2556.                     }
  2557.                     switch (strlen($newSala['removalHourEnd'])) {
  2558.                         case 0:
  2559.                             // Vacio
  2560.                             $sala->setRemovalHourEnd('00');
  2561.                             $sala->setRemovalMinEnd('00');
  2562.                             break;
  2563.                         case 1:
  2564.                             // H  -> 0H:00
  2565.                             if (is_numeric($newSala['removalHourEnd'])){
  2566.                                 $sala->setRemovalHourEnd('0'.$newSala['removalHourEnd']);
  2567.                             } else {
  2568.                                 $sala->setRemovalHourEnd('00');
  2569.                             }
  2570.                             $sala->setRemovalMinEnd('00');
  2571.                             break;
  2572.                         case 2:
  2573.                             // HH  -> HH:00
  2574.                             if (is_numeric($newSala['removalHourEnd'])) {
  2575.                                 $sala->setRemovalHourEnd($newSala['removalHourEnd']);
  2576.                             } else {
  2577.                                 $sala->setRemovalHourEnd('00');
  2578.                             }
  2579.                             $sala->setRemovalMinEnd('00');
  2580.                             break;
  2581.                         case 3:
  2582.                             // Hmm  -> 0H:mm
  2583.                             if (is_numeric($newSala['removalHourEnd'])) {
  2584.                                 $sala->setRemovalHourEnd('0' substr($newSala['removalHourEnd'], 01));
  2585.                                 $sala->setRemovalMinEnd(substr($newSala['removalHourEnd'], 12));
  2586.                             } else {
  2587.                                 $sala->setRemovalHourEnd('00');
  2588.                                 $sala->setRemovalMinEnd('00');
  2589.                             }
  2590.                             break;
  2591.                         case 4:
  2592.                             // HHmm  -> HH:mm
  2593.                             if (is_numeric($newSala['removalHourEnd'])) {
  2594.                                 $sala->setRemovalHourEnd(substr($newSala['removalHourEnd'], 02));
  2595.                                 $sala->setRemovalMinEnd(substr($newSala['removalHourEnd'], 22));
  2596.                             } else {
  2597.                                 $sala->setRemovalHourEnd('00');
  2598.                                 $sala->setRemovalMinEnd('00');
  2599.                             }
  2600.                             break;
  2601.                         case 5:
  2602.                             // HH:mm  -> HH:mm
  2603.                             if (is_numeric(substr($newSala['removalHourEnd'], 02)) and is_numeric(substr($newSala['removalHourEnd'], 32))) {
  2604.                                 $sala->setRemovalHourEnd(substr($newSala['removalHourEnd'], 02));
  2605.                                 $sala->setRemovalMinEnd(substr($newSala['removalHourEnd'], 32));
  2606.                             } else {
  2607.                                 $sala->setRemovalHourEnd('00');
  2608.                                 $sala->setRemovalMinEnd('00');
  2609.                             }
  2610.                             break;
  2611.                         default:
  2612.                             // XXXXyyy
  2613.                             $sala->setRemovalHourEnd('00');
  2614.                             $sala->setRemovalMinEnd('00');
  2615.                             break;
  2616.                     }
  2617.                     $sala->setMountingDate(new \DateTime($newSala['mountingDate'].' '.$sala->getMountingHourStart().':'.$sala->getMountingMinStart()));
  2618.                     if (empty($newSala['mountingPrice'])){$sala->setMountingPrice(0);} else {$sala->setMountingPrice($newSala['mountingPrice']);}
  2619.                     $sala->setRemovalLapse($newSala['removalLapse']);
  2620.                     $sala->setRemovalDate(new \DateTime($newSala['removalDate'].' '.$sala->getRemovalHourEnd().':'.$sala->getRemovalMinEnd()));
  2621.                     if (empty($newSala['removalPrice'])){$sala->setRemovalPrice(0);} else {$sala->setRemovalPrice($newSala['removalPrice']);}
  2622.                     if (($sala->getMountingDate() < $reserva->getDateStart()) or ($reserva->getDateEnd() < $sala->getRemovalDate())){
  2623.                         if ($sala->getMountingDate() < $reserva->getDateStart()){
  2624.                             $reserva->setDateStart($sala->getMountingDate());
  2625.                         }
  2626.                         if ($reserva->getDateEnd() < $sala->getRemovalDate()){
  2627.                             $reserva->setDateEnd($sala->getRemovalDate());
  2628.                         }
  2629.                         try {
  2630.                             $em->persist($reserva);
  2631.                             $em->flush();
  2632.                         } catch (\Exception $e) {
  2633.                             $event 'Error al actualizar fechas de inicio y fin, por montaje y desmontaje de sala: ' $e->getMessage();
  2634.                             $errorMessage $this->translator->trans($event);
  2635.                             $this->addFlash('mensajereservationerror'$errorMessage);
  2636.                         }
  2637.                     }
  2638.                     try {
  2639.                         $em->persist($sala);
  2640.                         $em->flush();
  2641.                     } catch (\Exception $e) {
  2642.                         $event 'An error occurred: ' $e->getMessage();
  2643.                         $errorMessage $this->translator->trans($event);
  2644.                         $this->addFlash('mensajereservationerror'$errorMessage);
  2645.                     }
  2646.                 }
  2647.             }
  2648.         }
  2649.         // FIN: Guardamos en BD la reserva y luego las nuevas salas asociadas
  2650.         return $this->redirectToRoute('reservations_greenpatio_index');
  2651.     }
  2652.     /**
  2653.      * @Route("/events", name="get_reservations")
  2654.      */
  2655.     public function reservationSelectAction(Request $request)
  2656.     {
  2657.         $em $this->getDoctrine()->getManager();
  2658.         // Obtén el primer día del año anterior
  2659.         $fechaInicio = new \DateTime('first day of January last year');
  2660.         // Crea el QueryBuilder para ReservationLoungeSimple
  2661.         $qb $em->getRepository(ReservationLoungeSimple::class)->createQueryBuilder('r');
  2662.         $reservation $qb->where('r.dateStart >= :fechaInicio')
  2663.             ->andWhere('r.idLounge < :idLounge')
  2664.             ->setParameter('fechaInicio'$fechaInicio)
  2665.             ->setParameter('idLounge'22)
  2666.             ->getQuery()
  2667.             ->getResult();
  2668.         // Crea el QueryBuilder para ReservationVisit
  2669.         $qb $em->getRepository(ReservationVisit::class)->createQueryBuilder('v');
  2670.         $visitas $qb->where('v.dateStart >= :fechaInicio')
  2671.                     ->andWhere('v.idLounge = 0')
  2672.                     ->setParameter('fechaInicio'$fechaInicio)
  2673.                     ->getQuery()
  2674.                     ->getResult();
  2675.         $arrayFechaVisitas = array();
  2676.         foreach ($visitas as $item) {
  2677.             //Se agrupan las visitas por fechas
  2678.             $arrayFechaVisitas[$item->getDateStart()->format('Y-m-d')][] = $item;
  2679.         }
  2680.         $newArrayVisitas = array();
  2681.         //Se agrupan las visitas por agente
  2682.         foreach ($arrayFechaVisitas as $fecha) {
  2683.             foreach ($fecha as $item) {
  2684.                 //Se van concatenando los titulos de las visitas en una sola
  2685.                 $loungeNameTemp '';
  2686.                 if (!empty($newArrayVisitas[$item->getDateStart()->format('Y-m-d') . '-' $item->getAgentId()])) {
  2687. //                    $loungeNameTemp = $newArrayVisitas[$item->getDateStart()->format('Y-m-d') . '-' . $item->getAgentId()]->getLoungeName();
  2688.                 }
  2689.                 $item->setLoungeName($loungeNameTemp $item->getDateStart()->format('H:i') . ' ' $item->getLoungeName() . '<br>');
  2690.                 $newArrayVisitas[$item->getDateStart()->format('Y-m-d') . '-' $item->getAgentId()] = $item;
  2691.             }
  2692.         }
  2693.         $visitas $newArrayVisitas;
  2694. //        foreach ($visitas as $item) { array_push($reservation, $item); }
  2695.         $xArray = array();
  2696.         foreach ($arrayFechaVisitas as $elem) { foreach ($elem as $item) { $xArray[] = $item; } }
  2697.         foreach ($xArray as $item) { array_push($reservation$item); }
  2698.         $datos = array();
  2699.         $datosMontaje = array();
  2700.         $datosDesMontaje = array();
  2701.         if (!empty($reservation)) {
  2702.             foreach ($reservation as $reservaSala) {
  2703.                 if (!empty($reservaSala->getIdReservation())) {
  2704.                     $reserva $em->getRepository(Reservation::class)->findOneById($reservaSala->getIdReservation());
  2705.                     if ($reservaSala->getType() == 'Visit') {
  2706.                         $reserva->setStatus('Visit');
  2707.                     }
  2708.                 } else {
  2709.                     // Estamos con una visita
  2710.                     $reserva = new Reservation();
  2711.                     $reserva->setStatus('Visit');
  2712.                     $reserva->setTitle($reservaSala->getLoungeName());
  2713.                 }
  2714.                 if ($reservaSala->getDateStart()->format('d') == $reservaSala->getDateEnd()->format('d')) {
  2715.                     $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();
  2716.                 } else {
  2717.                     $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();
  2718.                 }
  2719.                 $logicoVisita false;
  2720.                 if (!is_null($reserva->getStatus())) {
  2721.                     switch ($reserva->getStatus()) {
  2722.                         case 'Bloqueo'//naranja
  2723.                             $color "#ffaa00";
  2724.                             break;
  2725.                         case 'Confirmed'//verde
  2726.                             $color "#13ad27";
  2727.                             break;
  2728.                         case 'Invoiced'//verde
  2729.                             $color "#13ad27";
  2730.                             break;
  2731.                         case 'Deleted'//rojo
  2732.                             $color "#ff0000";
  2733.                             break;
  2734.                         case 'Cotizado'//Rojo claro
  2735.                             $color "#faafc3";
  2736.                             break;
  2737.                         case 'Reservado'//verde, se ha adelantado un pago parcial
  2738.                             $color "#13ad27";
  2739.                             break;
  2740.                         case 'Visit'//Azul Almudena (id user 77), Rosa Gaby
  2741.                             $logicoVisita true;
  2742.                             if ($reservaSala->getAgentId() == 77) {
  2743.                                 $color "#22cbf5";
  2744.                             } else {
  2745.                                 $color "#f5229a";
  2746.                             }
  2747.                             break;
  2748.                         default: //naranja
  2749.                             $color "";
  2750.                             break;
  2751.                     }
  2752.                     if (!empty($reservaSala->getType()) and !($reservaSala->getType() == 'Visit')) {
  2753.                         //Es un montaje o desmontaje
  2754.                         $color "#a5b8a2";
  2755.                         // Si es un montaje o desmontaje pero esta cancelado debe prevalecer el color de cancelado
  2756.                         if ($reserva->getStatus() == 'Deleted') {
  2757.                             $color "#ff0000";
  2758.                         }
  2759.                         if (($reservaSala->getIdLounge() == 22) or  ($reservaSala->getIdLounge() == 23) or
  2760.                         ($reservaSala->getIdLounge() == 24) or ($reservaSala->getIdLounge() == 25)){
  2761.                             //Ajustamos el color a una sala de covarrubia
  2762.                             switch ($color) {
  2763.                                 case '#ffaa00'$color "#b873bf"; break; //naranja (bloqueo) => morado
  2764.                                 case '#13ad27'$color "#017362"; break; //verde (Confirmed) => verde olivo
  2765.                                 case '#ff0000'$color "#ff0000"; break; //rojo
  2766.                                 case '#faafc3'$color "#faafc3"; break; //Rojo claro
  2767.                                 default: break; //no modificar el color
  2768.                             }
  2769.                         }
  2770.                         //Lo cotizado no se desea ver en el calendario
  2771. //                        if ($reserva->getStatus() == 'Cotizado') {$color = "";}
  2772.                     }
  2773.                 }
  2774.                 $pago1 "";
  2775.                 $pago2 "";
  2776.                 $ht "";
  2777.                 if (!($reserva->getStatus() == 'Visit')) {
  2778.                     $paymentsAll $em->getRepository(ReservationPaymentsClient::class)->findOneByReservationId($reserva->getId());
  2779.                 } else {
  2780.                     $paymentsAll null;
  2781.                 }
  2782.                 if (!empty($paymentsAll)) {
  2783.                     $pago2 "<i class='icon-coin-euro' style='color: #000 !important;'></i>";      //Hay pagos parciales
  2784.                 }
  2785.                 if (!($reserva->getStatus() == 'Visit')) {
  2786.                     $facturas $em->getRepository(ReservationInvoice::class)->findByReservationId($reserva->getId());
  2787.                 }
  2788.                 if (!empty($facturas)) {
  2789.                     foreach ($facturas as $factura) {
  2790.                         if ($factura->getMaster() == "master") {
  2791.                             $pago1 "<i class='icon-thumbs-up3' style='color: #000 !important;'></i>";// Se ha pagado la totalidad
  2792.                         }
  2793.                         if ($factura->getMaster() != "master") {
  2794.                             $pago2 "<i class='icon-coin-euro' style='color: #000 !important;'></i>";      //Hay pagos parciales
  2795.                         }
  2796.                     }
  2797.                 }
  2798.                 if ($reserva->getCateringName() == 'HIGO & TRIGO, S.L.') {
  2799.                     $ht "<a style='color: #000 !important;'><strong>H&T</strong></a>";      // Es una reserva con servicio de Catering Higo & Trigo
  2800.                 }
  2801.                 // Pagos parciales y totales
  2802.                 if (!empty($reserva)) {
  2803.                     if (!$logicoVisita) {
  2804.                         $datos[] = array(
  2805.                             "title" => $reservaSala->getDateStart()->format('H:i') . ' ' $pago2 $pago1 $ht ' ' $reservaSala->getType() . '<br>' $reservaSala->getLoungeName() . '<br>' '<br>' $reserva->getTitle(),
  2806.                             "titleOne" => $reservaSala->getDateStart()->format('H:i') . ' ' $pago2 $pago1 $ht ' ' $reservaSala->getType() . '<br>',
  2807.                             "titleTwo" => $reservaSala->getLoungeName(),
  2808.                             "titleThree" => '' '<br>' '<br>' $reserva->getTitle(),
  2809.                             "type" => $reservaSala->getType(),
  2810.                             "id" => $reserva->getId(),
  2811.                             "tooltip" => $tooltip,
  2812.                             "start" => $reservaSala->getDateStart(),
  2813.                             "end" => $reservaSala->getDateEnd(),
  2814.                             "color" => $color,
  2815.                             "loungeId" => $reservaSala->getIdLounge(),
  2816.                             "url" => "/reservations-greenpatio/edit/" $reserva->getId(),
  2817.                             "status" => $reserva->getStatus(),
  2818.                         );
  2819.                     } else {
  2820.                         // Es una visita
  2821.                         $datos[] = array(
  2822.                             "title" => $reservaSala->getLoungeName(),
  2823.                             "titleOne" => $reservaSala->getDateStart()->format('H:i') . ' ' ' ' $reservaSala->getType() . '<br>',
  2824.                             "titleTwo" => $reservaSala->getLoungeName(),
  2825.                             "titleThree" => '' '<br>' '<br>' $reserva->getTitle(),
  2826.                             "type" => $reservaSala->getType(),
  2827.                             "id" => $reservaSala->getId() . 'V',
  2828.                             "tooltip" => $tooltip,
  2829.                             "start" => $reservaSala->getDateStart(),
  2830.                             "end" => $reservaSala->getDateEnd(),
  2831.                             "color" => $color,
  2832.                             "loungeId" => $reservaSala->getIdLounge(),
  2833.                             "url" => '/reservations-greenpatio/addvisit',
  2834.                             "status" => $reserva->getStatus(),
  2835.                             "agentId" => $reservaSala->getAgentId(),
  2836.                         );
  2837.                     }
  2838.                 } else {
  2839.                     $datos = [];
  2840.                 }
  2841.             }
  2842.         }
  2843.         $newDatos = array();
  2844.         // INICIO: Se unen las salas en una sola reserva por ID de reserva
  2845.         foreach ($datos as $dato) {
  2846.             // Inicializamos el arreglo para crear los indices
  2847.             switch ($dato['color']){
  2848.                 case '#a5b8a2':              //Montaje o Desmontaje
  2849.                     if ($dato['type'] == 'Montaje'){
  2850.                         $newDatos[$dato['id'].'M'] = null;
  2851.                     } else {
  2852.                         $newDatos[$dato['id'].'D'] = null;
  2853.                     }
  2854.                     break;
  2855.                 default:                    //Dia de reserva o Visita (la visita ya viene con su indice #V )
  2856.                     $newDatos[$dato['id']] = null;
  2857.                     break;
  2858.             }
  2859.         }
  2860.         foreach ($datos as $dato) {
  2861.             switch ($dato['color']){
  2862.                                             //Montaje o Desmontaje
  2863.                 case '#a5b8a2':
  2864.                     if ($dato['type'] == "Montaje") {
  2865.                         if (!empty($newDatos[$dato['id'] . 'M'])) {
  2866.                             // El Montaje esta ocupando mas de 1 dia, se deben unir los dias de montaje
  2867.                             if ($newDatos[$dato['id'] . 'M']['start'] > $dato['start']) { $newDatos[$dato['id'] . 'M']['start'] = $dato['start']; }
  2868.                             if ($newDatos[$dato['id'] . 'M']['end'] < $dato['end']) { $newDatos[$dato['id'] . 'M']['end'] = $dato['end']; }
  2869.                         } else {
  2870.                             $newDatos[$dato['id'] . 'M'] = $dato;
  2871.                         }
  2872.                     } else {
  2873.                         if ($dato['type'] == "Desmontaje") {
  2874.                             if (!empty($newDatos[$dato['id'] . 'D'])) {
  2875.                                 // El Desmontaje esta ocupando mas de 1 dia, se deben unir los dias de desmontaje
  2876.                                 if ($newDatos[$dato['id'] . 'D']['start'] > $dato['start']) { $newDatos[$dato['id'] . 'D']['start'] = $dato['start']; }
  2877.                                 if ($newDatos[$dato['id'] . 'D']['end'] < $dato['end']) { $newDatos[$dato['id'] . 'D']['end'] = $dato['end']; }
  2878.                             } else {
  2879.                                 $newDatos[$dato['id'] . 'D'] = $dato;
  2880.                             }
  2881.                         }
  2882.                     }
  2883.                     break;
  2884.                                             //Visita Almudena (id user 77)
  2885.                 case '#22cbf5':
  2886.                     if ($dato['type'] == "Visit") {
  2887.                         $newDatos[$dato['start']->format('Ymd').'V77'.$dato['id']] = $dato;
  2888.                         if (!empty($newDatos[$dato['start']->format('Ymd').'V77'])) {
  2889.                             // Hay varias visitas ese mismo dia para el agente
  2890. //                            $newDatos[$dato['start']->format('Ymd').'V77']['tooltip'] = $newDatos[$dato['start']->format('Ymd').'V77']['tooltip'] . $dato['tooltip'];
  2891.                         } else {
  2892. //                            $newDatos[$dato['start']->format('Ymd').'V77'] = $dato;
  2893.                         }
  2894.                     }
  2895.                     break;
  2896.                                             //Visita Gabriela (id user 82)
  2897.                 case '#f5229a':
  2898.                     if ($dato['type'] == "Visit") {
  2899.                         $newDatos[$dato['start']->format('Ymd').'V82'.$dato['id']] = $dato;
  2900.                         if (!empty($newDatos[$dato['start']->format('Ymd').'V82'])) {
  2901.                             // Hay varias visitas ese mismo dia para el agente
  2902. //                            $newDatos[$dato['start']->format('Ymd').'V82']['tooltip'] = $newDatos[$dato['start']->format('Ymd').'V82']['tooltip'] . $dato['tooltip'];
  2903.                         } else {
  2904. //                            $newDatos[$dato['start']->format('Ymd').'V82'] = $dato;
  2905.                         }
  2906.                     }
  2907.                     break;
  2908.                 //Visita María (id user 120)
  2909.                 case '#157cc2':
  2910.                     if ($dato['type'] == "Visit") {
  2911.                         $newDatos[$dato['start']->format('Ymd').'V120'.$dato['id']] = $dato;
  2912.                         if (!empty($newDatos[$dato['start']->format('Ymd').'V120'])) {
  2913.                             // Hay varias visitas ese mismo dia para el agente
  2914. //                            $newDatos[$dato['start']->format('Ymd').'V120']['tooltip'] = $newDatos[$dato['start']->format('Ymd').'V120']['tooltip'] . $dato['tooltip'];
  2915.                         } else {
  2916. //                            $newDatos[$dato['start']->format('Ymd').'V120'] = $dato;
  2917.                         }
  2918.                     }
  2919.                     break;
  2920.                                             //Reserva color naranja Bloqueo
  2921.                 case '#ffaa00':
  2922.                     if (empty($newDatos[$dato['id']])){
  2923.                         $newDatos[$dato['id']] = $dato;
  2924.                     } else {
  2925.                         // Se verifican la actualizacion de incio y fin, para tener el menor inicio y el mayor fin
  2926.                         if ($newDatos[$dato['id']]['start'] > $dato['start']) {
  2927.                             $newDatos[$dato['id']]['start'] = $dato['start'];
  2928.                         }
  2929.                         if ($newDatos[$dato['id']]['end'] < $dato['end']) {
  2930.                             $newDatos[$dato['id']]['end'] = $dato['end'];
  2931.                         }
  2932.                         $newDatos[$dato['id']]['tooltip'] = $newDatos[$dato['id']]['tooltip'] . ' | ' $dato['tooltip'];
  2933.                         // Verificamos si la sala ya ha sido previamente agregada a la lista de salas para no repetirla
  2934.                         if (strpos($newDatos[$dato['id']]['title'], $dato['titleTwo']) === false) {
  2935.                             // No se encontro la cadena, debemos agregar
  2936.                             $newDatos[$dato['id']]['titleTwo'] = $newDatos[$dato['id']]['titleTwo'] . '<br>' $dato['titleTwo'];
  2937.                             $newDatos[$dato['id']]['title'] = $newDatos[$dato['id']]['titleOne'] . $newDatos[$dato['id']]['titleTwo'] . $newDatos[$dato['id']]['titleThree'];
  2938.                         }
  2939.                     }
  2940.                     break;
  2941.                                             //Reserva color Rojo claro Cotizado
  2942.                 case '#faafc3':
  2943.                     if (empty($newDatos[$dato['id']])){
  2944.                         $newDatos[$dato['id']] = $dato;
  2945.                     } else {
  2946.                         // Se verifican la actualizacion de incio y fin, para tener el menor inicio y el mayor fin
  2947.                         if ($newDatos[$dato['id']]['start'] > $dato['start']) {
  2948.                             $newDatos[$dato['id']]['start'] = $dato['start'];
  2949.                         }
  2950.                         if ($newDatos[$dato['id']]['end'] < $dato['end']) {
  2951.                             $newDatos[$dato['id']]['end'] = $dato['end'];
  2952.                         }
  2953.                         $newDatos[$dato['id']]['tooltip'] = $newDatos[$dato['id']]['tooltip'] . ' | ' $dato['tooltip'];
  2954.                         // Verificamos si la sala ya ha sido previamente agregada a la lista de salas para no repetirla
  2955.                         if (strpos($newDatos[$dato['id']]['title'], $dato['titleTwo']) === false) {
  2956.                             // No se encontro la cadena, debemos agregar
  2957.                             $newDatos[$dato['id']]['titleTwo'] = $newDatos[$dato['id']]['titleTwo'] . '<br>' $dato['titleTwo'];
  2958.                             $newDatos[$dato['id']]['title'] = $newDatos[$dato['id']]['titleOne'] . $newDatos[$dato['id']]['titleTwo'] . $newDatos[$dato['id']]['titleThree'];
  2959.                         }
  2960.                     }
  2961.                     break;
  2962.                                             //Reserva color Rojo Reserva Cancelada
  2963.                 case '#ff0000':
  2964.                                             //Las canceladas no se muestran en el calendario
  2965.                     break;
  2966.                                             //Reserva color Verde Reserva Confirmada, Facturada, (se ha adelantado un pago parcial)
  2967.                 case '#13ad27':
  2968.                     if (empty($newDatos[$dato['id']])){
  2969.                         $newDatos[$dato['id']] = $dato;
  2970.                     } else {
  2971.                         // Se verifican la actualizacion de incio y fin, para tener el menor inicio y el mayor fin
  2972.                         if ($newDatos[$dato['id']]['start'] > $dato['start']) {
  2973.                             $newDatos[$dato['id']]['start'] = $dato['start'];
  2974.                         }
  2975.                         if ($newDatos[$dato['id']]['end'] < $dato['end']) {
  2976.                             $newDatos[$dato['id']]['end'] = $dato['end'];
  2977.                         }
  2978.                         $newDatos[$dato['id']]['tooltip'] = $newDatos[$dato['id']]['tooltip'] . ' | ' $dato['tooltip'];
  2979.                         // Verificamos si la sala ya ha sido previamente agregada a la lista de salas para no repetirla
  2980.                         if (strpos($newDatos[$dato['id']]['title'], $dato['titleTwo']) === false) {
  2981.                             // No se encontro la cadena, debemos agregar
  2982.                             $newDatos[$dato['id']]['titleTwo'] = $newDatos[$dato['id']]['titleTwo'] . '<br>' $dato['titleTwo'];
  2983.                             $newDatos[$dato['id']]['title'] = $newDatos[$dato['id']]['titleOne'] . $newDatos[$dato['id']]['titleTwo'] . $newDatos[$dato['id']]['titleThree'];
  2984.                         }
  2985.                     }
  2986.                     break;
  2987.                 
  2988.                 //Reserva color Verde Reserva Confirmada, Facturada, (Covarrubias)
  2989.                 case '#017362':
  2990.                     if ($newDatos[$dato['id']]['end'] < $dato['end']) {
  2991.                         if (empty($newDatos[$dato['id']])){
  2992.                                 $newDatos[$dato['id']]['end'] = $dato['end'];
  2993.                             $newDatos[$dato['id']] = $dato;
  2994.                         } else {
  2995.                             // Se verifican la actualizacion de incio y fin, para tener el menor inicio y el mayor fin
  2996.                             if ($newDatos[$dato['id']]['start'] > $dato['start']) { $newDatos[$dato['id']]['start'] = $dato['start']; }
  2997.                             if ($newDatos[$dato['id']]['end'] < $dato['end']) { $newDatos[$dato['id']]['end'] = $dato['end']; }
  2998.                             $newDatos[$dato['id']]['tooltip'] = $newDatos[$dato['id']]['tooltip'] . ' | ' $dato['tooltip'];
  2999.                             // Verificamos si la sala ya ha sido previamente agregada a la lista de salas para no repetirla
  3000.                             if (strpos($newDatos[$dato['id']]['title'], $dato['titleTwo']) === false) {
  3001.                                 // No se encontro la cadena, debemos agregar
  3002.                                 $newDatos[$dato['id']]['titleTwo'] = $newDatos[$dato['id']]['titleTwo'] . '<br>' $dato['titleTwo'];
  3003.                                 $newDatos[$dato['id']]['title'] = $newDatos[$dato['id']]['titleOne'] . $newDatos[$dato['id']]['titleTwo'] . $newDatos[$dato['id']]['titleThree'];
  3004.                             }
  3005.                         }
  3006.                     }
  3007.                 break;
  3008.                                             //Se pondra color a negro para resaltar este cualquier caso que no haya sido considerado (status Pendiente)
  3009.                 default:
  3010.                     if (empty($newDatos[$dato['id']])){
  3011.                         $newDatos[$dato['id']] = $dato;
  3012.                     } else {
  3013.                         // Se verifican la actualizacion de incio y fin, para tener el menor inicio y el mayor fin
  3014.                         if ($newDatos[$dato['id']]['start'] > $dato['start']) {
  3015.                             $newDatos[$dato['id']]['start'] = $dato['start'];
  3016.                         }
  3017.                         if ($newDatos[$dato['id']]['end'] < $dato['end']) {
  3018.                             $newDatos[$dato['id']]['end'] = $dato['end'];
  3019.                         }
  3020.                         $newDatos[$dato['id']]['tooltip'] = $newDatos[$dato['id']]['tooltip'] . ' | ' $dato['tooltip'];
  3021.                         // Verificamos si la sala ya ha sido previamente agregada a la lista de salas para no repetirla
  3022.                         if (strpos($newDatos[$dato['id']]['title'], $dato['titleTwo']) === false) {
  3023.                             // No se encontro la cadena, debemos agregar
  3024.                             $newDatos[$dato['id']]['titleTwo'] = $newDatos[$dato['id']]['titleTwo'] . '<br>' $dato['titleTwo'];
  3025.                             $newDatos[$dato['id']]['title'] = $newDatos[$dato['id']]['titleOne'] . $newDatos[$dato['id']]['titleTwo'] . $newDatos[$dato['id']]['titleThree'];
  3026.                         }
  3027.                     }
  3028.                     // Se pone en color negro para resaltar este caso que no esta entrando en ninguno de los casos anteriores
  3029.                     $newDatos[$dato['id']]['color'] = '#000000';
  3030.                     if ($dato['type'] == "Visit") {
  3031.                         // Si no es una de los agentes regulares (Gaby, Angie, Cristina) se busca el color del usuario configurado en el perfil
  3032.                         $elAgente $em->getRepository(User::class)->findOneById($dato['agentId']);
  3033.                         $elAgenteColor = !empty($elAgente) ? $elAgente->getColor() : null;
  3034.                         if (!empty($elAgenteColor)){ $newDatos[$dato['id']]['color'] = $elAgenteColor; }
  3035.                     }
  3036.                     break;
  3037.             }
  3038.         }
  3039.         $datos0 = array();
  3040.         foreach ($newDatos as $key => $item) {
  3041.             if (!empty($item['id'])) {
  3042.                 $datos0[$key] = array('title' => $item['title'],
  3043.                     'titleOne' => $item['titleOne'],
  3044.                     'titleTwo' => $item['titleTwo'],
  3045.                     'titleThree' => $item['titleThree'],
  3046.                     'type' => $item['type'],
  3047.                     'id' => $item['id'],
  3048.                     'tooltip' => $item['tooltip'],
  3049.                     'start' => $item['start'],
  3050.                     'end' => $item['end'],
  3051.                     'color' => $item['color'],
  3052.                     'loungeId' => $item['loungeId'],
  3053.                     'url' => $item['url']);
  3054.             }
  3055.         }
  3056.         $newDatos $datos0;
  3057.         $datos = array();
  3058.         foreach ($newDatos as $item) {
  3059.             if ($item['color'] != '#ff0000') {
  3060.                 // No se agregan al calendario los elementos eliminados oelementos vacios
  3061.                 if (!empty($item)) {
  3062.                     //INICIO: Verificamos por huecos dentro de la reserva
  3063.                     if (empty($item['type'])) {
  3064.                         // solo las reservas se van a verificar en este if
  3065.                         if ((date_diff($item['start'], $item['end'])->d) > 1) {    //el evento tiene mas de 2 dias, puede haber huecos
  3066.                             $resSimples $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($item['id']);
  3067.                             $period = new DatePeriod(
  3068. //                            new DateTime('2010-10-01'),
  3069.                                 $item['start'],
  3070.                                 new DateInterval('P1D'),
  3071. //                            new DateTime('2010-10-05')
  3072.                                 $item['end']
  3073.                             );
  3074.                             $arrayPeriod = array();
  3075.                             foreach ($period as $key => $value) {
  3076.                                 //$value->format('Y-m-d')
  3077.                                 $arrayPeriod[] = $value;
  3078.                             }
  3079.                             $logAllDiasEnReserva false;
  3080.                             $logDiaEnReserva false;
  3081.                             //Verificamos que cada dia tenga su reserva de sala para que no haya hueco
  3082.                             foreach ($arrayPeriod as $day) {
  3083.                                 foreach ($resSimples as $resSimple) {
  3084.                                     if ($resSimple->getDateStart()->format('Y-m-d') == $day->format('Y-m-d')) {
  3085.                                         $logDiaEnReserva true;
  3086.                                         break;
  3087.                                     }
  3088.                                 }
  3089.                                 if (!$logDiaEnReserva) {
  3090.                                     //Un dia no se encontraba, hay un hueco
  3091.                                     foreach ($resSimples as $resDayToAdd) {
  3092.                                         if (empty($resDayToAdd->getType())) {       // Solo se deben agregar salsa los montajes y desmontajes aqui no van
  3093.                                             $item['start'] = $resDayToAdd->getDateStart();
  3094.                                             $item['end'] = $resDayToAdd->getDateEnd();
  3095.                                             $br '<br>';
  3096.                                             $br strpos($item['title'], $br);
  3097.                                             $tempText substr($item['title'], $br 4);
  3098.                                             $item['title'] = $resDayToAdd->getDateStart()->format('H:i') . ' ' '<br>' $tempText;
  3099.                                             $datos[] = $item;
  3100.                                         }
  3101.                                     }
  3102.                                     break;
  3103.                                 } else {
  3104.                                     //Se debe evaluar el siguiente dia
  3105.                                     $logDiaEnReserva false;
  3106.                                     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
  3107.                                         $logAllDiasEnReserva true;
  3108.                                     }
  3109.                                 }
  3110.                             }
  3111.                             if ($logAllDiasEnReserva) {
  3112.                                 $datos[] = $item;
  3113.                             }
  3114.                         } else {
  3115.                             // El evento es de 1 o 2 dias, no hay posibilidad de hueco
  3116.                             $datos[] = $item;
  3117.                         }
  3118.                     } else {
  3119.                         //Es Visita Las visitas son las unicas entradas que no tienen hueco
  3120.                         if ($item['type'] == 'Visit'){
  3121.                             $datos[] = $item;
  3122.                         } else {
  3123.                             // es montaje o desmontaje, se va verificar por huecos
  3124.                             if ((date_diff($item['start'], $item['end'])->d) > 1) {    //el item tiene mas de 2 dias, puede haber huecos
  3125. //                                $resSimples = $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($item['id']);
  3126.                                 $parameters = array(
  3127.                                     'id' => $item['id'],
  3128.                                     'type' => $item['type'],
  3129.                                 );
  3130.                                 $dql 'SELECT i
  3131.                                         FROM GreenPatioBundle:ReservationLoungeSimple i
  3132.                                         WHERE  i.idReservation = :id
  3133.                                           and i.type = :type';
  3134.                                 $query $em->createQuery($dql)->setParameters($parameters);
  3135.                                 $resSimples $query->getResult();
  3136.                                 $period = new DatePeriod(
  3137. //                            new DateTime('2010-10-01'),
  3138.                                     $item['start'],
  3139.                                     new DateInterval('P1D'),
  3140. //                            new DateTime('2010-10-05')
  3141.                                     $item['end']
  3142.                                 );
  3143.                                 $arrayPeriod = array();
  3144.                                 foreach ($period as $key => $value) {
  3145.                                     //$value->format('Y-m-d')
  3146.                                     $arrayPeriod[] = $value;
  3147.                                 }
  3148.                                 $logAllDiasEnReserva false;
  3149.                                 $logDiaEnReserva false;
  3150.                                 //Verificamos que cada dia tenga su reserva de sala para que no haya hueco
  3151.                                 foreach ($arrayPeriod as $day) {
  3152.                                     foreach ($resSimples as $resSimple) {
  3153.                                         if ($resSimple->getDateStart()->format('Y-m-d') == $day->format('Y-m-d')) {
  3154.                                             $logDiaEnReserva true;
  3155.                                             break;
  3156.                                         }
  3157.                                     }
  3158.                                     if (!$logDiaEnReserva) {
  3159.                                         //Un dia no se encontraba, hay un hueco
  3160.                                         foreach ($resSimples as $resDayToAdd) {
  3161.                                             if (!empty($resDayToAdd->getType())) {       // Solo se deben agregar montajes y desmontajes aqui
  3162.                                                 $item['start'] = $resDayToAdd->getDateStart();
  3163.                                                 $item['end'] = $resDayToAdd->getDateEnd();
  3164.                                                 $br '<br>';
  3165.                                                 $br strpos($item['title'], $br);
  3166.                                                 $tempText substr($item['title'], $br 4);
  3167.                                                 $item['title'] = $resDayToAdd->getDateStart()->format('H:i') . ' ' '<br>' $tempText;
  3168.                                                 $datos[] = $item;
  3169.                                             }
  3170.                                         }
  3171.                                         break;
  3172.                                     } else {
  3173.                                         //Se debe evaluar el siguiente dia
  3174.                                         $logDiaEnReserva false;
  3175.                                         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
  3176.                                             $logAllDiasEnReserva true;
  3177.                                         }
  3178.                                     }
  3179.                                 }
  3180.                                 if ($logAllDiasEnReserva) {
  3181.                                     $datos[] = $item;
  3182.                                 }
  3183.                             } else {
  3184.                                 // El montaje o desmontaje es de 1 o 2 dias, no hay posibilidad de hueco
  3185.                                 $datos[] = $item;
  3186.                             }
  3187.                         }
  3188.                     }
  3189.                     //FIN: Verificamos por huecos dentro de la reserva
  3190.                 }
  3191.             }
  3192.         }
  3193.         $return = array(
  3194.             'reservation' => $datos,
  3195.         );
  3196.         $response = new JsonResponse($return);
  3197.         return $response;
  3198.     }
  3199.     /**
  3200.      * @Route("/delete/{id}", name="reservations_delete")
  3201.      */
  3202.     public function deleteAction($idRequest $request)
  3203.     {
  3204.         $em $this->getDoctrine()->getManager();
  3205.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  3206.         $hoy = new \DateTime("now"NULL);
  3207.         /* Obtengo usuario logueado */
  3208.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  3209.         $user_id $user_logueado->getId();
  3210.         $reserva->setUpdatedBy($user_id);
  3211.         $reserva->setUpdatedAt($hoy);
  3212.         $reserva->setStatus('Deleted');
  3213.         /* Gestión de eventos en Log */
  3214.         $user_lastname $user_logueado->getLastname();
  3215.         $user_name $user_logueado->getName();
  3216.         $user_email $user_logueado->getEmail();
  3217.         $user_rol $user_logueado->getRoles();
  3218.         $event_url $request->getPathInfo();
  3219.         $event_complete $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
  3220.         try{
  3221.             $em->persist($reserva);
  3222.             $em->flush();
  3223.             $event 'The Reservation has been Updated. Now';
  3224.             $successMessage $this->translator->trans($event);
  3225.             $this->addFlash('mensajereservation'$successMessage);
  3226.         } catch (\Exception $e){
  3227.             $event 'An error occurred: '.$e->getMessage();
  3228.             /* Para el usuario */
  3229.             $errorMessage $this->translator->trans($event);
  3230.             $this->addFlash('mensajereservationerror'$errorMessage);
  3231.         }
  3232.         /* Fin Gestión de eventos en Log */
  3233.         return $this->redirectToRoute('reservations_greenpatio_index');
  3234.     }
  3235.     /**
  3236.      * @Route("/listgpprices", name="reservations_greenpatio_prices")
  3237.      */
  3238.     public function indexPricesAction(Request $request) {
  3239.         $em $this->getDoctrine()->getManager();
  3240.         //return $this->redirectToRoute('reservations_greenpatio_edit_general');
  3241.         $prices $em->getRepository(ReservationLoungeProfile::class)->findBy(
  3242.             array(),
  3243.             array('id' => 'ASC')
  3244.         );
  3245.         $data = array();
  3246.         // INICIO: Estableciendo los valores de los indices (periodos o jornadas, y nombres de salas)
  3247.         foreach ($prices as $price){
  3248.             $periodSql $em->getRepository(ReservationPeriod::class)->findOneById($price->getPeriodId());
  3249.             $price->setPeriodId($periodSql->getName());
  3250.             $loungeTemp $em->getRepository(ReservationLoungeDetails::class)->findOneById($price->getLoungeId());
  3251.             if(!is_null($loungeTemp))
  3252.                 $price->setLoungeId($loungeTemp->getName());
  3253.             $data[] = $price;
  3254.         }
  3255.         // FIN: Estableciendo los valores de los indices (periodos o jornadas, y nombres de salas)
  3256.         $reserv = new ReservationLoungeProfile();
  3257.         $form $this->createReservationLoungeProfileCreateForm($reserv);
  3258.         return $this->render('MDS/GreenPatioBundle/reservations/list-reservations-gp-prices.html.twig',
  3259.             array(
  3260.                 'groups' => null,
  3261.                 'prices' => $data,
  3262.                 'form' => $form->createView()
  3263.             )
  3264.         );
  3265.     }
  3266.     /**
  3267.      * @Route("/deletegpprice/{id}", name="reservations_price_delete")
  3268.      */
  3269.     public function deletePriceAction($idRequest $request)
  3270.     {
  3271.         $em $this->getDoctrine()->getManager();
  3272.         $price $em->getRepository(ReservationLoungeProfile::class)->findOneById($id);
  3273.         try{
  3274.             $em->remove($price);
  3275.             $em->flush();
  3276.             $event 'The Item has been Deleted.';
  3277.             $successMessage $this->translator->trans($event);
  3278.             $this->addFlash('mensajereservation'$successMessage);
  3279.         } catch (\Exception $e){
  3280.             $event 'An error occurred: '.$e->getMessage();
  3281.             /* Para el usuario */
  3282.             $errorMessage $this->translator->trans($event);
  3283.             $this->addFlash('mensajereservationerror'$errorMessage);
  3284.         }
  3285.         /* Fin Gestión de eventos en Log */
  3286.         return $this->redirectToRoute('reservations_greenpatio_prices');
  3287.     }
  3288.     /**
  3289.      * @Route("/editgpprice/{id}", name="reservations_price_edit")
  3290.      * Editar un profile (Precios - Tarifas - Temporadas)
  3291.      */
  3292.     public function editPriceAction($idRequest $request)
  3293.     {
  3294.         $em $this->getDoctrine()->getManager();
  3295.         $price $em->getRepository(ReservationLoungeProfile::class)->findOneById($id);
  3296.         $lounge $em->getRepository(ReservationLoungeDetails::class)->findOneById($price->getLoungeId());
  3297.         $price->setLoungeId($lounge);
  3298.         $period $em->getRepository(ReservationPeriod::class)->findOneById($price->getPeriodId());
  3299.         $price->setPeriodId($period);
  3300.         $hoy = new \DateTime("now"NULL);
  3301.         $form $this->createEditReservationLoungeProfileForm($price$id);
  3302.         return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-prices.html.twig',
  3303.             array(
  3304.                 'id' => $id,
  3305.                 'hoy' => $hoy,
  3306.                 'price' => $price,
  3307.                 'form' => $form->createView()
  3308.             ));
  3309.     }
  3310.     private function createEditReservationLoungeProfileForm(ReservationLoungeProfile $entity$id)
  3311.     {
  3312.         $form $this->createForm(ReservationLoungeProfileType::class, $entity,
  3313.             array(
  3314.                 'action' => $this->generateUrl('reservations_price_update',
  3315.                     array(
  3316.                         'id' => $id,
  3317.                         'price' => $entity
  3318.                     )
  3319.                 ), 'method' => 'PUT'));
  3320.         return $form;
  3321.     }
  3322.     /**
  3323.      * @Route("/updategpprice/{id}", name="reservations_price_update")
  3324.      * Update un profile (Precios - Tarifas - Temporadas)
  3325.      */
  3326.     public function updatePriceAction($idRequest $request)
  3327.     {
  3328.         $loungeProfile $request->request->get('lounge_price');
  3329.         $em $this->getDoctrine()->getManager();
  3330.         $price $em->getRepository(ReservationLoungeProfile::class)->findOneById($id);
  3331.         $hoy = new \DateTime("now"NULL);
  3332.         $form $this->createEditReservationLoungeProfileForm($price$id);
  3333.         $form->handleRequest($request);
  3334.         if($form->isValid())
  3335.         {
  3336.             /* Obtengo usuario logueado */
  3337.             $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  3338.             $user_id $user_logueado->getId();
  3339.             $price->setUpdatedId($user_id);
  3340.             $price->setUpdatedAt($hoy);
  3341.             $periodSql $em->getRepository(ReservationPeriod::class)->findOneById($form->get('periodId')->getData()->getId());
  3342.             if (!empty($periodSql)){
  3343.                 $descTemp $periodSql->getName();
  3344.             }else{
  3345.                 $descTemp null;
  3346.             }
  3347.             $price->setPeriodId($form->get('periodId')->getData()->getId());
  3348.             $price->setLoungeId($form->get('loungeId')->getData()->getId());
  3349.             $price->setTitle($form->get('title')->getData());
  3350.             $price->setPrice($form->get('price')->getData());
  3351.             if ((!is_null($price->getLoungeId())) and (!is_null($descTemp))){
  3352.                 $descriptionSql $em->getRepository(ReservationLoungeDetails::class)->findOneById($form->get('loungeId')->getData()->getId());
  3353.                 $description $descriptionSql->getName().' - '.$descTemp;
  3354.                 $price->setDescription($description);
  3355.             } else {
  3356.                 $price->setDescription(null);
  3357.             }
  3358.             if (array_key_exists('priceIsActiveBool'$loungeProfile)) { $price->setPriceIsActive(true); } else { $price->setPriceIsActive(false); }
  3359.             // Agregamos los años
  3360.             if (array_key_exists('year1'$loungeProfile)) { $price->setYear1($loungeProfile['year1']); } else { $price->setYear1(null); }
  3361.             if (array_key_exists('year2'$loungeProfile)) { $price->setYear2($loungeProfile['year2']); } else { $price->setYear2(null); }
  3362.             // Agregamos los meses
  3363.             if (array_key_exists('month1'$loungeProfile)) { $price->setMonth1(true); } else { $price->setMonth1(false); }
  3364.             if (array_key_exists('month2'$loungeProfile)) { $price->setMonth2(true); } else { $price->setMonth2(false); }
  3365.             if (array_key_exists('month3'$loungeProfile)) { $price->setMonth3(true); } else { $price->setMonth3(false); }
  3366.             if (array_key_exists('month4'$loungeProfile)) { $price->setMonth4(true); } else { $price->setMonth4(false); }
  3367.             if (array_key_exists('month5'$loungeProfile)) { $price->setMonth5(true); } else { $price->setMonth5(false); }
  3368.             if (array_key_exists('month6'$loungeProfile)) { $price->setMonth6(true); } else { $price->setMonth6(false); }
  3369.             if (array_key_exists('month7'$loungeProfile)) { $price->setMonth7(true); } else { $price->setMonth7(false); }
  3370.             if (array_key_exists('month8'$loungeProfile)) { $price->setMonth8(true); } else { $price->setMonth8(false); }
  3371.             if (array_key_exists('month9'$loungeProfile)) { $price->setMonth9(true); } else { $price->setMonth9(false); }
  3372.             if (array_key_exists('month10'$loungeProfile)) { $price->setMonth10(true); } else { $price->setMonth10(false); }
  3373.             if (array_key_exists('month11'$loungeProfile)) { $price->setMonth11(true); } else { $price->setMonth11(false); }
  3374.             if (array_key_exists('month12'$loungeProfile)) { $price->setMonth12(true); } else { $price->setMonth12(false); }
  3375.             // Agregamos los dias
  3376.             if (array_key_exists('day1'$loungeProfile)) { $price->setDay1(true); } else { $price->setDay1(false); }
  3377.             if (array_key_exists('day2'$loungeProfile)) { $price->setDay2(true); } else { $price->setDay2(false); }
  3378.             if (array_key_exists('day3'$loungeProfile)) { $price->setDay3(true); } else { $price->setDay3(false); }
  3379.             if (array_key_exists('day4'$loungeProfile)) { $price->setDay4(true); } else { $price->setDay4(false); }
  3380.             if (array_key_exists('day5'$loungeProfile)) { $price->setDay5(true); } else { $price->setDay5(false); }
  3381.             if (array_key_exists('day6'$loungeProfile)) { $price->setDay6(true); } else { $price->setDay6(false); }
  3382.             if (array_key_exists('day7'$loungeProfile)) { $price->setDay7(true); } else { $price->setDay7(false); }
  3383.             try{
  3384.                 $em->persist($price);
  3385.                 $em->flush();
  3386.                 $event 'The price has been Updated. Now';
  3387.                 $successMessage $this->translator->trans($event);
  3388.                 $this->addFlash('mensajereservation'$successMessage);
  3389.             } catch (\Exception $e){
  3390.                 $event 'An error occurred: '.$e->getMessage();
  3391.                 /* Para el usuario */
  3392.                 $errorMessage $this->translator->trans($event);
  3393.                 $this->addFlash('mensajereservationerror'$errorMessage);
  3394.             }
  3395.             /* Fin Gestión de eventos en Log */
  3396.             return $this->redirectToRoute('reservations_greenpatio_edit_general');
  3397.         }else{
  3398.             $errorMessage $this->translator->trans('Error, some fields are empty');
  3399.             $this->addFlash('mensajereservationerror'$errorMessage);
  3400.         }
  3401.         return $this->redirectToRoute('reservations_greenpatio_edit_general');
  3402.     }
  3403.     /**
  3404.      * @Route("/addgpprice/",  name="reservations_greenpatio_addgpprice")
  3405.      */
  3406.     public function addReservationGpPriceActionRequest $request)
  3407.     {
  3408.         $reserv = new ReservationLoungeProfile();
  3409.         $form $this->createReservationLoungeProfileCreateForm($reserv);
  3410.         $em $this->getDoctrine()->getManager();
  3411.         $gpPrices $em->getRepository(ReservationLoungeProfile::class)->findAll();
  3412.         return $this->render('MDS/GreenPatioBundle/reservations/add-reservations-gp-price.html.twig',
  3413.             array('form' => $form->createView(),
  3414.                 'gpPrices' => $gpPrices
  3415.             ));
  3416.     }
  3417.     private function createReservationLoungeProfileCreateForm(ReservationLoungeProfile $entity)
  3418.     {
  3419.         $form $this->createForm(ReservationLoungeProfileType::class, $entity, array(
  3420.             'action' => $this->generateUrl('reservations_greenpatio_price_create'),
  3421.             'method' => 'POST'
  3422.         ));
  3423.         return $form;
  3424.     }
  3425.     /**
  3426.      * @Route("/creategpprice", name="reservations_greenpatio_price_create")
  3427.      */
  3428.     public function createGpPriceAction(Request $request){
  3429.         $em $this->getDoctrine()->getManager();
  3430.         $reservaGpPrice = new ReservationLoungeProfile();
  3431.         $form $this->createReservationLoungeProfileCreateForm($reservaGpPrice);
  3432.         $form->handleRequest($request);
  3433.         /* Obtengo usuario logueado */
  3434.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  3435.         $user_id $user_logueado->getId();
  3436.         $hoy = new \DateTime("now"NULL);
  3437.         $reservaGpPrice->setCreatedAt($hoy);
  3438.         $reservaGpPrice->setCreatedId($user_id);
  3439.         $reservaGpPrice->setUpdatedAt($hoy);
  3440.         $reservaGpPrice->setUpdatedId($user_id);
  3441.         $periodSql $em->getRepository(ReservationPeriod::class)->findOneById($form->get('periodId')->getData());
  3442.         if (!empty($periodSql)){
  3443.             $descTemp $periodSql->getName();
  3444.         }else{
  3445.             $descTemp null;
  3446.         }
  3447.         $reservaGpPrice->setPeriodId($reservaGpPrice->getPeriodId()->getId());
  3448.         $reservaGpPrice->setLoungeId($reservaGpPrice->getLoungeId()->getId());
  3449.         if ((!is_null($reservaGpPrice->getLoungeId())) and (!is_null($descTemp))){
  3450.             $descriptionSql $em->getRepository(ReservationLoungeDetails::class)->findOneById($form->get('loungeId')->getData());
  3451.             $description $descriptionSql->getName().' - '.$descTemp;
  3452.             $reservaGpPrice->setDescription($description);
  3453.         } else {
  3454.             $reservaGpPrice->setDescription(null);
  3455.         }
  3456.         if($form->isValid())
  3457.         {
  3458.             try{
  3459.                 $em->persist($reservaGpPrice);
  3460.                 $em->flush();
  3461.                 $event 'The Item Price has been created.';
  3462.                 $successMessage $this->translator->trans($event);
  3463.                 $this->addFlash('mensajereservation'$successMessage);
  3464.             } catch (\Exception $e){
  3465.                 $event 'An error occurred: '.$e->getMessage();
  3466.                 /* Para el usuario */
  3467.                 $errorMessage $this->translator->trans($event);
  3468.                 $this->addFlash('mensajereservationerror'$errorMessage);
  3469.             }
  3470.         } else {
  3471.             $errorMessage $this->translator->trans('Error, some fields are empty');
  3472.             $this->addFlash('mensajereservationerror'$errorMessage);
  3473.         }
  3474.         return $this->redirectToRoute('reservations_greenpatio_prices');
  3475.     }
  3476.     /**
  3477.      * @Route("/getReservationLoungeProfile", name="get_reservation_lounge_profile")
  3478.      */
  3479.     public function getReservationLoungeProfileAction(Request $request) {
  3480.         $codProfile $_POST['idprofile'];
  3481. //        $codProfile = "1";
  3482. //        $codProfile = $request->request->get('idProfile');
  3483. //        $codProfile = $idProfile;
  3484.         $em $this->getDoctrine()->getManager();
  3485.         $salasPorPerfil $em->getRepository(ReservationLoungeProfile::class)->findBy(
  3486.             array(
  3487.                 'periodId' => $codProfile
  3488.             )
  3489.         );
  3490.         $datos = array();
  3491.         if (!empty($salasPorPerfil)){
  3492.             foreach($salasPorPerfil as $sala){
  3493.                 $datos[] = array(
  3494.                     "id" => $sala->getId(),
  3495.                     "idlounge" => $sala->getLoungeId(),
  3496.                     "nameDescription" => $sala->getDescription(),
  3497.                     "price" => $sala->getPrice(),
  3498.                 );
  3499.             }
  3500.         }
  3501.         $return = array(
  3502.             'salasPerfil' => $datos,
  3503.             'id' => $codProfile,
  3504.         );
  3505.         $response = new JsonResponse($return);
  3506.         return $response;
  3507.     }
  3508.     /**
  3509.      * @Route("/getReservationPeriod", name="get_reservation_Period")
  3510.      */
  3511.     public function getReservationPeriodAction(Request $request) {
  3512.         $id $_POST['id'];
  3513. //        $codProfile = "1";
  3514. //        $id = $request->request->get('id');
  3515. //        $codProfile = $idProfile;
  3516.         $em $this->getDoctrine()->getManager();
  3517.         $period $em->getRepository(ReservationPeriod::class)->findOneById($id);
  3518.         $datos = array();
  3519.         if (!empty($period)){
  3520.             $datos = array(
  3521.                 "id" => $period->getId(),
  3522.                 "hourStart" => is_null($period->getHourStart())?"":$period->getHourStart()->format('H:i'),
  3523.                 "hourEnd" => is_null($period->getHourEnd())?"":$period->getHourEnd()->format('H:i'),
  3524.             );
  3525.         }
  3526.         $return $datos;
  3527.         $response = new JsonResponse($return);
  3528.         return $response;
  3529.     }
  3530.     /**
  3531.      * @Route("/getReservationLoungePrice", name="get_reservation_lounge_price")
  3532.      */
  3533.     public function getReservationLoungePriceAction(Request $request) {
  3534.         $id $_POST['id'];
  3535. //        $codProfile = "1";
  3536. //        $codProfile = $request->request->get('idProfile');
  3537. //        $codProfile = $idProfile;
  3538.         $em $this->getDoctrine()->getManager();
  3539.         $precio $em->getRepository(ReservationLoungeProfile::class)->findOneById($id);
  3540.         $datos = array();
  3541.         if (!empty($precio)){
  3542.             $datos = array(
  3543.                 "id" => $precio->getId(),
  3544.                 "price" => $precio->getPrice()
  3545.             );
  3546.         }
  3547.         $return $datos;
  3548.         $response = new JsonResponse($return);
  3549.         return $response;
  3550.     }
  3551.     /**
  3552.      * @Route("/addloungedetails/",  name="reservations_greenpatio_addloungedetails")
  3553.      */
  3554.     public function addReservationLoungeDetailsActionRequest $request)
  3555.     {
  3556.         $lounge = new ReservationLoungeDetails();
  3557.         $form $this->createReservationLoungeDetailsCreateForm($lounge);
  3558.         return $this->render('MDS/GreenPatioBundle/reservations/add-reservations-lounge-details.html.twig',
  3559.             array('form' => $form->createView()
  3560.             ));
  3561.     }
  3562.     private function createReservationLoungeDetailsCreateForm(ReservationLoungeDetails $entity)
  3563.     {
  3564.         $form $this->createForm(ReservationLoungeDetailsType::class, $entity, array(
  3565.             'action' => $this->generateUrl('reservations_greenpatio_lounge_details_create'),
  3566.             'method' => 'POST'
  3567.         ));
  3568.         return $form;
  3569.     }
  3570.     /**
  3571.      * @Route("/createloungedetails", name="reservations_greenpatio_lounge_details_create")
  3572.      */
  3573.     public function createLoungeDetailsAction(Request $request)
  3574.     {
  3575.         $em $this->getDoctrine()->getManager();
  3576.         $lounge = new ReservationLoungeDetails();
  3577.         $form $this->createReservationLoungeDetailsCreateForm($lounge);
  3578.         $form->handleRequest($request);
  3579.         /* Obtengo usuario logueado */
  3580.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  3581.         $user_id $user_logueado->getId();
  3582.         $hoy = new \DateTime("now"NULL);
  3583.         $lounge->setCreatedAt($hoy);
  3584.         $lounge->setCreatedId($user_id);
  3585.         $lounge->setUpdatedAt($hoy);
  3586.         $lounge->setUpdatedId($user_id);
  3587.         if($form->isValid()){
  3588.             try{
  3589.                 $em->persist($lounge);
  3590.                 $em->flush();
  3591.                 $event 'The Lounge has been created.';
  3592.                 $successMessage $this->translator->trans($event);
  3593.                 $this->addFlash('mensajereservation'$successMessage);
  3594.                 $this->reordenarSalas($lounge->getRankLounge(), $lounge->getId());
  3595.             } catch (\Exception $e){
  3596.                 $event 'An error occurred: '.$e->getMessage();
  3597.                 /* Para el usuario */
  3598.                 $errorMessage $this->translator->trans($event);
  3599.                 $this->addFlash('mensajereservationerror'$errorMessage);
  3600.             }
  3601.         } else {
  3602.             $errorMessage $this->translator->trans('Error, some fields are empty');
  3603.             $this->addFlash('mensajereservationerror'$errorMessage);
  3604.         }
  3605.         return $this->redirectToRoute('reservations_greenpatio_list_lounges');
  3606.     }
  3607.     /**
  3608.      * @Route("/listloungedetails", name="reservations_greenpatio_list_lounges")
  3609.      */
  3610.     public function indexLoungesAction(Request $request) {
  3611. //        return $this->redirectToRoute('reservations_greenpatio_edit_general');
  3612.         $em $this->getDoctrine()->getManager();
  3613.         $salas $em->getRepository(ReservationLoungeDetails::class)->findAll();
  3614.         $lounge = new ReservationLoungeDetails();
  3615.         $form $this->createReservationLoungeDetailsCreateForm($lounge);
  3616.         return $this->render('MDS/GreenPatioBundle/reservations/list-reservations-lounges-details.html.twig',
  3617.             array(
  3618.                 'groups' => null,
  3619.                 'salas' => $salas,
  3620.                 'form' => $form->createView()
  3621.             )
  3622.         );
  3623.     }
  3624.     /**
  3625.      * @Route("/editloungedetails/{id}", name="reservations_lounge_details")
  3626.      */
  3627.     public function editLoungeDetailsAction($idRequest $request)
  3628.     {
  3629.         $em $this->getDoctrine()->getManager();
  3630.         $lounge $em->getRepository(ReservationLoungeDetails::class)->findOneById($id);
  3631.         $loungePictures $em->getRepository(ReservationLoungePicture::class)->findBy(
  3632.             array('loungeId' => $id,
  3633.                 'title' => null,));
  3634.         $loungeVideos $em->getRepository(ReservationLoungeVideo::class)->findByLoungeId($id);
  3635.         $loungeDescriptions $em->getRepository(ReservationLoungeDescription::class)->findByLoungeId($id);
  3636.         /* Obtengo usuario logueado */
  3637.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  3638.         $user_id $user_logueado->getId();
  3639.         /* Gestión de eventos en Log */
  3640.         $user_lastname $user_logueado->getLastname();
  3641.         $user_name $user_logueado->getName();
  3642.         $user_email $user_logueado->getEmail();
  3643.         $user_rol $user_logueado->getRoles();
  3644.         $event_url $request->getPathInfo();
  3645.         $event_complete $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
  3646.         $hoy = new \DateTime("now"NULL);
  3647.         $form $this->createEditReservationLoungeDetailsForm($lounge$id);
  3648.         // Para evitar le duplicidad de idiomas en las descripciones
  3649.         $loungeDescriptionsPreexistentes $em->getRepository(ReservationLoungeDescription::class)->findByLoungeId($id);
  3650.         $idiomasPreexistentes = array();
  3651.         foreach ($loungeDescriptionsPreexistentes as $item){
  3652.             $idiomasPreexistentes[] = $item->getLanguage();
  3653.         }
  3654.         $datos_videos = array();
  3655.         foreach ($loungeVideos as $video){
  3656.             $urvideo_final '<iframe class="embed-responsive-item" src="'.$video->getVideo().'"></iframe>';
  3657.             $datos_videos[] = array(
  3658.                 'id' => $video->getId(),
  3659.                 'urlvideo' => $urvideo_final
  3660.             );
  3661.         }
  3662.         $blueprints $em->getRepository(ReservationLoungePicture::class)->findBy(
  3663.             array('loungeId' => $id,
  3664.                   'title' => 'Blueprint',
  3665.                 )
  3666.         );
  3667.         $pictTeatro $em->getRepository(ReservationLoungePicture::class)->findBy(
  3668.             array('loungeId' => $id,
  3669.                   'title' => 'Teatro',
  3670.                 )
  3671.         );
  3672.         if (sizeof($pictTeatro) == 0) {$pictTeatro null;}
  3673.         $pictCoctel $em->getRepository(ReservationLoungePicture::class)->findBy(
  3674.             array('loungeId' => $id,
  3675.                   'title' => 'Coctel',
  3676.                 )
  3677.         );
  3678.         if (sizeof($pictCoctel) == 0) {$pictCoctel null;}
  3679.         $pictEscuela $em->getRepository(ReservationLoungePicture::class)->findBy(
  3680.             array('loungeId' => $id,
  3681.                   'title' => 'Escuela',
  3682.                 )
  3683.         );
  3684.         if (sizeof($pictEscuela) == 0) {$pictEscuela null;}
  3685.         $picsMontaje = array (
  3686.             'pictTeatro' => $pictTeatro,
  3687.             'pictCoctel' => $pictCoctel,
  3688.             'pictEscuela' => $pictEscuela
  3689.         );
  3690.         if(empty($picsMontaje['pictTeatro']) and empty($picsMontaje['pictCoctel']) and empty($picsMontaje['pictEscuela'])){
  3691.             $picsMontaje null;
  3692.         }
  3693.         $loungedimmensions $em->getRepository(ReservationLoungeDetails::class)->findOneById($id);
  3694.         return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-lounge-details.html.twig',
  3695.             array(
  3696.                 'id' => $id,
  3697.                 'hoy' => $hoy,
  3698.                 'lounge' => $lounge,
  3699.                 'descriptions' => $loungeDescriptions,
  3700.                 'pictures' => $loungePictures,
  3701.                 'blueprints' => $blueprints,
  3702.                 'picsMontaje' => $picsMontaje,
  3703.                 'loungedimmensions' => $loungedimmensions,
  3704.                 'videos' => $datos_videos,
  3705.                 'idiomasPreexistentes' => $idiomasPreexistentes,
  3706.                 'form' => $form->createView()
  3707.             ));
  3708.     }
  3709.     private function createEditReservationLoungeDetailsForm(ReservationLoungeDetails $entity$id)
  3710.     {
  3711.         $form $this->createForm(ReservationLoungeDetailsType::class, $entity,
  3712.             array(
  3713.                 'action' => $this->generateUrl('reservations_lounge_details_update',
  3714.                     array(
  3715.                         'id' => $id,
  3716.                         'price' => $entity
  3717.                     )
  3718.                 ), 'method' => 'PUT'));
  3719.         return $form;
  3720.     }
  3721.     /**
  3722.      * @Route("/updateloungedetails/{id}", name="reservations_lounge_details_update")
  3723.      */
  3724.     public function updateLoungeDetailsAction($idRequest $request)
  3725.     {
  3726.         $em $this->getDoctrine()->getManager();
  3727.         $lounge $em->getRepository(ReservationLoungeDetails::class)->findOneById($id);
  3728.         $lounge->setName($request->request->get('mds_greenpatiobundle_reservationloungedetails')['name']);
  3729.         $preNumber $lounge->getRankLounge();
  3730.         $postNumber $request->request->get('mds_greenpatiobundle_reservationloungedetails')['rankLounge'];
  3731.         $hoy = new \DateTime("now"NULL);
  3732.         $form $this->createEditReservationLoungeDetailsForm($lounge$id);
  3733.         $form->handleRequest($request);
  3734.         if($form->isValid())
  3735.         {
  3736.             /* Obtengo usuario logueado */
  3737.             $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  3738.             $user_id $user_logueado->getId();
  3739.             /* Gestión de eventos en Log */
  3740.             $user_lastname $user_logueado->getLastname();
  3741.             $user_name $user_logueado->getName();
  3742.             $user_email $user_logueado->getEmail();
  3743.             $user_rol $user_logueado->getRoles();
  3744.             $event_url $request->getPathInfo();
  3745.             $event_complete $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
  3746.             $lounge->setUpdatedId($user_id);
  3747.             $lounge->setUpdatedAt($hoy);
  3748.             try{
  3749.                 // Reordenar salas si se ha cambiado el rank number de la sala
  3750.                 if (!( $preNumber == $postNumber)){ $this->reordenarSalas($postNumber$lounge->getId()); }
  3751.                 $em->persist($lounge);
  3752.                 $em->flush();
  3753.                 $event 'The lounge has been Updated. Now';
  3754.                 $successMessage $this->translator->trans($event);
  3755.                 $this->addFlash('mensajereservation'$successMessage);
  3756.             } catch (\Exception $e){
  3757.                 $event 'An error occurred: '.$e->getMessage();
  3758.                 /* Para el usuario */
  3759.                 $errorMessage $this->translator->trans($event);
  3760.                 $this->addFlash('mensajereservationerror'$errorMessage);
  3761.             }
  3762.             /* Fin Gestión de eventos en Log */
  3763.             return $this->redirectToRoute('reservations_greenpatio_list_lounges');
  3764.         }else{
  3765.             $errorMessage $this->translator->trans('Error, some fields are empty');
  3766.             $this->addFlash('mensajereservationerror'$errorMessage);
  3767.         }
  3768.         return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-lounge-details.html.twig',
  3769.             array(
  3770.                 'id' => $lounge->getId(),
  3771.                 'lounge' => $lounge,
  3772.                 'form' => $form->createView()
  3773.             )
  3774.         );
  3775.     }
  3776.     /**
  3777.      * @Route("/deleteloungedetails/{id}", name="reservations_lounge_details_delete")
  3778.      */
  3779.     public function deleteLoungeDetailsAction($idRequest $request)
  3780.     {
  3781.         $em $this->getDoctrine()->getManager();
  3782.         $lounge $em->getRepository(ReservationLoungeDetails::class)->findOneById($id);
  3783.         try{
  3784.             $em->remove($lounge);
  3785.             $em->flush();
  3786.             // INICIO: Eliminamos los precios asociados a la sala
  3787.                 $profiles $em->getRepository(ReservationLoungeProfile::class)->findByLoungeId($id);
  3788.                 foreach ($profiles as $item){
  3789.                     $em->remove($item);
  3790.                     $em->flush();
  3791.                 }
  3792.             // FIN: Eliminamos los precios asociados a la sala
  3793.             $event 'The Reservation has been Deleted. Now';
  3794.             $successMessage $this->translator->trans($event);
  3795.             $this->addFlash('mensajereservation'$successMessage);
  3796.         } catch (\Exception $e){
  3797.             $event 'An error occurred: '.$e->getMessage();
  3798.             /* Para el usuario */
  3799.             $errorMessage $this->translator->trans($event);
  3800.             $this->addFlash('mensajereservationerror'$errorMessage);
  3801.         }
  3802.         /* Fin Gestión de eventos en Log */
  3803.         return $this->redirectToRoute('reservations_greenpatio_list_lounges');
  3804.     }
  3805.     /**
  3806.      * @Route("/deleteloungeelement/{idlounge}/{idtype}/{idelement}", name="reservations_lounge_element_delete")
  3807.      */
  3808.     public function deleteLoungeElementAction($idlounge$idtype$idelementRequest $request)
  3809.     {
  3810.         $em $this->getDoctrine()->getManager();
  3811.         switch ($idtype){
  3812.             case 1//Descripcion
  3813.                 $item $em->getRepository(ReservationLoungeDescription::class)->findOneById($idelement);
  3814.                 break;
  3815.             case 2//Imagenes
  3816.                 $item $em->getRepository(ReservationLoungePicture::class)->findOneById($idelement);
  3817.                 break;
  3818.             case 3//Videos
  3819.                 $item $em->getRepository(ReservationLoungeVideo::class)->findOneById($idelement);
  3820.                 break;
  3821.             default:
  3822.                 $item null;
  3823.                 break;
  3824.         }
  3825.         try{
  3826.             $em->remove($item);
  3827.             $em->flush();
  3828.             $event 'The Item has been Deleted. Now';
  3829.             $successMessage $this->translator->trans($event);
  3830.             $this->addFlash('mensajereservation'$successMessage);
  3831.         } catch (\Exception $e){
  3832.             $event 'An error occurred: '.$e->getMessage();
  3833.             /* Para el usuario */
  3834.             $errorMessage $this->translator->trans($event);
  3835.             $this->addFlash('mensajereservationerror'$errorMessage);
  3836.         }
  3837.         /* Fin Gestión de eventos en Log */
  3838.         return $this->redirectToRoute('reservations_lounge_details',
  3839.             array(
  3840.                 'id' => $idlounge
  3841.             ));
  3842.     }
  3843.     /**
  3844.      *@Route("/exclamation", name="get_exclamation")
  3845.      */
  3846.     public function exclamationActionRequest $request) {
  3847. //    public function exclamationAction($dateStar, $dateEnd, $hourStar, $hourEnd, $profileId, Request $request) {
  3848. //@Route("/exclamation/{dateStar}/{dateEnd}/{hourStar}/{hourEnd}/{profileId}", name="get_exclamation")
  3849.         $dateStar $request->request->get('dateStar');
  3850.         $dateEnd $request->request->get('dateEnd');
  3851.         $hourStar $request->request->get('hourStar');
  3852.         $hourEnd $request->request->get('hourEnd');
  3853.         $profileId $request->request->get('profileId');
  3854.         $mountingDate $request->request->get('mountingDate');
  3855.         $mountingHourStart $request->request->get('mountingHourStart');
  3856.         $removalDate $request->request->get('removalDate');
  3857.         $removalHourEnd $request->request->get('removalHourEnd');
  3858.         // INICIO: Si hay montaje o desmontaje  en el evento nuevo las fechas a utilizar son estas y no las del evento
  3859.         if (!empty($mountingDate)){
  3860.             $dateStar $mountingDate;
  3861.             if (!empty($mountingHourStart)){
  3862.                 $hourStar $mountingHourStart;
  3863.             }
  3864.         }
  3865.         if (!empty($removalDate)){
  3866.             $dateEnd $removalDate;
  3867.             if (!empty($removalHourEnd)){
  3868.                 $hourEnd $removalHourEnd;
  3869.             }
  3870.         }
  3871.         // FIN: Si hay montaje o desmontaje  en el evento nuevo las fechas a utilizar son estas y no las del evento
  3872.         $em $this->getDoctrine()->getManager();
  3873.         $loungeId $em->getRepository(ReservationLoungeProfile::class)->findOneById($profileId);
  3874.         $newdateStar $dateStar.' '.$hourStar.':00';
  3875.         $newdateEnd $dateEnd .' '.$hourEnd.':00';
  3876.         $parameters = array(
  3877.             'dateStar' => $newdateStar,
  3878.             'dateEnd' => $newdateEnd,
  3879.             'idLounge' => $loungeId->getLoungeId(),
  3880.         );
  3881.         $dql 'SELECT i
  3882.                     FROM GreenPatioBundle:ReservationLounge i
  3883.                     WHERE  i.dateStart >= :dateStar
  3884.                       and i.dateStart <= :dateEnd
  3885.                       and i.idLounge = :idLounge';
  3886.         $query $em->createQuery($dql)->setParameters($parameters);
  3887.         $reservationLounge1 $query->getResult();
  3888.         $dql 'SELECT i
  3889.                     FROM GreenPatioBundle:ReservationLounge i
  3890.                     WHERE  i.dateEnd >= :dateStar
  3891.                       and i.dateEnd <= :dateEnd
  3892.                       and i.idLounge = :idLounge';
  3893.         $query $em->createQuery($dql)->setParameters($parameters);
  3894.         $reservationLounge2 $query->getResult();
  3895.         $parameters = array(
  3896.             'dateStar' => $newdateStar,
  3897.             'idLounge' => $loungeId->getLoungeId()
  3898.         );
  3899.         $dql 'SELECT i
  3900.                     FROM GreenPatioBundle:ReservationLounge i
  3901.                     WHERE  :dateStar >= i.dateStart
  3902.                       and :dateStar <= i.dateEnd
  3903.                       and i.idLounge = :idLounge';
  3904.         $query $em->createQuery($dql)->setParameters($parameters);
  3905.         $reservationLounge3 $query->getResult();
  3906.         $parameters = array(
  3907.             'dateEnd' => $newdateEnd,
  3908.             'idLounge' => $loungeId->getLoungeId(),
  3909.         );
  3910.         $dql 'SELECT i
  3911.                     FROM GreenPatioBundle:ReservationLounge i
  3912.                     WHERE  :dateEnd >= i.dateStart
  3913.                       and :dateEnd <= i.dateEnd
  3914.                       and i.idLounge = :idLounge';
  3915.         $query $em->createQuery($dql)->setParameters($parameters);
  3916.         $reservationLounge4 $query->getResult();
  3917.         // INICIO: Si hay montaje o desmontaje  en los eventos de la BD, las fechas a utilizar son estas y no las del evento
  3918.         $parameters = array(
  3919.             'dateStar' => $newdateStar,
  3920.             'dateEnd' => $newdateEnd,
  3921.             'idLounge' => $loungeId->getLoungeId(),
  3922.         );
  3923.         $dql 'SELECT i
  3924.                     FROM GreenPatioBundle:ReservationLounge i
  3925.                     WHERE  i.mountingDate >= :dateStar
  3926.                       and i.mountingDate <= :dateEnd
  3927.                       and i.idLounge = :idLounge';
  3928.         $query $em->createQuery($dql)->setParameters($parameters);
  3929.         $reservationLounge5 $query->getResult();
  3930.         // FIN: Si hay montaje o desmontaje  en los eventos de la BD, las fechas a utilizar son estas y no las del evento
  3931.         $reservationLounge array_merge($reservationLounge1,$reservationLounge2,$reservationLounge3,$reservationLounge4);
  3932.         $data = array();
  3933.         foreach ($reservationLounge as $res){
  3934.             $reservation $em->getRepository(Reservation::class)->findOneById($res->getIdReservation());
  3935.             if (!is_null($reservation->getIdProposal() )){
  3936.                 $proposal $em->getRepository(Proposal::class)->findOneById($reservation->getIdProposal());
  3937.                 $user $em->getRepository(User::class)->findOneById($proposal->getAgentId());
  3938.                 $data[] = array(
  3939.                     'name' => 'Id Proposal',
  3940.                     'idproposal' => $proposal->getId(),
  3941.                     'title' => $proposal->getTitle(),
  3942.                     'Agent' => $user->getName().' '.$user->getLastname(),
  3943.                 );
  3944.             }else{
  3945.                 $user $em->getRepository(User::class)->findOneById($reservation->getCreatedBy());
  3946.                 $data[] = array(
  3947.                     'name' => 'Id Green Patio',
  3948.                     'idproposal' => $reservation->getId(),
  3949.                     'title' => $reservation->getTitle(),
  3950.                     'Agent' => $user->getName().' '.$user->getLastname(),
  3951.                 );
  3952.             }
  3953.         }
  3954.         $return = array(
  3955.             'reservation' => $data,
  3956.         );
  3957.         $response = new JsonResponse($return);
  3958.         return $response;
  3959.     }
  3960.     /**
  3961.      * @Route("/addperiod/",  name="reservations_greenpatio_addperiod")
  3962.      */
  3963.     public function addReservationPeriodActionRequest $request)
  3964.     {
  3965.         $period = new ReservationPeriod();
  3966.         $form $this->createReservationperiodCreateForm($period);
  3967.         return $this->render('MDS/GreenPatioBundle/reservations/list-reservations-period.html.twig',
  3968.             array('form' => $form->createView()
  3969.             ));
  3970.     }
  3971.     private function createReservationperiodCreateForm(Reservationperiod $entity)
  3972.     {
  3973.         $form $this->createForm(ReservationPeriodType::class, $entity, array(
  3974.             'action' => $this->generateUrl('reservations_greenpatio_period_create'),
  3975.             'method' => 'POST'
  3976.         ));
  3977.         return $form;
  3978.     }
  3979.     /**
  3980.      * @Route("/createperiod", name="reservations_greenpatio_period_create")
  3981.      */
  3982.     public function createPeriodAction(Request $request)
  3983.     {
  3984.         $em $this->getDoctrine()->getManager();
  3985.         $period = new ReservationPeriod();
  3986.         $form $this->createReservationPeriodCreateForm($period);
  3987.         $form->handleRequest($request);
  3988.         /* Obtengo usuario logueado */
  3989.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  3990.         $user_id $user_logueado->getId();
  3991.         $hoy = new \DateTime("now"NULL);
  3992.         $period->setCreatedAt($hoy);
  3993.         $period->setCreatedId($user_id);
  3994.         $period->setUpdatedAt($hoy);
  3995.         $period->setUpdatedId($user_id);
  3996.         if($form->isValid())
  3997.         {
  3998.             try{
  3999.                 $em->persist($period);
  4000.                 $em->flush();
  4001.                 $event 'The Period has been created.';
  4002.                 $successMessage $this->translator->trans($event);
  4003.                 $this->addFlash('mensajereservation'$successMessage);
  4004.             } catch (\Exception $e){
  4005.                 $event 'An error occurred: '.$e->getMessage();
  4006.                 /* Para el usuario */
  4007.                 $errorMessage $this->translator->trans($event);
  4008.                 $this->addFlash('mensajereservationerror'$errorMessage);
  4009.             }
  4010.         } else {
  4011.             $errorMessage $this->translator->trans('Error, some fields are empty');
  4012.             $this->addFlash('mensajereservationerror'$errorMessage);
  4013.         }
  4014.         return $this->redirectToRoute('reservations_greenpatio_list_period');
  4015.     }
  4016.     /**
  4017.      * @Route("/listperiod", name="reservations_greenpatio_list_period")
  4018.      */
  4019.     public function indexPeriodAction(Request $request) {
  4020.         //return $this->redirectToRoute('reservations_greenpatio_edit_general');
  4021.         $em $this->getDoctrine()->getManager();
  4022.         $periods $em->getRepository(ReservationPeriod::class)->findAll();
  4023.         $period = new ReservationPeriod();
  4024.         $form $this->createReservationPeriodCreateForm($period);
  4025.         return $this->render('MDS/GreenPatioBundle/reservations/list-reservations-period.html.twig',
  4026.             array(
  4027.                 'groups' => null,
  4028.                 'form' => $form->createView(),
  4029.                 'periods' => $periods
  4030.             )
  4031.         );
  4032.     }
  4033.     /**
  4034.      * @Route("/deleteperiod/{id}", name="reservations_period_delete")
  4035.      */
  4036.     public function deletePeriodAction($idRequest $request)
  4037.     {
  4038.         $em $this->getDoctrine()->getManager();
  4039.         $period $em->getRepository(ReservationPeriod::class)->findOneById($id);
  4040.         try{
  4041.             $em->remove($period);
  4042.             $em->flush();
  4043.             $event 'The Reservation has been Deleted. Now';
  4044.             $successMessage $this->translator->trans($event);
  4045.             $this->addFlash('mensajereservation'$successMessage);
  4046.         } catch (\Exception $e){
  4047.             $event 'An error occurred: '.$e->getMessage();
  4048.             /* Para el usuario */
  4049.             $errorMessage $this->translator->trans($event);
  4050.             $this->addFlash('mensajereservationerror'$errorMessage);
  4051.         }
  4052.         /* Fin Gestión de eventos en Log */
  4053.         return $this->redirectToRoute('reservations_greenpatio_list_period');
  4054.     }
  4055.     /**
  4056.      * @Route("/editperiod/{id}", name="reservations_edit_period")
  4057.      */
  4058.     public function editPeriodAction($idRequest $request)
  4059.     {
  4060.         $em $this->getDoctrine()->getManager();
  4061.         $period $em->getRepository(ReservationPeriod::class)->findOneById($id);
  4062.         /* Obtengo usuario logueado */
  4063.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  4064.         $user_id $user_logueado->getId();
  4065.         /* Gestión de eventos en Log */
  4066.         $user_lastname $user_logueado->getLastname();
  4067.         $user_name $user_logueado->getName();
  4068.         $user_email $user_logueado->getEmail();
  4069.         $user_rol $user_logueado->getRoles();
  4070.         $event_url $request->getPathInfo();
  4071.         $event_complete $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
  4072.         $hoy = new \DateTime("now"NULL);
  4073.         $form $this->createEditPeriodForm($period$id);
  4074.         return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-period.html.twig',
  4075.             array(
  4076.                 'id' => $id,
  4077.                 'hoy' => $hoy,
  4078.                 'period' => $period,
  4079.                 'form' => $form->createView()
  4080.             ));
  4081.     }
  4082.     private function createEditPeriodForm(ReservationPeriod $entity$id)
  4083.     {
  4084.         $form $this->createForm(ReservationPeriodType::class, $entity,
  4085.             array(
  4086.                 'action' => $this->generateUrl('reservations_period_update',
  4087.                     array(
  4088.                         'id' => $id,
  4089.                         'period' => $entity
  4090.                     )
  4091.                 ), 'method' => 'PUT'));
  4092.         return $form;
  4093.     }
  4094.     /**
  4095.      * @Route("/updateperiod/{id}", name="reservations_period_update")
  4096.      */
  4097.     public function updatePeriodAction($idRequest $request)
  4098.     {
  4099.         $em $this->getDoctrine()->getManager();
  4100.         $period $em->getRepository(ReservationPeriod::class)->findOneById($id);
  4101.         $newName $request->request->get('mds_greenpatiobundle_reservationperiod')['name'];
  4102.         $period->setName($newName);
  4103.         $hoy = new \DateTime("now"NULL);
  4104.         $form $this->createEditPeriodForm($period$id);
  4105.         $form->handleRequest($request);
  4106.         if($form->isValid())
  4107.         {
  4108.             /* Obtengo usuario logueado */
  4109.             $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  4110.             $user_id $user_logueado->getId();
  4111.             /* Gestión de eventos en Log */
  4112.             $user_lastname $user_logueado->getLastname();
  4113.             $user_name $user_logueado->getName();
  4114.             $user_email $user_logueado->getEmail();
  4115.             $user_rol $user_logueado->getRoles();
  4116.             $event_url $request->getPathInfo();
  4117.             $event_complete $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
  4118.             $period->setUpdatedId($user_id);
  4119.             $period->setUpdatedAt($hoy);
  4120.             try{
  4121.                 $em->persist($period);
  4122.                 $em->flush();
  4123.                 $event 'The period has been Updated. Now';
  4124.                 $successMessage $this->translator->trans($event);
  4125.                 $this->addFlash('mensajereservation'$successMessage);
  4126.             } catch (\Exception $e){
  4127.                 $event 'An error occurred: '.$e->getMessage();
  4128.                 /* Para el usuario */
  4129.                 $errorMessage $this->translator->trans($event);
  4130.                 $this->addFlash('mensajereservationerror'$errorMessage);
  4131.             }
  4132.             /* Fin Gestión de eventos en Log */
  4133.             return $this->redirectToRoute('reservations_greenpatio_list_period');
  4134.         }else{
  4135.             $errorMessage $this->translator->trans('Error, some fields are empty');
  4136.             $this->addFlash('mensajereservationerror'$errorMessage);
  4137.         }
  4138.         return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-period.html.twig',
  4139.             array(
  4140.                 'id' => $id,
  4141.                 'hoy' => $hoy,
  4142.                 'period' => $period,
  4143.                 'form' => $form->createView()
  4144.             )
  4145.         );
  4146.     }
  4147.     /**
  4148.      * @Route("/getperiodos/",  name="reservations_greenpatio_get_periods")
  4149.      */
  4150.     public function addReservationPeriodsActionRequest $request)
  4151.     {
  4152.         $em $this->getDoctrine()->getManager();
  4153.         $periods $em->getRepository(ReservationPeriod::class)->findAll();
  4154.         $data = array();
  4155.         foreach ($periods as $items){
  4156.             $data[] = array(
  4157.                 'id' => $items->getId(),
  4158.                 'name' => $items->getName(),
  4159.             );
  4160.         }
  4161.         $return = array(
  4162.             'periods' => $data,
  4163.         );
  4164.         $response = new JsonResponse($return);
  4165.         return $response;
  4166.     }
  4167.     /**
  4168.      * @Route("/addsimple/",  name="reservations_greenpatio_add_simple")
  4169.      */
  4170.     public function addReservationSimpleAction(Request $request)
  4171.     {
  4172.         $em $this->getDoctrine()->getManager();
  4173.         $reserv = new Reservation();
  4174.         $form $this->createReservationCreateForm($reserv);
  4175.         $parameters = array();
  4176.         $dql 'SELECT p
  4177.                 FROM App:ClientContact p
  4178.                 ORDER BY p.name ASC ';
  4179.         $query $em->createQuery($dql)->setParameters($parameters);
  4180.         $clientsContact $query->getResult();
  4181.         return $this->render('MDS/GreenPatioBundle/reservations/add-reservations-simple.html.twig',
  4182.             array(
  4183.                 'form' => $form->createView(),
  4184.                 'clientsContact' => $clientsContact,
  4185.             ));
  4186.     }
  4187.     private function createReservationCreateForm(Reservation $entity)
  4188.     {
  4189.         $form $this->createForm(ReservationType::class, $entity, array(
  4190.             'action' => $this->generateUrl('reservations_greenpatio_create_simple'),
  4191.             'method' => 'POST'
  4192.         ));
  4193.         return $form;
  4194.     }
  4195.     /**
  4196.      * @Route("/createsimple", name="reservations_greenpatio_create_simple")
  4197.      */
  4198.     public function createSimpleAction(Request $request)
  4199.     {
  4200.         $em $this->getDoctrine()->getManager();
  4201.         $clientContact $request->request->get('clientContact');
  4202.         $contactUnregistered $request->request->get('contactUnregistered');
  4203.         $nameContactUnregistered $request->request->get('nameContactUnregistered');
  4204.         $phoneContactUnregistered $request->request->get('phoneContactUnregistered');
  4205.         $daysBlockToEmail $request->request->get('days');
  4206.         $reserva = new Reservation();
  4207.         $form $this->createReservationCreateForm($reserva);
  4208.         $form->handleRequest($request);
  4209.         /* Obtengo usuario logueado */
  4210.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  4211.         $user_id $user_logueado->getId();
  4212.         $hoy = new \DateTime("now"NULL);
  4213.         if($form->isValid())
  4214.         {
  4215.             $reserva->setUpdatedBy($user_id);
  4216.             $reserva->setUpdatedAt($hoy);
  4217.             // El proveedor de catering no es obligatorio
  4218.             if (is_null($reserva->getCateringName())){
  4219.                 $reserva->setSupplier(4765);
  4220.                 $reserva->setCateringName('HIGO & TRIGO, S.L.');        // Por defecto se desea el Catering de Higo&Trigo
  4221.             } else {
  4222.                 $reserva->setSupplier($reserva->getCateringName()->getId());
  4223.                 $reserva->setCateringName($reserva->getCateringName()->getName());
  4224.             }
  4225.             if (!empty($reserva->getClient())){
  4226.                 $reserva->setClient($reserva->getClient()->getId());
  4227.             }
  4228.             $reserva->setCreatedAt($hoy);
  4229.             $reserva->setCreatedBy($user_id);
  4230.             if(empty($reserva->getDaysBlock()) or !(is_numeric($reserva->getDaysBlock()))){
  4231.                 $reserva->setDaysBlock(7);
  4232.             }
  4233.             if(is_null($reserva->getPriority()) or empty($reserva->getPriority()) or ($reserva->getPriority() == 'Auto')){
  4234.                 $reserva->setPriority(1);
  4235.             } else {
  4236.                 // Se ha establecido una prioridad y todas las prioridades que coincidan con este evento deben ser alteradas
  4237.                 // PENDIENTE A HABLAR CON RAFA
  4238.             }
  4239.             // No hay salas, se asigna a la reserva la fecha del dia actual
  4240.             $reserva->setDateStart(new \DateTime('2078-01-01'));
  4241.             $reserva->setDateEnd(new \DateTime('2000-01-01'));
  4242.             if(!empty($daysBlockToEmail)){ $reserva->setDays($daysBlockToEmail); }
  4243.             if(!empty($clientContact)){ $reserva->setClientContact($clientContact); }
  4244.             if(!empty($contactUnregistered)){
  4245.                 if (filter_var($contactUnregisteredFILTER_VALIDATE_EMAIL)) {          // Validamos el correo electronico
  4246.                     $reserva->setContactUnregistered($contactUnregistered);
  4247.                 }
  4248.             }
  4249.             if(!empty($nameContactUnregistered)){
  4250.                 $reserva->setNameContactUnregistered($nameContactUnregistered);
  4251.             }
  4252.             if(!empty($phoneContactUnregistered)){
  4253.                 $reserva->setPhoneContactUnregistered($phoneContactUnregistered);
  4254.             }
  4255.             if(empty($reserva->getStatus())){
  4256.                 $reserva->setStatus('Iniciado');
  4257.             } else {
  4258.                 //No se debe crear un evento con estado confirmado. Salva y Rafa seran quienes confirmen los eventos
  4259.                 if(($reserva->getStatus() == 'Confirmed')){
  4260. //                    $reserva->setStatus('Cotizado');              //Ya no es necesario que Rafa o Salva confirmen
  4261.                 }
  4262.             }
  4263.             // Genera un token único utilizando la función uniqid() de PHP
  4264.             $token uniqid();
  4265.             $reserva->setToken($token);
  4266.             try{
  4267.                 $em->persist($reserva);
  4268.                 $em->flush();
  4269.                 $event 'The Reservation has been created.';
  4270.                 $successMessage $this->translator->trans($event);
  4271.                 $this->addFlash('mensajereservation'$successMessage);
  4272.             } catch (\Exception $e){
  4273.                 $event 'An error occurred: '.$e->getMessage();
  4274.                 $errorMessage $this->translator->trans($event);
  4275.                 $this->addFlash('mensajereservationerror'$errorMessage);
  4276.             }
  4277.             //Envio de correo al cliente y al agente si es un bloqueo
  4278.             if(is_null($reserva->getStatus())){
  4279.                 $reserva->setStatus('Cotizado');
  4280.                 $em->persist($reserva);
  4281.                 $em->flush();
  4282.             } else {
  4283.                 if (($reserva->getStatus() == 'Bloqueo')) {
  4284.                     if ((!empty($reserva->getClient())) or (!empty($reserva->getClientContact())) or (!empty($reserva->getContactUnregistered()))) {
  4285.                         //Solo se envia correo de notificacion del correo si hay cliente o contacto o contacto no registrado
  4286.                         $client $em->getRepository(Client::class)->findOneById($reserva->getClient());
  4287.                         $mailAddressTo null;
  4288.                         if (!empty($client) and (!empty($client->getEmail()))){ $mailAddressTo $client->getEmail(); }         // Si hay cliente con correo se le envia a este
  4289.                         if (!empty($reserva->getClientContact())){
  4290.                             $contacto $em->getRepository(ClientContact::class)->findOneById($reserva->getClientContact());
  4291.                             if (!empty($contacto) and (!empty($contacto->getEmail()))){ $mailAddressTo $contacto->getEmail(); }   // Si hay un contacto seleccionado tiene prioridad sobre el contacto de cliente
  4292.                         }
  4293.                         if (!empty($reserva->getContactUnregistered())){ $mailAddressTo $reserva->getContactUnregistered(); }     // Si hay correo de contacto no registrado este tiene prioridad sobre todos
  4294.                         if (!empty($mailAddressTo)) {
  4295.                             $agente $em->getRepository(User::class)->findOneById($user_id);
  4296.                             $mailAddressFrom $agente->getEmail();
  4297.                             $mailSubject 'Notificación de Bloqueo - Reserva de espacio en Green Patio';
  4298.                             $mailBody 'Estimado cliente,' .
  4299.                                 '<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.' .
  4300.                                 '<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.' .
  4301.                                 '<br><br>Reserva: ' $reserva->getId() .' - '$reserva->getTitle();
  4302.                             if (!empty($reserva->getDays())){ $mailBody $mailBody '<br>Días bloqueados: '.$reserva->getDays(); }
  4303.                             $mailBody $mailBody '<br><br><br>Muchas gracias por su colaboración.<br><br><br>';
  4304.                             //Se envia el correo al cliente y al agente
  4305.                             $this->sendMail($mailAddressFrom$mailAddressTo$mailSubject$mailBody);
  4306.                             //Se genera el control de la alerta
  4307.                             $this->makeAlert($reserva->getId(), $reserva->getClient(), $mailAddressTo$agente->getId(), $agente->getEmail());
  4308.                         }
  4309.                     }
  4310.                 }
  4311.             }
  4312.         } else {
  4313.             $errorMessagebase $this->translator->trans('Error, some fields are empty');
  4314.             $this->addFlash('mensajetracingerror'$errorMessagebase);
  4315.             $periods $em->getRepository(ReservationPeriod::class)->findAll();
  4316.             return $this->render('MDS/GreenPatioBundle/reservations/add-reservations.html.twig',
  4317.                 array(
  4318.                     'form' => $form->createView(),
  4319.                     'periods' => $periods,
  4320.                 ));
  4321.         }
  4322.         $id $reserva->getId();
  4323.         // Sincronización con HT
  4324.         if (!empty($reserva)) {
  4325.             // Rafa indico que siempre se sincronice al abrir un expediente de GP
  4326.             if (in_array($reserva->getStatus(), [null'''Confirmed''Invoiced''Iniciado''Cotizado''Bloqueo'])) {
  4327. //            if ($reserva->getStatus() == 'Confirmed' or $reserva->getStatus() ==  'Invoiced' or $reserva->getStatus() == 'Iniciado' or $reserva->getStatus() == 'Cotizado' or $reserva->getStatus() ==  'Bloqueo') {
  4328.                 if ($reserva->getCateringName() == 'HIGO & TRIGO, S.L.') {
  4329.                     // Si no se ha creado aun el expediente de HT debemos crearlo
  4330.                     $htFile $em->getRepository(HtFile::class)->findByReservation($reserva);
  4331.                     if (empty($htFile)) { return $this->redirectToRoute('sinc_gp_ht', array('id' => $id,)); }
  4332.                 }
  4333.             }
  4334.         }
  4335.         // Sincronización con Av Express
  4336.         $cotizable $this->laReservaEsCotizable($reserva->getId());
  4337.         if ($cotizable) {
  4338.             // Rafa indico que siempre se sincronice al abrir un expediente de GP
  4339.             if (in_array($reserva->getStatus(), [null'''Confirmed''Invoiced''Iniciado''Cotizado''Bloqueo'])) {
  4340. //            if (in_array($reserva->getStatus(), ['Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
  4341.                 $AveFile $em->getRepository(AveFiles::class)->findByReservation($reserva);
  4342.                 if (empty($AveFile)) {
  4343.                     // Si no se ha creado aun el expediente de Av Express debemos crearlo
  4344.                     return $this->redirectToRoute('sinc_gp_ave', array('id' => $id,));
  4345.                 }
  4346.             }
  4347.         }
  4348.         return $this->redirectToRoute('reservations_greenpatio_edit_simple', array( 'id' => $id'token' => null ));
  4349.     }
  4350.     /**
  4351.      * @Route("/editsimple/{id}",  name="reservations_greenpatio_edit_simple")
  4352.      */
  4353.     public function editReservationSimpleItemsAction($idRequest $request)
  4354.     {
  4355.         $em $this->getDoctrine()->getManager();
  4356.         $lounges $em->getRepository(ReservationLounge::class)->findByIdReservation($id);
  4357.         $loungesSimple $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($id);
  4358.         $services $em->getRepository(ReservationService::class)->findByReservationId($id);
  4359.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  4360.         $lounge = new ReservationLounge();
  4361.         $lounge->setIdReservation($id);
  4362.         $monDesmon = new ReservationLounge();
  4363.         $monDesmon->setIdReservation($id);
  4364.         $form1 $this->createReservationCreateForm($reserva);
  4365.         $form2 $this->createReservationLoungeCreateForm($lounge);
  4366.         $form3 $this->createReservationLoungeMonDesCreateForm($monDesmon);
  4367.         //UPDATE GREEN
  4368.         if (empty($loungesSimple)){
  4369.             if (!empty($lounges)){
  4370.                 $arrayLoungesByDay = array();
  4371.                 // INICIO: Se forma el arreglo para las salas dia a dia
  4372.                 foreach ($lounges as $item){
  4373.                     // Con un Temporal se ponen a cero las horas para que el calculo de los dias (->diff) sean exactos
  4374.                     $itemTemp $item;
  4375.                     $tempDateStart $item->getDateStart()->format('Y-m-d H:i'); // Se estaba perdiendo el valor de $item en horas y minutos
  4376.                     $tempDateEnd $item->getDateEnd()->format('Y-m-d H:i');
  4377.                     $itemTemp->setDateStart(new DateTime ($itemTemp->getDateStart()->format('Y-m-d')));
  4378.                     $itemTemp->setDateEnd(new DateTime ($itemTemp->getDateEnd()->format('Y-m-d')));
  4379.                     if ($item->getDateStart() < $item->getDateEnd()) { $i = (($itemTemp->getDateEnd()->diff($itemTemp->getDateStart()))->days) + 1; } else { $i 1; }
  4380.                     for ($indice 0$indice $i$indice++){
  4381.                         $item->setDateStart(new DateTime($tempDateStart));
  4382.                         $item->setDateEnd(new DateTime($tempDateEnd));
  4383.                         if ($item->getDateStart() < $item->getDateEnd()){
  4384.                             // Estas trabajando un registro antiguo de multiples dias
  4385.                             $dateTemp = ($item->getDateStart())->format('Ymd') + $indice;
  4386.                         } else {
  4387.                             $dateTemp = ($item->getDateStart())->format('Ymd');
  4388.                         }
  4389.                         $arrayLoungesByDay[$item->getRankQuote()][$dateTemp][] = array(
  4390.                             'id' => "0",
  4391.                             'loungeName' => $item->getLoungeName(),
  4392.                             'servicePrice' => $item->getServicePrice(),
  4393.                             'pax' => $item->getPax(),
  4394.                             'type' => $item->getType(),
  4395.                             'dateStart' => $item->getDateStart(),
  4396.                             'dateEnd' => $item->getDateEnd(),
  4397.                         );
  4398.                     }
  4399.                     ksort($arrayLoungesByDay[$item->getRankQuote()]);
  4400.                 }
  4401.             } else {
  4402.                 $arrayLoungesByDay = array();
  4403.             }
  4404.         } else {
  4405.             foreach ($loungesSimple as $item){
  4406.                 $dateStart $item->getDateStart()->format('Ymd');
  4407.                 $arrayLoungesByDay[$item->getRankQuote()][$dateStart][] = $item;
  4408.                 ksort($arrayLoungesByDay[$item->getRankQuote()]);
  4409.             }
  4410.         }
  4411.         // FIN: Se forma el arreglo para las salas dia a dia
  4412.         $numeroItems sizeof($arrayLoungesByDay);
  4413.         $data $this->CalculosTotalesEditSimple($reserva->getId());
  4414.         $client $em->getRepository(Client::class)->findOneById($reserva->getClient());
  4415.         if (!empty($client)){ $clientId $client->getId(); } else { $clientId 0; }
  4416.         $clients $em->getRepository(Client::class)->findAll();
  4417.         /* CONSULTAMOS PARA SUMAR  */
  4418.         $parameters = array( 'tags' => 'CATERING''company' => 'HIGO & TRIGO, S.L.',  );
  4419.         $dql 'SELECT p
  4420.                 FROM App\Entity\Supplier p
  4421.                 WHERE (p.tags LIKE :tags) AND (p.company <> :company) 
  4422.                 ORDER BY p.company ASC ';
  4423.         $query $em->createQuery($dql)->setParameters($parameters);
  4424.         $caterings $query->getResult();
  4425.         // Agregamos el catering de Higo & Trigo de primero
  4426.         $catHigoTrigo $em->getRepository(Supplier::class)->findOneById(4765);
  4427.         array_unshift($caterings$catHigoTrigo);
  4428.         $userCreatedBy $em->getRepository(User::class)->findOneById($reserva->getCreatedBy());
  4429.         $createdBy $userCreatedBy->getName().' '.$userCreatedBy->getLastName();
  4430.         $parameters = array();
  4431.         $dql 'SELECT p
  4432.                 FROM GreenPatioBundle:ReservationLoungeDetails p
  4433.                 ORDER BY p.rankLounge ASC ';
  4434.         $query $em->createQuery($dql)->setParameters($parameters);
  4435.         $loungesPre $query->getResult();
  4436.         $loungesNames $em->getRepository(ReservationLoungeDetails::class)->findAll();
  4437.         $listSupplier $em->getRepository(Supplier::class)->findAll();
  4438.         $em $this->getDoctrine()->getManager();
  4439.         $invoiced $em->getRepository(ReservationInvoice::class)->findByReservationId($id);
  4440.         $invoicedRec $em->getRepository(ReservationInvoiceRec::class)->findByReservationId($id);
  4441.         foreach ($invoicedRec as $item){ array_push($invoiced$item); }
  4442.         $invoicedCvr $em->getRepository(CvrReservationInvoice::class)->findByReservationId($id);
  4443.         $invoicedLine = empty($invoicedCvr) ? 'GP' 'CVR';
  4444.         foreach ($invoicedCvr as $item){ array_push($invoiced$item); }
  4445.         $invoicedCvrRec $em->getRepository(CvrReservationInvoiceRec::class)->findByReservationId($id);
  4446.         foreach ($invoicedCvrRec as $item){ array_push($invoiced$item); }
  4447.         $sumatoriaTotalNet 0$sumatoriaTotalVat 0$sumatoriaTotal 0;
  4448.         $resultados = array(
  4449.             'totalNeto' => 0,
  4450.             'vat' => 0,
  4451.             'total' => 0,
  4452.         );
  4453.         foreach ($invoiced as $idArray => $item){
  4454.             $reserva $em->getRepository(Reservation::class)->findOneById($item->getReservationId());
  4455.             $invoiced[$idArray]->setNumber($reserva->getTitle());
  4456.             $client $em->getRepository(Client::class)->findOneById($reserva->getClient());
  4457.             if(!empty($client)){ $invoiced[$idArray]->setPrefix($client->getName()); } else { $invoiced[$idArray]->setPrefix(''); }
  4458.             if ($item->getType() == 'Invoice Deposit'){
  4459.                 // 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
  4460.                 $paymentItem $em->getRepository(ReservationPaymentsClient::class)->findOneByInvoiceId($item->getId());
  4461.                 if (!empty($paymentItem)){
  4462.                     $invoiceElementItem $em->getRepository(ReservationInvoiceItems::class)->findOneByPayControlId($paymentItem->getId());
  4463.                     if (!empty($invoiceElementItem)) {
  4464.                         // Solo nos interesa evaluar las facturas y no las facturas de deposito
  4465.                         $invoiceOfItem $em->getRepository(ReservationInvoice::class)->findOneById($invoiceElementItem->getInvoiceId());
  4466.                         if (!empty($invoiceOfItem)) {
  4467.                             if ($invoiceOfItem->getType() == 'Invoice') {
  4468.                                 $invoiced[$idArray]->setBalance(0);
  4469.                             }
  4470.                         }
  4471.                     }
  4472.                 }
  4473.                 // 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
  4474.                 $invoicedDepositItems $em->getRepository(ReservationInvoiceDepositItems::class)->findByControlId($item->getMaster());
  4475.                 foreach ($invoicedDepositItems as $itemDep){
  4476.                     $invoiced[$idArray]->setTotalNet($invoiced[$idArray]->getTotalNet() + $itemDep->getAmount());
  4477.                     $invoiced[$idArray]->setVat($invoiced[$idArray]->getVat() + (($itemDep->getAmount() * $itemDep->getIva())/100));
  4478.                     $invoiced[$idArray]->setTotal($invoiced[$idArray]->getTotal() + ($itemDep->getAmount() + (($itemDep->getAmount() * $itemDep->getIva())/100)));
  4479.                 }
  4480.             }
  4481.             // Valores Netos
  4482.             if ($item->getType()=='Invoice'){
  4483.                 $sumatoriaTotalNet $sumatoriaTotalNet $item->getTotalNet();
  4484.             } else {
  4485.                 if ($item->getType()=='Invoice Deposit'){
  4486.                     //Factura de deposito
  4487.                     $sumatoriaTotalNet $sumatoriaTotalNet 0;  //$item->getTotalNet();   // Las facturas de deposito no deben computar en este calculo
  4488.                 } else {
  4489.                     if ($item->getType()=='Invoice Deposit Rec'){
  4490.                         //Factura de Deposito rectificativa
  4491.                         $sumatoriaTotalNet $sumatoriaTotalNet 0;
  4492.                     } else {
  4493.                         //Factura rectificativa
  4494.                         $sumatoriaTotalNet $sumatoriaTotalNet $item->getTotalNet();     // Se han llenado de datos negativos las rectificativas, solo es necesario sumar
  4495.                     }
  4496.                 }
  4497.             }
  4498.             //Valores Iva
  4499.             if ($item->getType()=='Invoice') {
  4500.                 $sumatoriaTotalVat $sumatoriaTotalVat $item->getVat();
  4501.             } else {
  4502.                 if ($item->getType()=='Invoice Deposit'){
  4503.                     //Factura de deposito
  4504.                     $sumatoriaTotalVat $sumatoriaTotalVat 0;  //$item->getVat();  // Las facturas de deposito no deben computar en este calculo
  4505.                 } else {
  4506.                     if ($item->getType()=='Invoice Deposit Rec'){
  4507.                         //Factura de Deposito rectificativa
  4508.                         $sumatoriaTotalNet $sumatoriaTotalNet 0;
  4509.                     } else {
  4510.                         //Factura rectificativa
  4511.                         $sumatoriaTotalVat $sumatoriaTotalVat $item->getVat();      // Se han llenado de datos negativos las rectificativas, solo es necesario sumar
  4512.                     }
  4513.                 }
  4514.             }
  4515.             if (($item->getType()=='Invoice Deposit') or ($item->getType()=='Invoice Deposit Rec')) {
  4516.                 $sumatoriaTotal $sumatoriaTotal 0;                              // Las facturas de deposito o de deposito rectificativas no deben computar en este calculo
  4517.             } else {
  4518.                 $sumatoriaTotal $sumatoriaTotal $item->getTotal();
  4519.             }
  4520.             $resultados = array(
  4521.                 'totalNeto' => $sumatoriaTotalNet,
  4522.                 'vat' => $sumatoriaTotalVat,
  4523.                 'total' => $sumatoriaTotal,
  4524.             );
  4525.         }
  4526.         $paymentsAll $em->getRepository(ReservationPaymentsClient::class)->findByReservationId($id);
  4527.         // Verificamos pagos aun sin facturar
  4528.         $paymentNotIvoiced = array();
  4529.         foreach ($paymentsAll as $item){
  4530.             $isInvoiced $em->getRepository(ReservationInvoiceItems::class)->findBy(array('reservationId' => $id'payControlId' => $item->getId()));
  4531.             if (empty($isInvoiced)){ array_push($paymentNotIvoiced$item); }
  4532.         }
  4533.         //Buscamos los agentes y seleccionamos por defecto el usuario logeado
  4534.         /* Obtengo usuario logueado */
  4535.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  4536.         $user_id $user_logueado->getId();
  4537.         $parameters = array(
  4538.             'clientId' => $clientId,
  4539.         );
  4540.         $dql 'SELECT p
  4541.                 FROM App:ClientContact p
  4542.                 WHERE p.clientId = :clientId
  4543.                 ORDER BY p.name ASC ';
  4544.         $query $em->createQuery($dql)->setParameters($parameters);
  4545.         $clientsContact $query->getResult();
  4546.         // Fecha de notificacion en caso de ser un bloqueo
  4547.         $reservationMailAlertClient $em->getRepository(ReservationMailAlertClient::class)->findOneByReservationId($id);
  4548.         $nextMailAlert null;
  4549.         if (!empty($reservationMailAlertClient)){
  4550.             if (!($reservationMailAlertClient->getAlertSended())){
  4551.                 // La proxima fecha es la de la alerta
  4552.                 $nextMailAlert $reservationMailAlertClient->getAlertDateTime();
  4553.             } else {
  4554.                 if (!($reservationMailAlertClient->getCancelSended())){
  4555.                     // La proxima fecha es la de la cancelacion (paso a cotización)
  4556.                     $nextMailAlert $reservationMailAlertClient->getCancelDateTime();
  4557.                 }
  4558.             }
  4559.         }
  4560.         $parameters = array( 'status' => 1, );
  4561.         $dql 'SELECT c
  4562.                 FROM  App\Entity\User c
  4563.                 WHERE c.status = :status
  4564.                 ORDER BY c.name ASC ';
  4565.         $query $em->createQuery($dql)->setParameters($parameters);
  4566.         $allUsersActive $query->getResult();
  4567.         //Agregamos los FreeLance
  4568.         $freeLances $em->getRepository(ExternalUser::class)->findAll();
  4569.         foreach ($freeLances as $item){
  4570.             $item->setTeam(($item->getId() * (-1)));
  4571.             $allUsersActive[] = $item;
  4572.         }
  4573.         // Buscamos todos los servicios y los separmos por facturados y no facturados
  4574.         $datax $this->benefitForReservation($id);
  4575.         // Se quitan los clientes que no son de Green Patio
  4576.         $parameters = array();
  4577.         $dql 'SELECT p
  4578.                 FROM App:Client p
  4579.                 WHERE p.isClientGreenPatio = TRUE 
  4580.                 ORDER BY p.name ASC ';
  4581.         $query $em->createQuery($dql)->setParameters($parameters);
  4582.         $clients $query->getResult();
  4583.         $depositsAll $em->getRepository(ReservationDeposit::class)->findByReservationId($id);
  4584.         $confirmable $this->laReservaEsConfirmable($id);
  4585.         $cotizable $this->laReservaEsCotizable($id);
  4586.         $htFile in_array($user_logueado->getUserrol(),[9,23,24,37,47,53]) ? $em->getRepository(HtFile::class)->findOneByReservation($reserva) : null;
  4587.         $aveFile in_array($user_logueado->getUserrol(),[9,23,24,37,47,53]) ? $em->getRepository(AveFiles::class)->findOneByReservation($reserva) : null;
  4588.         return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-simple.html.twig',
  4589.             array(
  4590.                 'form' => $form1->createView(),
  4591.                 'form2' => $form2->createView(),
  4592.                 'form3' => $form3->createView(),
  4593.                 'id' => $id,
  4594.                 'clients' => $clients,
  4595.                 'clientId' => $clientId,
  4596.                 'caterings' => $caterings,
  4597.                 'loungesPre' => $loungesPre,
  4598.                 'loungesNames' => $loungesNames,
  4599.                 'facturas' => $invoiced,
  4600.                 'numeroItems' => $numeroItems,
  4601.                 'arrayLoungesByDay' => $arrayLoungesByDay,
  4602.                 'totales_global_con_iva' => $data['totales_global_con_iva'],
  4603.                 'totales_global_iva' => $data['totales_global_iva'],
  4604.                 'totales_global_neto' => $data['totales_global_neto'],
  4605.                 'totales_global_servicios_con_iva' => $data['totales_global_servicios_con_iva'],
  4606.                 'totales_global_servicios_neto' => $data['totales_global_servicios_neto'],
  4607.                 'totales_global_servicios_iva' => $data['totales_global_servicios_iva'],
  4608.                 'sumatoria_totales_global_con_iva' => $data['sumatoria_totales_global_con_iva'],
  4609.                 'sumatoria_totales_global_neto' => $data['sumatoria_totales_global_neto'],
  4610.                 'sumatoria_totales_global_iva' => $data['sumatoria_totales_global_iva'],
  4611.                 'reserva' => $reserva,
  4612.                 'createdBy' => $createdBy,
  4613.                 'arraySalas' => null,
  4614.                 'lounges' => $lounges,
  4615.                 'salasReserva' => $lounges,
  4616.                 'periods' => null,
  4617.                 'services' => $services,
  4618.                 'loungesNumbers' => sizeof($lounges),
  4619.                 'listSupplier' => $listSupplier,
  4620.                 'resultados' => $resultados,
  4621.                 'paymentsAll' => $paymentsAll,
  4622.                 'paymentNotIvoiced' => $paymentNotIvoiced,
  4623.                 'allUsersActive' => $allUsersActive,
  4624.                 'userLog' => $user_id,
  4625.                 'clientsContact' => $clientsContact,
  4626.                 'nextMailAlert' => $nextMailAlert,
  4627.                 'benefit' => $datax['benefit'],
  4628.                 'percBenefit' => $datax['percBenefit'],
  4629.                 'payedLounges' => $datax['payedLounges'],
  4630.                 'payedServices' => $datax['payedServices'],
  4631.                 'unPayedServices' => $datax['unPayedServices'],
  4632.                 'depositsAll' => $depositsAll,
  4633.                 'confirmable' => $confirmable,
  4634.                 'cotizable' => $cotizable,
  4635.                 'invoicedLine' => $invoicedLine,
  4636.                 'htFile' => $htFile,
  4637.                 'aveFile' => $aveFile,
  4638.             ));
  4639.     }
  4640.     private function createReservationLoungeCreateForm(ReservationLounge $entity)
  4641.     {
  4642.         $form $this->createForm(ReservationLoungeType::class, $entity, array(
  4643.             'action' => $this->generateUrl('reservations_greenpatio_create_simple_lounge',
  4644.                 array(
  4645.                     'id' => $entity->getIdReservation(),
  4646.                 )
  4647.             ),
  4648.             'method' => 'POST'
  4649.         ));
  4650.         return $form;
  4651.     }
  4652.     private function createReservationLoungeMonDesCreateForm(ReservationLounge $entity)
  4653.     {
  4654.         $form $this->createForm(ReservationLoungeType::class, $entity, array(
  4655.             'action' => $this->generateUrl('reservations_greenpatio_create_simple_lounge_mondes',
  4656.                 array(
  4657.                     'id' => $entity->getIdReservation(),
  4658.                 )
  4659.             ),
  4660.             'method' => 'POST'
  4661.         ));
  4662.         return $form;
  4663.     }
  4664.     /**
  4665.      * @Route("/contract/{id}", name="reservations_contract")
  4666.      */
  4667.     public function goContractAction($idRequest $request){
  4668.         $em $this->getDoctrine()->getManager();
  4669.         $parameters = array();
  4670.         $dql 'SELECT p
  4671.                 FROM App:Client p
  4672.                 WHERE p.isClientGreenPatio = TRUE 
  4673.                 ORDER BY p.name ASC ';
  4674.         $query $em->createQuery($dql)->setParameters($parameters);
  4675.         $clients $query->getResult();
  4676.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  4677.         $client $em->getRepository(Client::class)->findOneById($reserva->getClient());
  4678.         $clientId $client->getId();
  4679. //        $client = $em->getRepository(ReservationLoungeDetails::class)->findOneById($loungeId);
  4680.         return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-contract.html.twig',
  4681.             array(
  4682.                 'form' => null,
  4683.                 'form2' => null,
  4684.                 'form3' => null,
  4685.                 'id' => $id,
  4686.                 'clients' => $clients,
  4687.                 'clientId' => $clientId,
  4688.                 'reserva' => $reserva,
  4689.                 'arraySalas' => null,
  4690.                 'periods' => null,
  4691.             ));
  4692.     }
  4693.     /**
  4694.      * @Route("/updatecontract/{id}", name="reservations_greenpatio_update_contract")
  4695.      */
  4696.     public function updateContractAction($idRequest $request)
  4697.     {
  4698.         $em $this->getDoctrine()->getManager();
  4699.         $contract $request->request->get('contract');
  4700.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  4701.         $reserva->setContract($contract);
  4702.         try{
  4703.             $em->persist($reserva);
  4704.             $em->flush();
  4705.             $event 'The Reservation has been updated.';
  4706.             $successMessage $this->translator->trans($event);
  4707.             $this->addFlash('mensajereservation'$successMessage);
  4708.         } catch (\Exception $e){
  4709.             $event 'An error occurred: '.$e->getMessage();
  4710.             $errorMessage $this->translator->trans($event);
  4711.             $this->addFlash('mensajereservationerror'$errorMessage);
  4712.         }
  4713.         return $this->redirectToRoute('reservations_greenpatio_edit_simple', array( 'id' => $id'token' => null ));
  4714.     }
  4715.     /**
  4716.      * @Route("/updateloungegrid", name="reservations_greenpatio_updateloungegrid")
  4717.      */
  4718.     public function updateLoungeGridAction(Request $request)
  4719.     {
  4720.         $em $this->getDoctrine()->getManager();
  4721.         $loungeGrid $request->request->get('lounge');
  4722.         $id $request->request->get('reservationId');     //aqui se guardara el ID d ela reserva
  4723.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  4724.         // Movemos las fechas de la reserva para que tomen los valosres de las salas
  4725.         $reserva->setDateStart(new DateTime('2999-01-01'));
  4726.         $reserva->setDateEnd(new DateTime('2000-01-01'));
  4727.         $em $this->getDoctrine()->getManager();
  4728.         /* Obtengo usuario logueado */
  4729.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  4730.         $user_id $user_logueado->getId();
  4731.         foreach ($loungeGrid as $idreservationlounge => $loungeData) {
  4732.             foreach ($loungeData as $dia => $items) {
  4733.                 foreach ($items as $item) {
  4734.                     $reservationLounge $em->getRepository(ReservationLoungeSimple::class)->findOneById($idreservationlounge);
  4735.                     if (empty($reservationLounge)) { $reservationLounge = new ReservationLoungeSimple(); }
  4736.                     // Autocompletacion HH:mm en Start
  4737.                     switch (strlen($item['dateHourMinStart'])) {
  4738.                         case 0:
  4739.                             // Vacio
  4740.                             $hourStart '00';
  4741.                             $minStart '00';
  4742.                             $hourMinStart '00:00';
  4743.                             break;
  4744.                         case 1:
  4745.                             // H  -> 0H:00
  4746.                             if (is_numeric($item['dateHourMinStart'])) {
  4747.                                 $hourStart '0' $item['dateHourMinStart'];
  4748.                                 $minStart '00';
  4749.                                 $hourMinStart $hourStart ':' $minStart;
  4750.                             } else {
  4751.                                 $hourStart '00';
  4752.                                 $minStart '00';
  4753.                                 $hourMinStart '00:00';
  4754.                             }
  4755.                             break;
  4756.                         case 2:
  4757.                             // HH  -> HH:00
  4758.                             if (is_numeric($item['dateHourMinStart'])) {
  4759.                                 $hourStart $item['dateHourMinStart'];
  4760.                                 $minStart '00';
  4761.                                 $hourMinStart $hourStart ':' $minStart;
  4762.                             } else {
  4763.                                 $hourStart '00';
  4764.                                 $minStart '00';
  4765.                                 $hourMinStart '00:00';
  4766.                             }
  4767.                             break;
  4768.                         case 3:
  4769.                             // Hmm  -> 0H:mm
  4770.                             if (is_numeric($item['dateHourMinStart'])) {
  4771.                                 $hourStart '0' substr($item['dateHourMinStart'], 01);
  4772.                                 $minStart substr($item['dateHourMinStart'], 12);
  4773.                                 $hourMinStart $hourStart ':' $minStart;
  4774.                             } else {
  4775.                                 $hourStart '00';
  4776.                                 $minStart '00';
  4777.                                 $hourMinStart '00:00';
  4778.                             }
  4779.                             break;
  4780.                         case 4:
  4781.                             // HHmm  -> HH:mm
  4782.                             if (is_numeric($item['dateHourMinStart'])) {
  4783.                                 $hourStart substr($item['dateHourMinStart'], 02);
  4784.                                 $minStart substr($item['dateHourMinStart'], 22);
  4785.                                 $hourMinStart $hourStart ':' $minStart;
  4786.                             } else {
  4787.                                 $hourStart '00';
  4788.                                 $minStart '00';
  4789.                                 $hourMinStart '00:00';
  4790.                             }
  4791.                             break;
  4792.                         case 5:
  4793.                             // HH:mm
  4794.                             if (is_numeric(substr($item['dateHourMinStart'], 02)) and (substr($item['dateHourMinStart'], 21) == ':') and is_numeric(substr($item['dateHourMinStart'], 02))) {
  4795.                                 $hourStart substr($item['dateHourMinStart'], 02);
  4796.                                 $minStart substr($item['dateHourMinStart'], 32);
  4797.                                 $hourMinStart $hourStart ':' $minStart;
  4798.                             } else {
  4799.                                 $hourStart '00';
  4800.                                 $minStart '00';
  4801.                                 $hourMinStart '00:00';
  4802.                             }
  4803.                             break;
  4804.                         default:
  4805.                             // XXXXyyy
  4806.                             $hourStart '00';
  4807.                             $minStart '00';
  4808.                             $hourMinStart '00:00';
  4809.                             break;
  4810.                     }
  4811.                     // Autocompletacion HH:mm en End
  4812.                     switch (strlen($item['dateHourMinEnd'])) {
  4813.                         case 0:
  4814.                             // Vacio
  4815.                             $hourEnd '00';
  4816.                             $minEnd '00';
  4817.                             $hourMinEnd '00:00';
  4818.                             break;
  4819.                         case 1:
  4820.                             // H  -> 0H:00
  4821.                             if (is_numeric($item['dateHourMinEnd'])) {
  4822.                                 $hourEnd '0' $item['dateHourMinEnd'];
  4823.                                 $minEnd '00';
  4824.                                 $hourMinEnd $hourEnd ':' $minEnd;
  4825.                             } else {
  4826.                                 $hourEnd '00';
  4827.                                 $minEnd '00';
  4828.                                 $hourMinEnd '00:00';
  4829.                             }
  4830.                             break;
  4831.                         case 2:
  4832.                             // HH  -> HH:00
  4833.                             if (is_numeric($item['dateHourMinEnd'])) {
  4834.                                 $hourEnd $item['dateHourMinEnd'];
  4835.                                 $minEnd '00';
  4836.                                 $hourMinEnd $hourEnd ':' $minEnd;
  4837.                             } else {
  4838.                                 $hourEnd '00';
  4839.                                 $minEnd '00';
  4840.                                 $hourMinEnd '00:00';
  4841.                             }
  4842.                             break;
  4843.                         case 3:
  4844.                             // Hmm  -> 0H:mm
  4845.                             if (is_numeric($item['dateHourMinEnd'])) {
  4846.                                 $hourEnd '0' substr($item['dateHourMinEnd'], 01);
  4847.                                 $minEnd substr($item['dateHourMinEnd'], 12);
  4848.                                 $hourMinEnd $hourEnd ':' $minEnd;
  4849.                             } else {
  4850.                                 $hourEnd '00';
  4851.                                 $minEnd '00';
  4852.                                 $hourMinEnd '00:00';
  4853.                             }
  4854.                             break;
  4855.                         case 4:
  4856.                             // HHmm  -> HH:mm
  4857.                             if (is_numeric($item['dateHourMinEnd'])) {
  4858.                                 $hourEnd substr($item['dateHourMinEnd'], 02);
  4859.                                 $minEnd substr($item['dateHourMinEnd'], 22);
  4860.                                 $hourMinEnd $hourEnd ':' $minEnd;
  4861.                             } else {
  4862.                                 $hourEnd '00';
  4863.                                 $minEnd '00';
  4864.                                 $hourMinEnd '00:00';
  4865.                             }
  4866.                             break;
  4867.                         case 5:
  4868.                             // HH:mm
  4869.                             if (is_numeric(substr($item['dateHourMinEnd'], 02)) and (substr($item['dateHourMinEnd'], 21) == ':') and is_numeric(substr($item['dateHourMinEnd'], 02))) {
  4870.                                 $hourEnd substr($item['dateHourMinEnd'], 02);
  4871.                                 $minEnd substr($item['dateHourMinEnd'], 32);
  4872.                                 $hourMinEnd $hourEnd ':' $minEnd;
  4873.                             } else {
  4874.                                 $hourEnd '00';
  4875.                                 $minEnd '00';
  4876.                                 $hourMinEnd '00:00';
  4877.                             }
  4878.                             break;
  4879.                         default:
  4880.                             // XXXXyyy
  4881.                             $hourEnd '00';
  4882.                             $minEnd '00';
  4883.                             $hourMinEnd '00:00';
  4884.                             break;
  4885.                     }
  4886.                     $dateStart $item['newDate'] . ' ' $hourMinStart;
  4887.                     $dateEnd $item['newDate'] . ' ' $hourMinEnd;
  4888.                     $name $item['name'];
  4889.                     $loungeDetails $em->getRepository(ReservationLoungeDetails::class)->findOneByName($name);
  4890.                     $price $item['price'];
  4891.                     $pax 0;
  4892.                     $type null;
  4893.                     if (isset($item['pax'])) {
  4894.                         $pax $item['pax'];
  4895.                         if (empty($pax)){$pax 0;}
  4896.                     } else {
  4897.                         $type $item['type'];
  4898.                     }
  4899.                     $reservationLounge->setIdReservation($id);
  4900.                     if (!empty($loungeDetails)){
  4901.                         $reservationLounge->setIdLounge($loungeDetails->getId());
  4902.                     } else {
  4903.                         // No se encontro el elemento por Nombre (Se ha modificado el campo nombre de la sala, probablemente or ser una DEVOLUCION)
  4904.                         $reservationLounge->setIdLounge(0);
  4905.                     }
  4906.                     $reservationLounge->setDateStart(new DateTime($dateStart));
  4907.                     $reservationLounge->setDateEnd(new DateTime($dateEnd));
  4908.                     $reservationLounge->setType($type);
  4909.                     $reservationLounge->setPax($pax);
  4910.                     $reservationLounge->setServicePrice($price);
  4911.                     $reservationLounge->setLoungeName($name);
  4912.                     $reservationLounge->setHourStart($hourStart);
  4913.                     $reservationLounge->setMinStart($minStart);
  4914.                     $reservationLounge->setHourEnd($hourEnd);
  4915.                     $reservationLounge->setMinEnd($minEnd);
  4916.                     $reservationLounge->setUpdatedBy($user_id);
  4917.                     $reservationLounge->setCreatedBy($user_id);
  4918.                     try {
  4919.                         $em->persist($reservationLounge);
  4920.                         $em->flush();
  4921.                         $event 'The Item has been updated.';
  4922.                         $successMessage $this->translator->trans($event);
  4923.                         $this->addFlash('mensajereservation'$successMessage);
  4924.                     } catch (\Exception $e) {
  4925.                         $event 'An error occurred: ' $e->getMessage();
  4926.                         $errorMessage $this->translator->trans($event);
  4927.                         $this->addFlash('mensajereservationerror'$errorMessage);
  4928.                     }
  4929.                     // INICIO: Verificamos si es necesario actualizar las fechas de la reserva
  4930.                     $boolReserva false;
  4931.                     if ($reservationLounge->getDateStart() < $reserva->getDateStart()){
  4932.                         $reserva->setDateStart($reservationLounge->getDateStart());
  4933.                         $boolReserva true;
  4934.                     }
  4935.                     if ($reserva->getDateEnd() < $reservationLounge->getDateEnd()){
  4936.                         $reserva->setDateEnd($reservationLounge->getDateEnd());
  4937.                        $boolReserva true;
  4938.                     }
  4939.                     if ($boolReserva){
  4940.                         $em->persist($reserva);
  4941.                         $em->flush();
  4942.                     }
  4943.                     // FIN: Verificamos si es necesario actualizar las fechas de la reserva
  4944.                 }
  4945.             }
  4946.         }
  4947.         return $this->redirectToRoute('reservations_greenpatio_edit_simple',
  4948.             array(
  4949.                 'id' => $id,
  4950.                 'token' => null,
  4951.                 '_fragment' => 'btn_quotes'
  4952.             ));
  4953.     }
  4954.     /**
  4955.      * @Route("/deleteitemservice/{idService}/{idReservation}", name="reservations_greenpatio_deleteitemservice")
  4956.      */
  4957.     public function deleteItemServiceAction($idService$idReservationRequest $request)
  4958.     {
  4959.         $em $this->getDoctrine()->getManager();
  4960.         $service $em->getRepository(ReservationService::class)->findOneById($idService);
  4961.         try{
  4962.             $em->remove($service);
  4963.             $em->flush();
  4964.             $event 'The Item has been deleted.';
  4965.             $successMessage $this->translator->trans($event);
  4966.             $this->addFlash('mensajereservation'$successMessage);
  4967.         } catch (\Exception $e){
  4968.             $event 'An error occurred: '.$e->getMessage();
  4969.             $errorMessage $this->translator->trans($event);
  4970.             $this->addFlash('mensajereservationerror'$errorMessage);
  4971.         }
  4972.         return $this->redirectToRoute('reservations_greenpatio_edit_simple', array( 'id' => $idReservation'token' => null ));
  4973.     }
  4974.     /**
  4975.      * @Route("/updateservicegrid/{id}", name="reservations_greenpatio_updateservicegrid")
  4976.      */
  4977.     public function updateServiceGridAction($idRequest $request)
  4978.     {
  4979.         $services $request->request->get('services');
  4980.         $em $this->getDoctrine()->getManager();
  4981.         /* Obtengo usuario logueado */
  4982.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  4983.         $user_id $user_logueado->getId();
  4984.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  4985.         foreach ($services as $idService => $service) {
  4986.             $serviceOriginal $em->getRepository(ReservationService::class)->findOneById($idService);
  4987.             if (empty($serviceOriginal)){
  4988.                 $serviceOriginal = new ReservationService();
  4989.             }
  4990.             $serviceOriginal->setSupplierId($service['supplier']);
  4991.             if ($serviceOriginal->getServiceCatId() == 15){
  4992.                 // Asistencia
  4993.                 if (array_key_exists('agent',$service)){
  4994.                     if (!empty($service['agent']) and ($service['agent'] > 0)){
  4995.                         $userx $em->getRepository("App\Entity\User")->findOneById($service['agent']);
  4996.                         $serviceOriginal->setName($userx->getName().' '.$userx->getLastName());
  4997.                         $serviceOriginal->setAssistantId($service['agent']);
  4998.                     } else {
  4999.                         //Asistencia de un FreeLance
  5000.                         if (!empty($service['agent']) and ($service['agent'] < 0)){
  5001.                             // FreeLance registrado en el sistema
  5002.                             $idUserFree = ($service['agent'] * (-1));
  5003.                             $userx $em->getRepository(ExternalUser::class)->findOneById($idUserFree);
  5004.                             $serviceOriginal->setName($userx->getName().' '.$userx->getLastName());
  5005.                             $serviceOriginal->setAssistantId($service['agent']);
  5006.                         } else {
  5007.                             $serviceOriginal->setName($service['name']);
  5008.                             $serviceOriginal->setAssistantId(null);
  5009.                         }
  5010.                     }
  5011.                 }
  5012.             } else {
  5013.                 $serviceOriginal->setName($service['name']);
  5014.             }
  5015.             $serviceOriginal->setPrice($service['price']);
  5016.             $serviceOriginal->setCurrency($service['currency']);
  5017.             $serviceOriginal->setUnits($service['units']);
  5018.             $serviceOriginal->setPax($service['pax']);
  5019.             $serviceOriginal->setOpCommission($service['opCommission']);
  5020.             $serviceOriginal->setCommission($service['commission']);
  5021.             $serviceOriginal->setOpOver($service['opOver']);
  5022.             $serviceOriginal->setOver($service['over']);
  5023.             $serviceOriginal->setOpIva($service['opIva']);
  5024.             $serviceOriginal->setIva($service['iva']);
  5025.             if (array_key_exists('toinvoice',$service)){ $serviceOriginal->setToinvoice(true); } else { $serviceOriginal->setToinvoice(false); }
  5026.             $serviceOriginal->setDateInAt(new DateTime($service['dateInAt']. ' ' $service['start']));
  5027.             $serviceOriginal->setDateOutAt(new DateTime($service['dateOutAt']. ' ' $service['end']));
  5028.             $serviceOriginal->setUpdatedId($user_id);
  5029.             $serviceOriginal->setUpdatedAt(new DateTime('now'));
  5030.             try{
  5031.                 $em->persist($serviceOriginal);
  5032.                 $em->flush();
  5033.                 $event 'The Item has been updated.';
  5034.                 $successMessage $this->translator->trans($event);
  5035.                 $this->addFlash('mensajereservation'$successMessage);
  5036.             } catch (\Exception $e){
  5037.                 $event 'An error occurred: '.$e->getMessage();
  5038.                 $errorMessage $this->translator->trans($event);
  5039.                 $this->addFlash('mensajereservationerror'$errorMessage);
  5040.             }
  5041.             if(($serviceOriginal->getServiceCatId()==11) and ($serviceOriginal->getSupplierId()==4765)){
  5042.                 //Es un Catering de Higo&Trigo
  5043.                 $reserva->setCateringName('HIGO & TRIGO, S.L.');
  5044.                 $em->persist($reserva);
  5045.                 $em->flush();
  5046.             }
  5047.         }
  5048.         // Sincronización con HT
  5049.         if (!empty($reserva)) {
  5050.             // Rafa indico que siempre se sincronice al abrir un expediente de GP
  5051.             if (in_array($reserva->getStatus(), [null'''Confirmed''Invoiced''Iniciado''Cotizado''Bloqueo'])) {
  5052. //            if (in_array($reserva->getStatus(), ['Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
  5053.                 if ($reserva->getCateringName() == 'HIGO & TRIGO, S.L.') {
  5054.                     // Si no se ha creado aun el expediente de HT debemos crearlo
  5055.                     $htFile $em->getRepository(HtFile::class)->findByReservation($reserva);
  5056.                     if (empty($htFile)) {
  5057.                         return $this->redirectToRoute('sinc_gp_ht', array('id' => $id,));
  5058.                     }
  5059.                 }
  5060.             }
  5061.         }
  5062.         return $this->redirectToRoute('reservations_greenpatio_edit_simple',
  5063.             array(
  5064.                 'id' => $id,
  5065.                 'token' => null,
  5066.                 '_fragment' => 'btn_srv'
  5067.             ));
  5068.     }
  5069.     /**
  5070.      * @Route("/editgeneral", name="reservations_greenpatio_edit_general")
  5071.      */
  5072.     public function editGeneralAction(Request $request)
  5073.     {
  5074.         $em $this->getDoctrine()->getManager();
  5075.         $prices $em->getRepository(ReservationLoungeProfile::class)->findBy(
  5076.             array(),
  5077.             array('id' => 'ASC')
  5078.         );
  5079.         $dataPrices = array();
  5080.         // INICIO: Estableciendo los valores de los indices (periodos o jornadas, y nombres de salas)
  5081.         foreach ($prices as $price){
  5082.             $periodSql $em->getRepository(ReservationPeriod::class)->findOneById($price->getPeriodId());
  5083.             $price->setPeriodId($periodSql->getName());
  5084.             $loungeTemp $em->getRepository(ReservationLoungeDetails::class)->findOneById($price->getLoungeId());
  5085.             if(!is_null($loungeTemp))
  5086.                 $price->setLoungeId($loungeTemp->getName());
  5087.             $dataPrices[] = $price;
  5088.         }
  5089.         // FIN: Estableciendo los valores de los indices (periodos o jornadas, y nombres de salas)
  5090.         $parameters = array();
  5091.         $dql 'SELECT p
  5092.                 FROM GreenPatioBundle:ReservationLoungeDetails p
  5093.                 ORDER BY p.rankLounge ASC';
  5094.         $query $em->createQuery($dql)->setParameters($parameters);
  5095.         $salas $query->getResult();
  5096. //        $salas = $em->getRepository(ReservationLoungeDetails::class)->findAll();
  5097. //        $loungesNames = $em->getRepository(ReservationLoungeDetails::class)->findAll();
  5098.         $loungesPeriods $em->getRepository(ReservationPeriod::class)->findAll();
  5099.         $today = new DateTime('now');
  5100.         $periods $em->getRepository(ReservationPeriod::class)->findAll();
  5101.         $period = new ReservationPeriod();
  5102. //        $form = $this->createReservationPeriodCreateForm($period);
  5103.         return $this->render('MDS/GreenPatioBundle/reservations/edit-reservations-general.html.twig',
  5104.             array(
  5105.                 'prices' => $dataPrices,
  5106.                 'salas' => $salas,
  5107.                 'today' => $today,
  5108.                 'loungesNames' => $salas,
  5109.                 'loungesPeriods' => $loungesPeriods,
  5110.                 'groups' => null,
  5111. //                'form' => $form->createView(),
  5112.                 'periods' => $periods
  5113.             ));
  5114.     }
  5115.     /**
  5116.      * @Route("/addloungegeneral", name="reservations_greenpatio_add_lounge_general")
  5117.      */
  5118.     public function addLoungeGeneralAction(Request $request)
  5119.     {
  5120.         $lounge $request->request->get('lounge_price');
  5121.         $em $this->getDoctrine()->getManager();
  5122.         $yaExisteLounge $em->getRepository(ReservationLoungeDetails::class)->findOneByName($lounge['name']);
  5123.         if (!empty($yaExisteLounge)){
  5124.             //Si ya existe la sala con ese nombre se envia a la pantalla de edicion de la sala en cuestion
  5125.             $id $yaExisteLounge->getId();
  5126.             return $this->redirectToRoute('reservations_lounge_details',
  5127.                 array(
  5128.                     'id' => $id
  5129.                 ));
  5130.         }
  5131.         /* Obtengo usuario logueado */
  5132.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5133.         $user_id $user_logueado->getId();
  5134.         $now = new DateTime('now');
  5135.         $loungeNew = new ReservationLoungeDetails();
  5136.         $loungeNew->setName($lounge['name']);
  5137.         $loungeNew->setMeters($lounge['meters']);
  5138.         $loungeNew->setLength($lounge['length']);
  5139.         $loungeNew->setWidth($lounge['width']);
  5140.         $loungeNew->setHeight($lounge['height']);
  5141.         $loungeNew->setCapSchool($lounge['capschool']);
  5142.         $loungeNew->setCapTheater ($lounge['captheater']);
  5143.         $loungeNew->setCapCocktail($lounge['capcocktail']);
  5144.         $loungeNew->setCapBanquet ($lounge['capbanquet']);
  5145.         $loungeNew->setCapImperial($lounge['capimperial']);
  5146.         $loungeNew->setCreatedId($user_id);
  5147.         $loungeNew->setCreatedAt($now);
  5148.         $loungeNew->setUpdatedId($user_id);
  5149.         $loungeNew->setUpdatedAt($now);
  5150.         try {
  5151.             $em->persist($loungeNew);
  5152.             $em->flush();
  5153.             $event 'The Item has been created.';
  5154.             $successMessage $this->translator->trans($event);
  5155.             $this->addFlash('mensajereservation'$successMessage);
  5156.         } catch (\Exception $e) {
  5157.             $event 'An error occurred: ' $e->getMessage();
  5158.             $errorMessage $this->translator->trans($event);
  5159.             $this->addFlash('mensajereservationerror'$errorMessage);
  5160.         }
  5161.         if (!empty($loungeNew->getId())){
  5162.             // Esto pertenece a otra entidad
  5163.             $loungeNewDescription = new ReservationLoungeDescription();
  5164.             $loungeNewDescription->setLoungeId($loungeNew->getId());
  5165.             $loungeNewDescription->setLanguage($lounge['language']);
  5166.             $loungeNewDescription->setDescription($lounge['description']);
  5167.             $loungeNewDescription->setCreatedId($user_id);
  5168.             $loungeNewDescription->setCreatedAt($now);
  5169.             $loungeNewDescription->setUpdatedId($user_id);
  5170.             $loungeNewDescription->setUpdatedAt($now);
  5171.             try {
  5172.                 $em->persist($loungeNewDescription);
  5173.                 $em->flush();
  5174.                 $event 'The Item has been created.';
  5175.                 $successMessage $this->translator->trans($event);
  5176.                 $this->addFlash('mensajereservation'$successMessage);
  5177.             } catch (\Exception $e) {
  5178.                 $event 'An error occurred: ' $e->getMessage();
  5179.                 $errorMessage $this->translator->trans($event);
  5180.                 $this->addFlash('mensajereservationerror'$errorMessage);
  5181.             }
  5182.             return $this->redirectToRoute('reservations_lounge_details',
  5183.                 array(
  5184.                     'id' => $loungeNew->getId()
  5185.                 ));
  5186.         }
  5187.         return $this->redirectToRoute('reservations_greenpatio_edit_general');
  5188.     }
  5189.     /**
  5190.      * @Route("/addprofilegeneral", name="reservations_greenpatio_add_profile_general")
  5191.      * Guarda un profile (Precios - Tarifas - Temporadas)
  5192.      */
  5193.     public function addProfileGeneralAction(Request $request)
  5194.     {
  5195.         $loungeProfile $request->request->get('lounge_price');
  5196.         $em $this->getDoctrine()->getManager();
  5197.         /* Obtengo usuario logueado */
  5198.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5199.         $user_id $user_logueado->getId();
  5200.         $now = new DateTime('now');
  5201.         $allSalas $em->getRepository(ReservationLoungeDetails::class)->findAll();
  5202.         $ultimaSala end($allSalas);
  5203.         $loungeNewProfile = new ReservationLoungeProfile();
  5204.         // Creamos el arreglo de las salas seleccionadas y por cada una se creara un nuevo precio (reservation_lounge_profile)
  5205.         $arraySalas = array();
  5206.         for ($i 0; ($i 1) < $ultimaSala->getId(); $i++) {
  5207.             $key 'sala_' $i;
  5208.             if (array_key_exists($key$loungeProfile)) { $arraySalas[] = $i; }
  5209.         }
  5210.         $arrayPreciosCoincidencias = array();
  5211.         foreach ($arraySalas as $salaId){
  5212.             $loungeNewProfile = new ReservationLoungeProfile();
  5213.             $loungeNewProfile->setLoungeId($salaId);
  5214.             $loungeNewProfile->setPeriodId('3');                                                        // Dia Completo
  5215.             $loungeNewProfile->setPrice($loungeProfile['servicePrice']);
  5216.             $loungeNewProfile->setTitle($loungeProfile['title']);
  5217.             $loungeNewProfile->setDescription(null);
  5218.             $loungeNewProfile->setPriceIsActive(true);
  5219.             // Agregamos los años
  5220.             if (array_key_exists('year1'$loungeProfile)) { $loungeNewProfile->setYear1($loungeProfile['year1']); }
  5221.             if (array_key_exists('year2'$loungeProfile)) { $loungeNewProfile->setYear2($loungeProfile['year2']); }
  5222.             // Agregamos los meses
  5223.             if (array_key_exists('month1'$loungeProfile)) { $loungeNewProfile->setMonth1(true); }
  5224.             if (array_key_exists('month2'$loungeProfile)) { $loungeNewProfile->setMonth2(true); }
  5225.             if (array_key_exists('month3'$loungeProfile)) { $loungeNewProfile->setMonth3(true); }
  5226.             if (array_key_exists('month4'$loungeProfile)) { $loungeNewProfile->setMonth4(true); }
  5227.             if (array_key_exists('month5'$loungeProfile)) { $loungeNewProfile->setMonth5(true); }
  5228.             if (array_key_exists('month6'$loungeProfile)) { $loungeNewProfile->setMonth6(true); }
  5229.             if (array_key_exists('month7'$loungeProfile)) { $loungeNewProfile->setMonth7(true); }
  5230.             if (array_key_exists('month8'$loungeProfile)) { $loungeNewProfile->setMonth8(true); }
  5231.             if (array_key_exists('month9'$loungeProfile)) { $loungeNewProfile->setMonth9(true); }
  5232.             if (array_key_exists('month10'$loungeProfile)) { $loungeNewProfile->setMonth10(true); }
  5233.             if (array_key_exists('month11'$loungeProfile)) { $loungeNewProfile->setMonth11(true); }
  5234.             if (array_key_exists('month12'$loungeProfile)) { $loungeNewProfile->setMonth12(true); }
  5235.             // Agregamos los dias
  5236.             if (array_key_exists('day1'$loungeProfile)) { $loungeNewProfile->setDay1(true); }
  5237.             if (array_key_exists('day2'$loungeProfile)) { $loungeNewProfile->setDay2(true); }
  5238.             if (array_key_exists('day3'$loungeProfile)) { $loungeNewProfile->setDay3(true); }
  5239.             if (array_key_exists('day4'$loungeProfile)) { $loungeNewProfile->setDay4(true); }
  5240.             if (array_key_exists('day5'$loungeProfile)) { $loungeNewProfile->setDay5(true); }
  5241.             if (array_key_exists('day6'$loungeProfile)) { $loungeNewProfile->setDay6(true); }
  5242.             if (array_key_exists('day7'$loungeProfile)) { $loungeNewProfile->setDay7(true); }
  5243.             $loungeNewProfile->setCreatedId($user_id);
  5244.             $loungeNewProfile->setCreatedAt($now);
  5245.             $loungeNewProfile->setUpdatedId($user_id);
  5246.             $loungeNewProfile->setUpdatedAt($now);
  5247.             if (empty($loungeProfile['dateStart1'])){ $dateStart1 null; } else { $dateStart1 = new DateTime($loungeProfile['dateStart1']); }
  5248.             if (empty($loungeProfile['dateEnd1'])){ $dateEnd1 null; } else { $dateEnd1 = new DateTime($loungeProfile['dateEnd1']); }
  5249.             if (empty($loungeProfile['dateStart2'])){ $dateStart2 null; } else { $dateStart2 = new DateTime($loungeProfile['dateStart2']); }
  5250.             if (empty($loungeProfile['dateEnd2'])){ $dateEnd2 null; } else { $dateEnd2 = new DateTime($loungeProfile['dateEnd2']); }
  5251.             if (empty($loungeProfile['dateStart3'])){ $dateStart3 null; } else { $dateStart3 = new DateTime($loungeProfile['dateStart3']); }
  5252.             if (empty($loungeProfile['dateEnd3'])){ $dateEnd3 null; } else { $dateEnd3 = new DateTime($loungeProfile['dateEnd3']); }
  5253.             if (empty($loungeProfile['dateStart4'])){ $dateStart4 null; } else { $dateStart4 = new DateTime($loungeProfile['dateStart4']); }
  5254.             if (empty($loungeProfile['dateEnd4'])){ $dateEnd4 null; } else { $dateEnd4 = new DateTime($loungeProfile['dateEnd4']); }
  5255.             if (empty($loungeProfile['dateStart5'])){ $dateStart5 null; } else { $dateStart5 = new DateTime($loungeProfile['dateStart5']); }
  5256.             if (empty($loungeProfile['dateEnd5'])){ $dateEnd5 null; } else { $dateEnd5 = new DateTime($loungeProfile['dateEnd5']); }
  5257.             $loungeNewProfile1 = new ReservationLoungeProfile();
  5258.             $this->duplicarEntidad($loungeNewProfile1$loungeNewProfile$dateStart1$dateEnd1);
  5259.             $loungeNewProfile2 = new ReservationLoungeProfile();
  5260.             $this->duplicarEntidad($loungeNewProfile2$loungeNewProfile$dateStart2$dateEnd2);
  5261.             $loungeNewProfile3 = new ReservationLoungeProfile();
  5262.             $this->duplicarEntidad($loungeNewProfile3$loungeNewProfile$dateStart3$dateEnd3);
  5263.             $loungeNewProfile4 = new ReservationLoungeProfile();
  5264.             $this->duplicarEntidad($loungeNewProfile4$loungeNewProfile$dateStart4$dateEnd4);
  5265.             $loungeNewProfile5 = new ReservationLoungeProfile();
  5266.             $this->duplicarEntidad($loungeNewProfile5$loungeNewProfile$dateStart5$dateEnd5);
  5267.             if (!empty($loungeProfile['dateStart1']) and !empty($loungeProfile['dateEnd1'])){
  5268.                 $this->modificarBooleanoDeMeses($loungeNewProfile1, new DateTime($loungeProfile['dateStart1']) , new DateTime($loungeProfile['dateEnd1']));
  5269.                 $arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart1']))->format('d/m/Y').' al '.(new DateTime($loungeProfile['dateEnd1']))->format('d/m/Y')] = $this->verificarPreciosCoincidiendo($loungeNewProfile1);
  5270.                 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')]); }
  5271.             }
  5272.             if (!empty($loungeProfile['dateStart2']) and !empty($loungeProfile['dateEnd2'])) {
  5273. d($loungeProfile['dateStart2']);
  5274.                 $this->modificarBooleanoDeMeses($loungeNewProfile2, new DateTime($loungeProfile['dateStart2']), new DateTime($loungeProfile['dateEnd2']));
  5275.                 $arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart2']))->format('d/m/Y') . ' al ' . (new DateTime($loungeProfile['dateEnd2']))->format('d/m/Y')] = $this->verificarPreciosCoincidiendo($loungeNewProfile2);
  5276.                 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')]); }
  5277.             }
  5278.             if (!empty($loungeProfile['dateStart3']) and !empty($loungeProfile['dateEnd3'])) {
  5279.                 $this->modificarBooleanoDeMeses($loungeNewProfile3, new DateTime($loungeProfile['dateStart3']), new DateTime($loungeProfile['dateEnd3']));
  5280.                 $arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart3']))->format('d/m/Y') . ' al ' . (new DateTime($loungeProfile['dateEnd3']))->format('d/m/Y')] = $this->verificarPreciosCoincidiendo($loungeNewProfile3);
  5281.                 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')]); }
  5282.             }
  5283.             if (!empty($loungeProfile['dateStart4']) and !empty($loungeProfile['dateEnd4'])) {
  5284.                 $this->modificarBooleanoDeMeses($loungeNewProfile4, new DateTime($loungeProfile['dateStart4']), new DateTime($loungeProfile['dateEnd4']));
  5285.                 $arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart4']))->format('d/m/Y') . ' al ' . (new DateTime($loungeProfile['dateEnd4']))->format('d/m/Y')] = $this->verificarPreciosCoincidiendo($loungeNewProfile4);
  5286.                 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')]); }
  5287.             }
  5288.             if (!empty($loungeProfile['dateStart5']) and !empty($loungeProfile['dateEnd5'])) {
  5289.                 $this->modificarBooleanoDeMeses($loungeNewProfile5, new DateTime($loungeProfile['dateStart5']), new DateTime($loungeProfile['dateEnd5']));
  5290.                 $arrayPreciosCoincidencias[(new DateTime($loungeProfile['dateStart5']))->format('d/m/Y') . ' al ' . (new DateTime($loungeProfile['dateEnd5']))->format('d/m/Y')] = $this->verificarPreciosCoincidiendo($loungeNewProfile5);
  5291.                 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')]); }
  5292.             }
  5293.         }
  5294.         if (!empty($arrayPreciosCoincidencias)){
  5295.             return $this->render('MDS/GreenPatioBundle/reservations/list-profiles-conflicts.html.twig',
  5296.                 array(
  5297.                     'arrayPreciosCoincidencias' => $arrayPreciosCoincidencias,
  5298.                 )
  5299.             );
  5300.         }
  5301.         return $this->redirectToRoute('reservations_greenpatio_prices');
  5302.     }
  5303.     /**
  5304.      * @Route("/addloungedescription/{id}", name="reservations_greenpatio_add_lounge_description")
  5305.      */
  5306.     public function addLoungeDescriptionAction($idRequest $request)
  5307.     {
  5308.         $em $this->getDoctrine()->getManager();
  5309.         /* Obtengo usuario logueado */
  5310.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5311.         $user_id $user_logueado->getId();
  5312.         $now = new DateTime('now');
  5313.         $loungeDescriptoin $request->request->get('lounge_description');
  5314.         $newLoungeDescription = new reservationLoungeDescription();
  5315.         $newLoungeDescription->setLoungeId($id);
  5316.         $newLoungeDescription->setLanguage($loungeDescriptoin['language']);
  5317.         $newLoungeDescription->setDescription($loungeDescriptoin['description']);
  5318.         $newLoungeDescription->setCreatedId($user_id);
  5319.         $newLoungeDescription->setUpdatedId($user_id);
  5320.         $newLoungeDescription->setCreatedAt($now);
  5321.         $newLoungeDescription->setUpdatedAt($now);
  5322.         try {
  5323.             $em->persist($newLoungeDescription);
  5324.             $em->flush();
  5325.             $event 'The Item has been created.';
  5326.             $successMessage $this->translator->trans($event);
  5327.             $this->addFlash('mensajereservation'$successMessage);
  5328.         } catch (\Exception $e) {
  5329.             $event 'An error occurred: ' $e->getMessage();
  5330.             $errorMessage $this->translator->trans($event);
  5331.             $this->addFlash('mensajereservationerror'$errorMessage);
  5332.         }
  5333.         return $this->redirectToRoute('reservations_lounge_details', array('id' => $id));
  5334.     }
  5335.     /**
  5336.      * @Route("/updatedescritiongrid/{id}", name="reservations_greenpatio_updatedescriptiongrid")
  5337.      */
  5338.     public function updateDescriptionGridAction($idRequest $request)
  5339.     {
  5340.         $descriptions $request->request->get('description');
  5341.         $em $this->getDoctrine()->getManager();
  5342.         /* Obtengo usuario logueado */
  5343.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5344.         $user_id $user_logueado->getId();
  5345.         foreach ($descriptions as $idDesc => $description) {
  5346.             $descriptionOriginal $em->getRepository(ReservationLoungeDescription::class)->findOneById($idDesc);
  5347.             $descriptionOriginal->setLanguage($description['language']);
  5348.             $descriptionOriginal->setDescription($description['text']);
  5349.             $descriptionOriginal->setUpdatedId($user_id);
  5350.             $descriptionOriginal->setUpdatedAt(new DateTime('now'));
  5351.             try{
  5352.                 $em->persist($descriptionOriginal);
  5353.                 $em->flush();
  5354.                 $event 'The Item has been updated.';
  5355.                 $successMessage $this->translator->trans($event);
  5356.                 $this->addFlash('mensajereservation'$successMessage);
  5357.             } catch (\Exception $e){
  5358.                 $event 'An error occurred: '.$e->getMessage();
  5359.                 $errorMessage $this->translator->trans($event);
  5360.                 $this->addFlash('mensajereservationerror'$errorMessage);
  5361.             }
  5362.         }
  5363.         return $this->redirectToRoute('reservations_lounge_details',
  5364.             array(
  5365.                 'id' => $id
  5366.             ));
  5367.     }
  5368.     /**
  5369.      * @Route("/addloungepicture/{id}", name="reservations_greenpatio_add_lounge_picture")
  5370.      */
  5371.     public function addLoungePictureAction($idRequest $request//, LoggerInterface $logger)
  5372.     {
  5373.         $em $this->getDoctrine()->getManager();
  5374.         /* Obtengo usuario logueado */
  5375.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5376.         $user_id $user_logueado->getId();
  5377.         $now = new DateTime('now');
  5378.         $picturefiles $request->files->all();
  5379.         $loungeId $id;
  5380.         $imagenes $picturefiles['loungepicturegallery'];
  5381.         $data $loungeId;
  5382.         if(!empty($imagenes['image1']) || !empty($imagenes['image2']) || !empty($imagenes['image3']) || !empty($imagenes['image4']) || !empty($imagenes['image5'])){
  5383.             $num 0;
  5384.             foreach($imagenes as $img){
  5385.                 $num $num;
  5386.                 if (!is_null($img)){
  5387.                     $data $this->CargarImgGalleryAction($loungeId$img$num$request); //, $logger);
  5388.                 }
  5389.             }
  5390.         }else{
  5391.             $errorMessage $this->translator->trans('Error, some fields are empty');
  5392.             $this->addFlash('mensajegalleryerror'$errorMessage);
  5393.         }
  5394.         return $this->redirectToRoute('reservations_lounge_details', array('id' => $id));
  5395.     }
  5396.     protected function CargarImgGalleryAction($loungeId$image$numRequest $request//, LoggerInterface $logger)
  5397.     {
  5398.         $gallery = new ReservationLoungePicture();
  5399.         $gallery->setLoungeId($loungeId);
  5400.         $gallery->setCreatedAt(new DateTime('now'));
  5401.         $gallery->setUpdatedAt(new DateTime('now'));
  5402.         $gallery->setTitle(null);
  5403.         if ($num == -1){$gallery->setTitle('Blueprint');}
  5404.         if ($num == 'TEATRO'){$gallery->setTitle('Teatro');}
  5405.         if ($num == 'COCTEL'){$gallery->setTitle('Coctel');}
  5406.         if ($num == 'ESCUELA'){$gallery->setTitle('Escuela');}
  5407.         $id $loungeId;
  5408.         /* Carga de imagenes */
  5409.         $calidad "90";
  5410.         $calidadpng "9";
  5411.         $imageName md5(rand() * time());
  5412.         $camino "assets/images/greenpatio/lounges/";
  5413.         $extension $image->guessExtension();
  5414.         $entrada 'si';
  5415.         $image_id $imageName.'.'.$extension;
  5416.         $image_temp $id.'-'.$imageName.'.'.$extension;
  5417.         $image->move($camino$image_temp);
  5418.         // Nombres image
  5419.         $s="small-";
  5420.         $m="medium-";
  5421.         $l="large-";
  5422.         ########################
  5423.         # Copiar imagen 300 x Altura
  5424.         ########################
  5425.         $datos getimagesize($camino.$image_temp);
  5426.         $anchura "300";
  5427.         $altura "190";
  5428.         $thumb imagecreatetruecolor($anchura,$altura);
  5429.         switch ($extension) {
  5430.             case 'jpeg':
  5431.                 $img imagecreatefromjpeg($camino.$image_temp);
  5432.                 imagecopyresampled ($thumb$img0000$anchura$altura$datos[0], $datos[1]);
  5433.                 imagejpeg($thumb,$camino.$s.$image_id$calidad);
  5434.                 break;
  5435.             case 'png':
  5436.                 $img imagecreatefrompng($camino.$image_temp);
  5437.                 imagecopyresampled ($thumb$img0000$anchura$altura$datos[0], $datos[1]);
  5438.                 imagepng($thumb,$camino.$s.$image_id$calidadpng);
  5439.                 break;
  5440.             case 'gif':
  5441.                 $img imagecreatefromgif($camino.$image_temp);
  5442.                 imagecopyresampled ($thumb$img0000$anchura$altura$datos[0], $datos[1]);
  5443.                 imagegif($thumb,$camino.$s.$image_id);
  5444.                 break;
  5445.         }
  5446.         ########################
  5447.         # Copiar imagen 600 x Altura
  5448.         ########################
  5449.         $datos2 getimagesize($camino.$image_temp);
  5450.         $anchura2="600";
  5451.         $ratio2 = ($datos2[0] / $anchura2);
  5452.         $altura2 round($datos2[1] / $ratio2);
  5453.         $thumb2 imagecreatetruecolor($anchura2,$altura2);
  5454.         switch ($extension) {
  5455.             case 'jpeg':
  5456.                 $img2 imagecreatefromjpeg($camino.$image_temp);
  5457.                 imagecopyresampled ($thumb2$img20000$anchura2$altura2$datos2[0], $datos2[1]);
  5458.                 imagejpeg($thumb2,$camino.$m.$image_id$calidad);
  5459.                 break;
  5460.             case 'png':
  5461.                 $img2 imagecreatefrompng($camino.$image_temp);
  5462.                 imagecopyresampled ($thumb2$img20000$anchura2$altura2$datos2[0], $datos2[1]);
  5463.                 imagepng($thumb2,$camino.$m.$image_id$calidadpng);
  5464.                 break;
  5465.             case 'gif':
  5466.                 $img2 imagecreatefromgif($camino.$image_temp);
  5467.                 imagecopyresampled ($thumb2$img20000$anchura2$altura2$datos2[0], $datos2[1]);
  5468.                 imagegif($thumb2,$camino.$m.$image_id);
  5469.                 break;
  5470.         }
  5471.         ########################
  5472.         # Copiar imagen 1600 x Altura
  5473.         ########################
  5474.         $datos3 getimagesize($camino.$image_temp);
  5475.         $anchura3="1600";
  5476.         $ratio3 = ($datos3[0] / $anchura3);
  5477.         $altura3 round($datos3[1] / $ratio3);
  5478.         $thumb3 imagecreatetruecolor($anchura3,$altura3);
  5479.         switch ($extension) {
  5480.             case 'jpeg':
  5481.                 $img3 imagecreatefromjpeg($camino.$image_temp);
  5482.                 imagecopyresampled ($thumb3$img30000$anchura3$altura3$datos3[0], $datos3[1]);
  5483.                 imagejpeg($thumb3,$camino.$l.$image_id$calidad);
  5484.                 break;
  5485.             case 'png':
  5486.                 $img3 imagecreatefrompng($camino.$image_temp);
  5487.                 imagecopyresampled ($thumb3$img30000$anchura3$altura3$datos3[0], $datos3[1]);
  5488.                 imagepng($thumb3,$camino.$l.$image_id$calidadpng);
  5489.                 break;
  5490.             case 'gif':
  5491.                 $img3 imagecreatefromgif($camino.$image_temp);
  5492.                 imagecopyresampled ($thumb3$img30000$anchura3$altura3$datos3[0], $datos3[1]);
  5493.                 imagegif($thumb3,$camino.$l.$image_id);
  5494.                 break;
  5495.         }
  5496.         ########################
  5497.         # borrar imagen original
  5498.         ########################
  5499.         $imagen_borrar$camino.$image_temp;
  5500.         unlink($imagen_borrar);
  5501.         $gallery->setImageSmall($s.$image_id);
  5502.         $gallery->setImageMedium($m.$image_id);
  5503.         $gallery->setImageLarge($l.$image_id);
  5504.         /* Fin Carga de imagenes */
  5505.         /* Obtengo usuario logueado */
  5506.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5507.         $user_id $user_logueado->getId();
  5508.         $gallery->setCreatedId($user_id);
  5509.         $gallery->setUpdatedId($user_id);
  5510.         $em $this->getDoctrine()->getManager();
  5511.         /* Gestión de eventos en Log */
  5512.         $user_lastname $user_logueado->getLastname();
  5513.         $user_name $user_logueado->getName();
  5514.         $user_email $user_logueado->getEmail();
  5515.         $user_rol $user_logueado->getRoles();
  5516.         $event_url $request->getPathInfo();
  5517.         $event_complete $user_name.' '.$user_lastname.' - '.$user_email.' - '.$user_rol[0].' | '.$event_url;
  5518.         try{
  5519.             $em->persist($gallery);
  5520.             $em->flush();
  5521.             $event 'Images from this supplier have been uploaded.';
  5522.             $successMessage $this->translator->trans($event);
  5523.             $this->addFlash('mensajegallery'$successMessage);
  5524. //            $logger->info($event_complete.' | '.$event);
  5525.         } catch (\Exception $e){
  5526.             $event 'An error occurred: '.$e->getMessage().' | transport';
  5527.             /* Para el log */
  5528. //            $logger->error($event_complete.' | '.$event);
  5529.             /* Para el usuario */
  5530.             $errorMessage $this->translator->trans($event);
  5531.             $this->addFlash('mensajegalleryerror'$errorMessage);
  5532.         }
  5533.         /* Fin Gestión de eventos en Log */
  5534.         return $id;
  5535.     }
  5536.     /**
  5537.      * @Route("/addloungevideo/{id}", name="reservations_greenpatio_add_lounge_video")
  5538.      */
  5539.     public function addLoungeVideoAction($idRequest $request//, LoggerInterface $logger)
  5540.     {
  5541.         $em $this->getDoctrine()->getManager();
  5542.         /* Obtengo usuario logueado */
  5543.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5544.         $user_id $user_logueado->getId();
  5545.         $now = new DateTime('now');
  5546.         $urlvideo $request->request->get('loungevideo');
  5547.         $urlvideo $urlvideo['urlvideo'];
  5548.         $loungeId $id;
  5549.         if(!empty($urlvideo)){
  5550.             switch (true) {
  5551.                 case strpos($urlvideo'youtube'):
  5552.                     $patron '%^ (?:https?://)? (?:www\.)? (?: youtu\.be/ | youtube\.com (?: /embed/ | /v/ | /watch\?v= ) ) ([\w-]{10,12}) ($|&).* $%x';
  5553.                     preg_match($patron$urlvideo$parte);
  5554.                     $urvideo_final 'https://www.youtube.com/embed/'$parte[1];
  5555.                     break;
  5556.                 case strpos($urlvideo'youtu'):
  5557.                     $patron '%^ (?:https?://)? (?:www\.)? (?: youtu\.be/ | youtube\.com (?: /embed/ | /v/ | /watch\?v= ) ) ([\w-]{10,12}) ($|&).* $%x';
  5558.                     preg_match($patron$urlvideo$parte);
  5559.                     $urvideo_final 'https://www.youtube.com/embed/'$parte[1];
  5560.                     break;
  5561.                 case strpos($urlvideo'vimeo'):
  5562.                     $patron '%^https?:\/\/(?:www\.|player\.)?vimeo.com\/(?:channels\/(?:\w+\/)?|groups\/([^\/]*)\/videos\/|album\/(\d+)\/video\/|video\/|)(\d+)(?:$|\/|\?)(?:[?]?.*)$%im';
  5563.                     preg_match($patron$urlvideo$parte);
  5564.                     $urvideo_final 'https://player.vimeo.com/video/'$parte[3];
  5565.                     break;
  5566.             }
  5567.             if(!empty($urlvideo) && !empty($urvideo_final) ){
  5568.                 $video = new ReservationLoungeVideo();
  5569.                 $video->setCreatedId($user_id);
  5570.                 $video->setUpdatedId($user_id);
  5571.                 $video->setVideo($urvideo_final);
  5572.                 $video->setLoungeId($loungeId);
  5573.                 $video->setCreatedAt($now);
  5574.                 $video->setUpdatedAt($now);
  5575.                 $em->persist($video);
  5576.                 $em->flush();
  5577.             }
  5578.         }
  5579.         if (empty($urlvideo)){
  5580.             $errorMessage $this->translator->trans('Error, some fields are empty');
  5581.             $this->addFlash('mensajegalleryerror'$errorMessage);
  5582.         }
  5583.         return $this->redirectToRoute('reservations_lounge_details', array('id' => $id));
  5584.     }
  5585.     /**
  5586.      * @Route("/deleteloungevideo/{id}", name="reservations_greenpatio_delete_lounge_video")
  5587.      */
  5588.     public function deleteLoungeVideoAction($idRequest $request//, LoggerInterface $logger)
  5589.     {
  5590.         $em $this->getDoctrine()->getManager();
  5591.         $video $em->getRepository(ReservationLoungeVideo::class)->findOneById($id);
  5592.         $idLounge $video->getLoungeId();
  5593.         try{
  5594.             $em->remove($video);
  5595.             $em->flush();
  5596.             $event 'The Item has been deleted.';
  5597.             $successMessage $this->translator->trans($event);
  5598.             $this->addFlash('mensajereservation'$successMessage);
  5599.         } catch (\Exception $e){
  5600.             $event 'An error occurred: '.$e->getMessage();
  5601.             $errorMessage $this->translator->trans($event);
  5602.             $this->addFlash('mensajereservationerror'$errorMessage);
  5603.         }
  5604.         return $this->redirectToRoute('reservations_lounge_details', array('id' => $idLounge));
  5605.     }
  5606.     /**
  5607.      * @Route("/addloungeblueprints/{id}", name="reservations_greenpatio_add_lounge_blueprints")
  5608.      */
  5609.     public function addLoungeBlueprintsAction($idRequest $request//, LoggerInterface $logger)
  5610.     {
  5611.         $em $this->getDoctrine()->getManager();
  5612.         /* Obtengo usuario logueado */
  5613.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5614.         $user_id $user_logueado->getId();
  5615.         $now = new DateTime('now');
  5616.         $picturefiles $request->files->all();
  5617.         $loungeId $id;
  5618.         $imagen $picturefiles['loungepicturegalleryblueprints'];
  5619.         $data $loungeId;
  5620.         if(!empty($imagen)){
  5621.             $num = -1;
  5622.             $data $this->CargarImgGalleryAction($loungeId$imagen$num$request); //, $logger);
  5623.         }else{
  5624.             $errorMessage $this->translator->trans('Error, some fields are empty');
  5625.             $this->addFlash('mensajegalleryerror'$errorMessage);
  5626.         }
  5627.         return $this->redirectToRoute('reservations_lounge_details', array('id' => $id));
  5628.     }
  5629.    /**
  5630.      * @Route("/addpicturemounting/{id}", name="reservations_greenpatio_add_lounge_picture_mounting")
  5631.      */
  5632.     public function addLoungePictureMountingAction($idRequest $request//, LoggerInterface $logger)
  5633.     {
  5634.         $em $this->getDoctrine()->getManager();
  5635.         /* Obtengo usuario logueado */
  5636.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5637.         $user_id $user_logueado->getId();
  5638.         $now = new DateTime('now');
  5639.         $picturefiles $request->files->all();
  5640.         $loungeId $id;
  5641.         $imagen $picturefiles['picturemounting'];
  5642.         $data $loungeId;
  5643.         if(!empty($imagen)){
  5644.             $num $request->request->get('picturemounting');
  5645.             $num $num['type'];
  5646.             $data $this->CargarImgGalleryAction($loungeId$imagen$num$request); //, $logger);
  5647.         }else{
  5648.             $errorMessage $this->translator->trans('Error, some fields are empty');
  5649.             $this->addFlash('mensajegalleryerror'$errorMessage);
  5650.         }
  5651.         return $this->redirectToRoute('reservations_lounge_details', array('id' => $id));
  5652.     }
  5653.    /**
  5654.      * @Route("/updatedimmensions/{id}", name="update_dimmensions")
  5655.      */
  5656.     public function updateDimmensionsAction($idRequest $request)
  5657.     {
  5658.         $em $this->getDoctrine()->getManager();
  5659.         $lounge $em->getRepository(ReservationLoungeDetails::class)->findOneById($id);
  5660.         $newData $request->request->get('loungedimmensions');
  5661.         $lounge->setMeters($newData['meters']);
  5662.         $lounge->setLength($newData['length']);
  5663.         $lounge->setWidth($newData['width']);
  5664.         $lounge->setHeight($newData['height']);
  5665.         $lounge->setCapSchool($newData['capSchool']);
  5666.         $lounge->setCapTheater($newData['capTheater']);
  5667.         $lounge->setCapCocktail($newData['capCocktail']);
  5668.         $lounge->setCapBanquet($newData['capBanquet']);
  5669.         $lounge->setCapImperial($newData['capImperial']);
  5670.         /* Obtengo usuario logueado */
  5671.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5672.         $user_id $user_logueado->getId();
  5673.         $now = new DateTime('now');
  5674.         $lounge->setUpdatedId($user_id);
  5675.         $lounge->setUpdatedAt($now);
  5676.         try{
  5677.             $em->persist($lounge);
  5678.             $em->flush();
  5679.             $event 'The Note has been created succesfully.';
  5680.             $successMessage $this->translator->trans($event);
  5681.             $this->addFlash('mensaje'$successMessage);
  5682.         } catch (\Exception $e){
  5683.             $event 'An error occurred: '.$e->getMessage();
  5684.             /* Para el usuario */
  5685.             $errorMessage $this->translator->trans($event);
  5686.             $this->addFlash('mensajeerror'$errorMessage);
  5687.         }
  5688.         return $this->redirectToRoute('reservations_lounge_details', array('id' => $id));
  5689.     }
  5690.     /**
  5691.      * @Route("/addvisit", name="reservations_greenpatio_addvisit")
  5692.      */
  5693.     public function addVisitAction(Request $request)
  5694.     {
  5695.         $em $this->getDoctrine()->getManager();
  5696.         $visitas $em->getRepository(ReservationVisit::class)->findAll();
  5697.         $listAllReservas $em->getRepository(Reservation::class)->findAll();
  5698.         $agentsGp = array();     //arreglo con los agentes de Green Patio
  5699.         $allUsers[] = $em->getRepository(User::class)->findAll();
  5700.         $agentsGp $em->getRepository(User::class)->findBy(['userrol' => [49,53]]);
  5701.         return $this->render('MDS/GreenPatioBundle/reservations/add-visit.html.twig',
  5702.             array(
  5703.                 'visitas' => $visitas,
  5704.                 'agentsGp' => $agentsGp,
  5705.                 'listAllReservas' => $listAllReservas,
  5706.             )
  5707.         );
  5708.     }
  5709.     /**
  5710.      * @Route("/createvisit", name="reservations_greenpatio_createvisit")
  5711.      */
  5712.     public function createVisitAction(Request $request)
  5713.     {
  5714.         $newRequest $request->request->get('visit');
  5715.         $em $this->getDoctrine()->getManager();
  5716.         /* Obtengo usuario logueado */
  5717.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5718.         $user_id $user_logueado->getId();
  5719.         if (!empty($newRequest['date']) and !empty($newRequest['time'])){
  5720.             $dateStart = new DateTime ($newRequest['date']. ' '.$newRequest['time']);
  5721.         } else {
  5722.             $dateStart = new DateTime ('now');
  5723.         }
  5724.         if (!empty($newRequest['time'])) {
  5725.             $hourStart substr($newRequest['time'], 02);
  5726.             $minStart substr($newRequest['time'], 32);
  5727.             $hourEnd substr($newRequest['time'],0,2) + 1;
  5728.             $minEnd substr($newRequest['time'],3,2);
  5729.         } else {
  5730.             $hourStart '12';
  5731.             $minStart '00';
  5732.             $hourEnd '13';
  5733.             $minEnd '00';
  5734.         }
  5735.         if (!empty($newRequest['agent'])) {
  5736.             $agent $em->getRepository(User::class)->findOneById($newRequest['agent']);
  5737.         } else {
  5738.             $agent $em->getRepository(User::class)->findOneById(82);
  5739.         }
  5740.         $title '';
  5741.         if (!empty($newRequest['name'])){
  5742.             $title $newRequest['name'];
  5743.         }
  5744.         if (!empty($newRequest['idreservation'])){
  5745.             $res $em->getRepository(Reservation::class)->findOneById($newRequest['idreservation']);
  5746.             if (!empty($title)) {
  5747.                 $title $title ' - ' $res->getTitle();
  5748.             } else {
  5749.                 $title $res->getTitle();
  5750.             }
  5751.         }
  5752.         $newVisit = new ReservationVisit();
  5753.         $newVisit->setAgentId($agent->getId());
  5754.         $newVisit->setDateStart($dateStart);
  5755.         $newVisit->setDateEnd($dateStart);
  5756.         if (!empty($newRequest['time'])) {
  5757.             $newVisit->setHourStart($hourStart);
  5758.             $newVisit->setMinStart($minStart);
  5759.             $newVisit->setHourEnd($hourEnd);
  5760.             $newVisit->setMinEnd($minEnd);
  5761.         } else {
  5762.             $newVisit->setHourStart($hourStart);
  5763.             $newVisit->setMinStart($minStart);
  5764.             $newVisit->setHourEnd($hourEnd);
  5765.             $newVisit->setMinEnd($minEnd);
  5766.         }
  5767.         $newVisit->setLoungeName($title.' - '.'Visita '.$agent->getName());
  5768.         if (!empty($newRequest['idreservation'])) {
  5769.             $newVisit->setIdReservation($newRequest['idreservation']);
  5770.         } else {
  5771.             $newVisit->setIdReservation(null);
  5772.         }
  5773.         $newVisit->setType('Visit');
  5774.         $newVisit->setCreatedAt(new DateTime ('now'));
  5775.         $newVisit->setCreatedId($user_id);
  5776.         $newVisit->setUpdatedAt(new DateTime ('now'));
  5777.         $newVisit->setUpdatedId($user_id);
  5778.         $location = (!empty($newRequest['location'])) ? $newRequest['location'] : 0;
  5779.         $newVisit->setIdLounge($location);
  5780.         $em->persist($newVisit);
  5781.         $em->flush();
  5782.         return $this->redirectToRoute('reservations_greenpatio_addvisit');
  5783.     }
  5784.     /**
  5785.      * @Route("/deletevisit/{id}", name="get_reservations_deletevisit")
  5786.      */
  5787.     public function deleteVisitAction($idRequest $request) {
  5788.         $em $this->getDoctrine()->getManager();
  5789.         $visit $em->getRepository(ReservationVisit::class)->findOneById($id);
  5790.         if (!empty($visit)){
  5791.             $em->remove($visit);
  5792.             $em->flush();
  5793.         }
  5794.         return $this->redirectToRoute('reservations_greenpatio_addvisit');
  5795.     }
  5796.     /**
  5797.      * @Route("/sendconfirmationrequestmail/{id}", name="reservations_greenpatio_send_confirmation_request_mail")
  5798.      * Enviar correo a Salvador y Rafael Guerrero para que la reserva (id) pase al estado confirmado
  5799.      */
  5800.     public function sendConfirmationRequestMailAction($idRequest $request){
  5801.         /* Obtengo usuario logueado */
  5802.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5803.         $user_id $user_logueado->getId();
  5804.         $mailArrayTo = array();
  5805.         $mailArrayTo['salvador@avexpress.tv'] = 'salvador@avexpress.tv';
  5806.         $mailArrayTo['rafael.guerrero@inout-travel.com'] = 'rafael.guerrero@inout-travel.com';
  5807.         $mailArrayTo['gustavo.ayala@develup.solutions'] = 'gustavo.ayala@develup.solutions';
  5808.         $em $this->getDoctrine()->getManager();
  5809.         $dataGP $this->disponibilidadGreenPatio($id);
  5810.         $dataAV $this->disponibilidadAvExpress($id);
  5811.         $dataLounges = array();
  5812.         foreach ($dataGP as $item){
  5813.             $lounges $em->getRepository(ReservationLoungeSimple::class)->findBy(array('idReservation'=>$item->getId(),'type'=>null));
  5814.             foreach ($lounges as $elem){ $dataLounges[$item->getId()][] = $elem; }
  5815.         }
  5816.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  5817.         $agente $em->getRepository(User::class)->findOneById($user_id);
  5818.         $mailAddressFrom $agente->getEmail();
  5819. //        $mailSubject = 'Solicitud de confirmación de reserva: '.$reserva->getTitle();
  5820.         $mailSubject 'Confirmación de reserva: '.$reserva->getTitle();
  5821.         $mailBody 'Estimado administrador,'.
  5822.             '<br><br>'$agente->getName().' '$agente->getLastName(). ' ha solicitado la confirmación de la reserva:'.
  5823.             '<br><br>'.$reserva->getTitle(). ' con ID: '.$reserva->getId().
  5824.             '<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>';
  5825.         if (!empty($dataGP) or !empty($dataAV)){
  5826.             if(!empty($dataGP)){
  5827.                 // Conflictos con otros eventos en Green Patio
  5828.                 $mailBody $mailBody 'Este evento coincide con la(s) reserva(s): <br>';
  5829.                 foreach ($dataGP as $res){
  5830.                     $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');
  5831.                     if(!empty($dataLounges[$res->getId()])){
  5832.                         $mailBody $mailBody .', Salas: ';
  5833.                         foreach ($dataLounges[$res->getId()] as $loungeItem){ $mailBody $mailBody $loungeItem->getLoungeName().', '; }
  5834.                         $mailBody $mailBody .'<br>';
  5835.                     }
  5836.                 }
  5837.                 $mailBody $mailBody '<br><br>';
  5838.             }
  5839.             if(!empty($dataAV)){
  5840.                     // Conflictos con otros eventos de AvExpress
  5841.                 $mailBody $mailBody 'Este evento coincide en AV con el expediente(s): <br>';
  5842.                 foreach ($dataAV as $file){
  5843.                     $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>';
  5844.                 }
  5845.             }
  5846.         }
  5847.         $mailBody $mailBody .'<br><br><a href="https://inout.mante.solutions/reservations-greenpatio/">CALENDARIO GREEN PATIO</a>';
  5848. //        $mailBody = $mailBody .'<br><br> <a href="http://127.0.0.1:8000/reservations-greenpatio/adminconfirmres/y/'.$id.'">"SI"</a> deseo confirmar la reserva.';
  5849.         $mailBody $mailBody .'<br><br> <a href="https://inout.mante.solutions/reservations-greenpatio/adminconfirmres/y/'.$id.'">"SI"</a> deseo confirmar la reserva.';
  5850. //        $mailBody = $mailBody .'<br><br> <a href="http://127.0.0.1:8000/reservations-greenpatio/adminconfirmres/n/'.$id.'">"NO"</a> deseo confirmar la reserva.';
  5851.         $mailBody $mailBody .'<br><br> <a href="https://inout.mante.solutions/reservations-greenpatio/adminconfirmres/n/'.$id.'">"NO"</a> deseo confirmar la reserva.';
  5852. //        $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>';
  5853.         $mailBody $mailBody .'<br><br><br> <a href="https://inout.mante.solutions">"PARA QUE LOS ENLACES FUNCIONEN, ANTES DEBES INCIAR SESION"</a><br><br>';
  5854.         // Se envia el correo pidiendo la confirmacion
  5855.         $this->sendMailLot($mailAddressFrom$mailArrayTo$mailSubject$mailBody);
  5856.         // Se envia el Telegram pidiendo la confirmacion
  5857.         $this->sendTelegramToConfirmReservation($id);
  5858.         // Sincronización con HT
  5859.         if (!empty($reserva)) {
  5860.             // Rafa indico que siempre se sincronice al abrir un expediente de GP
  5861.             if (in_array($reserva->getStatus(), [null'''Confirmed''Invoiced''Iniciado''Cotizado''Bloqueo'])) {
  5862. //            if (in_array($reserva->getStatus(), ['Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
  5863.                 if ($reserva->getCateringName() == 'HIGO & TRIGO, S.L.') {
  5864.                     // Si no se ha creado aun el expediente de HT debemos crearlo
  5865.                     $htFile $em->getRepository(HtFile::class)->findByReservation($reserva);
  5866.                     if (empty($htFile)) {
  5867.                         return $this->redirectToRoute('sinc_gp_ht', array('id' => $id,));
  5868.                     }
  5869.                 }
  5870.             }
  5871.         }
  5872.         // Sincronización con Av Express
  5873.         $cotizable $this->laReservaEsCotizable($reserva->getId());
  5874.         if ($cotizable) {
  5875.             $AveFile $em->getRepository(AveFiles::class)->findByReservation($reserva);
  5876.             // Rafa indico que siempre se sincronice al abrir un expediente de GP
  5877.             if (in_array($reserva->getStatus(), [null'''Confirmed''Invoiced''Iniciado''Cotizado''Bloqueo'])) {
  5878. //            if (in_array($reserva->getStatus(), ['Confirmed', 'Invoiced', 'Iniciado', 'Cotizado', 'Bloqueo'])) {
  5879.                 if (empty($AveFile)) {
  5880.                     // Si no se ha creado aun el expediente de Av Express debemos crearlo
  5881.                     return $this->redirectToRoute('sinc_gp_ave', array('id' => $id,));
  5882.                 }
  5883.             }
  5884.         }
  5885.         return $this->redirectToRoute('reservations_greenpatio_edit_simple', array( 'id' => $id'token' => null ));
  5886.     }
  5887.     /**
  5888.      * @Route("/adminconfirmres/{op}/{id}", name="reservations_greenpatio_admin_confirm_res")
  5889.      * Confirmacion del administrador, positiva o negativa (op) de la reserva (id)
  5890.      */
  5891.     public function adminConfirmationReservationAction($op$idRequest $request){
  5892.         $em $this->getDoctrine()->getManager();
  5893.         /* Obtengo usuario logueado */
  5894.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  5895.         $user_id $user_logueado->getId();
  5896.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  5897.         $mailArrayTo = array();
  5898.         $mailArrayTo['salvador@avexpress.tv'] = 'salvador@avexpress.tv';
  5899.         $mailArrayTo['rafael.guerrero@inout-travel.com'] = 'rafael.guerrero@inout-travel.com';
  5900.         $mailArrayTo['comercial@greenpatio.es'] = 'comercial@greenpatio.es';
  5901.         $mailArrayTo['comercial2@greenpatio.es'] = 'comercial2@greenpatio.es';
  5902.         $mailArrayTo['gustavo.ayala@develup.solutions'] = 'gustavo.ayala@develup.solutions';
  5903.         $agente $em->getRepository(User::class)->findOneById($user_id);
  5904.         $mailAddressFrom $agente->getEmail();
  5905.         $mailSubject 'Confirmación de reserva: '.$reserva->getTitle();
  5906.         switch ($op) {
  5907.             case 'y':
  5908.                 // Se va a Confirmar la reserva
  5909.                 $reserva->setStatus('Confirmed');
  5910.                 $reserva->setUpdatedBy($user_id);
  5911.                 $reserva->setUpdatedAt(new DateTime('now'));
  5912.                 $em->persist($reserva);
  5913.                 $em->flush();
  5914.                 $mailBody 'Estimado agente,'.
  5915.                     '<br><br>'$agente->getName().' '$agente->getLastName(). ' ha confirmado la reserva:'.
  5916.                     '<br><br>'.$reserva->getTitle(). ' con ID: '.$reserva->getId().
  5917.                     '<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>';
  5918. //                $mailBody = $mailBody .'<br><br> <a href="http://127.0.0.1:8000/reservations-greenpatio/editsimple/'.$id.'">Ir a la reserva</a>';
  5919.                 $mailBody $mailBody .'<br><br> <a href="https://inout.mante.solutions/reservations-greenpatio/editsimple/'.$id.'">Ir a la reserva</a>';
  5920.                 break;
  5921.             case 'n':
  5922.                 // No se va a Confirmar la reserva - Pasa a un editar (para ajustar fechas etc)
  5923.                 $reserva->setStatus('Cotizado');
  5924.                 $reserva->setUpdatedBy($user_id);
  5925.                 $reserva->setUpdatedAt(new DateTime('now'));
  5926.                 $em->persist($reserva);
  5927.                 $em->flush();
  5928.                 $mailBody 'Estimado agente,'.
  5929.                     '<br><br>'$agente->getName().' '$agente->getLastName(). ' ha rechazado la confirmación de la reserva:'.
  5930.                     '<br><br>'.$reserva->getTitle(). ' con ID: '.$reserva->getId().
  5931.                     '<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>'.
  5932.                     '<br>POR FAVOR, PONGANSE EN CONTACTO PARA DETEMINAR UN NUEVO HORARIO<br><br><br>';
  5933. //                $mailBody = $mailBody .'<br><br> <a href="http://127.0.0.1:8000/reservations-greenpatio/editsimple/'.$id.'">Ir a la reserva</a>';
  5934.                 $mailBody $mailBody .'<br><br> <a href="http://inout.mante.solutions/reservations-greenpatio/editsimple/'.$id.'">Ir a la reserva</a>';
  5935.                 break;
  5936.             default:
  5937.                 break;
  5938.         }
  5939.         // Enviar correo al agente (envia a las 2 agentes? enviar al creador de la reserva?)
  5940.         $this->sendMailLot($mailAddressFrom$mailArrayTo$mailSubject$mailBody);
  5941.         echo 'Ha finalizado correctamente su sesión. Puede cerrar la aplicación'; exit();
  5942.     }
  5943.     /**
  5944.      * @Route("/viewcontract/{id}", name="reservations_greenpatio_view_contract")
  5945.      * Vista del contrato de la reserva (id)
  5946.      */
  5947.     public function viewContractReservationAction($idRequest $request){
  5948.         // El cliente es obligatorio y no puede ser null
  5949.         // El contacto es obligatorio y no puede ser null, será el representante del cliente en el contrato
  5950.         // En el expediente solo deben estar las salas definitivas para el contrato
  5951.         $em $this->getDoctrine()->getManager();
  5952.         /* Obtengo usuario logueado */
  5953. //        $user_logueado = $this->get('security.token_storage')->getToken()->getUser();
  5954. //        $user_id = $user_logueado->getId();
  5955.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  5956.         $contractOrigin $reserva->getContract();
  5957.         $dateStart $reserva->getDateStart();
  5958.         $dateEnd $reserva->getDateEnd();
  5959.         //Buscamos el representante
  5960.         $representante $reserva->getClientContact();
  5961.         $representante $em->getRepository(ClientContact::class)->findOneById($representante);
  5962.         $representanteCorreo $representante->getEmail();
  5963.         $representante $representante->getName().' '.$representante->getLastName();
  5964.         //Buscamos el cliente
  5965.         $client $reserva->getClient();
  5966.         $client $em->getRepository(Client::class)->findOneById($client);
  5967.         // La fecha de inicio y fin del evento incluyen montaje y desmontaje
  5968.         // Determinamos el primer y ultimo dia del evento y lo modificamos en la reserva sin tocar la base de datos
  5969.         $allOnlySalasReservadas $em->getRepository(ReservationLoungeSimple::class)->findBy(array('idReservation'=>$id,'type'=>null));
  5970.         if (!empty($allOnlySalasReservadas)){
  5971.             $reserva->setDateStart($allOnlySalasReservadas[0]->getDateStart());
  5972.             $reserva->setDateEnd($allOnlySalasReservadas[0]->getDateEnd());
  5973.             foreach ($allOnlySalasReservadas as $item){
  5974.                 if ($item->getDateStart() < $reserva->getDateStart()){ $reserva->setDateStart($item->getDateStart()); }
  5975.                 if ($item->getDateEnd() > $reserva->getDateEnd()){ $reserva->setDateEnd($item->getDateEnd()); }
  5976.             }
  5977.         }
  5978.         //Generamos la fecha actual
  5979.         $fechaActual = new DateTime('now');
  5980.         $mesActual $fechaActual->format('m');
  5981.         switch ($mesActual){
  5982.             case '01'$mesActual 'enero'; break;
  5983.             case '02'$mesActual 'febrero'; break;
  5984.             case '03'$mesActual 'marzo'; break;
  5985.             case '04'$mesActual 'abril'; break;
  5986.             case '05'$mesActual 'mayo'; break;
  5987.             case '06'$mesActual 'jumio'; break;
  5988.             case '07'$mesActual 'julio'; break;
  5989.             case '08'$mesActual 'agosto'; break;
  5990.             case '09'$mesActual 'septiembre'; break;
  5991.             case '10'$mesActual 'octubre'; break;
  5992.             case '11'$mesActual 'noviembre'; break;
  5993.             case '12'$mesActual 'diciembre'; break;
  5994.             default:   $mesActual ''; break;
  5995.         }
  5996.         $contract00 '
  5997. <br><br><br><br><br><br><br><br><br><br>
  5998. <div class="WordSection1"><div class="WordSection1"><div class="WordSection1"></div><div class="WordSection1"><p class="MsoBodyText" style="text-align: center;">
  5999. <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:&quot;Arial&quot;,sans-serif">&nbsp;</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;">
  6000. <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="">
  6001. <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:&quot;Arial&quot;,sans-serif"><o:p></o:p></span></b></span></p></div><p class="MsoBodyText"><span lang="DE" style="font-size:11.0pt;font-family:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:&quot;Arial Unicode MS&quot;;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:&quot;Arial&quot;,sans-serif">&nbsp;</span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</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">
  6002. <br><br><br><br><br><br><br><br><br><br>
  6003. <br><br><br><br><br><br><br><br><br><br>
  6004. <br><br><br><br><br><br><br><br><br><br>
  6005. <br><br><br><br><br><br><br><br><br><br>
  6006. <br><br><br><br><br><br><br><br><br><br>
  6007. <br><br><br><br><br><br><br><br><br><br>
  6008. <span lang="DE" style="font-size:12.5pt;line-height:138%;font-family:&quot;Arial&quot;,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:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">
  6009. <span lang="ES-TRAD" style="font-size:12.5pt;line-height:138%;font-family:&quot;Arial&quot;,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:&quot;Arial&quot;,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:&quot;Arial&quot;,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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">
  6010. <span lang="DE" style="font-size:12.5pt;line-height:138%;font-family:&quot;Arial&quot;,sans-serif">ESTIPULACIONES</span></span><span class="Ninguno"><b><i><u><span lang="DE" style="font-size:12.5pt;line-height:138%;font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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:&quot;Arial&quot;,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]-->
  6011. <b><span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">OBJETO</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif;letter-spacing:-.05pt"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">DEL</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">CONTRATO</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">4</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6012. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">DURACIÓN</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif;letter-spacing:-.05pt"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">Y</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">RESOLUCION</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">4</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6013. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">EL</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">EVENTO</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">5</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6014. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">POLITICA</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">DE CANCELACIÓN</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">6</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6015. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">NORMAS</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">DE</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">SEGURIDAD</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">7</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6016. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">FIANZA.</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">SEGUROS</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">8</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6017. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">COSTE, PLAZO Y FORMA DE PAGO DE</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">LA</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Ninguno"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif;letter-spacing:-.05pt">CESION<b><u>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</u></b></span></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">8</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6018. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">RESERVA</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">9</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6019. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">CONFIDENCIALIDAD</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif;letter-spacing:-.05pt"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">Y</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">PUBLICIDAD</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">10</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6020. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">DERECHOS DE IMAGEN Y</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">PROPIEDAD</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">INTELECTUAL</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">11</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6021. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">PREVENCIÓN DE</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">LA</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">CORRUPCIÓN</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">11</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6022. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">PROTECCIÓN DE DATOS</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">PERSONALES</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">11</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6023. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">RESPONSABILIDAD</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">13</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6024. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">COMUNICACIONES</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">15</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6025. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">CESIÓN</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">15</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6026. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">NULIDAD</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">PARCIAL</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">15</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6027. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">FUERZA</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">MAYOR</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">15</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6028. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">ACUERDO</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">COMPLETO</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">16</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6029. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">MODIFICACIÓN</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">16</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6030. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">LEGISLACIÓN</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif;letter-spacing:-.05pt"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">Y</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">JURISDICCIÓN</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">16</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,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>
  6031. <span lang="ES-TRAD" style="font-family:&quot;Calibri&quot;,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: &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></b><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">ANEXO I. EL</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif;letter-spacing:-.05pt"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">ESPACIO</span></span><span class="Ninguno"><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif"> </span></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">CEDIDO</span></span><span class="Ninguno"><b><u><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></u></b></span><span class="Hyperlink1"><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif">18</span></span><b><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:Calibri"><o:p></o:p></span>
  6032. <br><br><br><br><br><br><br><br><br><br>
  6033. <br><br><br><br><br><br><br><br><br><br>
  6034. <br><br><br><br><br><br><br><br><br><br>
  6035. </b></p></div><p class="MsoBodyText"><span lang="DE" style="font-size:11.0pt;font-family:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:&quot;Arial Unicode MS&quot;;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:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:Calibri">&nbsp;</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:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:Calibri">&nbsp;</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">
  6036. <span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif;mso-ansi-language:ES-TRAD">En Madrid, a </span></span><span class="Hyperlink1">
  6037. '.$fechaActual->format('d').' de '.$mesActual.' del '.$fechaActual->format('Y').'.'.'
  6038. <span lang="DE" style="font-family:&quot;Arial&quot;,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:&quot;Arial&quot;,sans-serif">&nbsp;</span></b></span></p><p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:11.0pt;font-family:&quot;Arial&quot;,sans-serif">&nbsp;</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:&quot;Arial&quot;,sans-serif">IDENTIFICACION DE LAS PARTES</span></u></b></span><span class="Ninguno"><b><span lang="DE" style="font-family:&quot;Arial&quot;,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:&quot;Arial&quot;,sans-serif">&nbsp;</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:&quot;Arial&quot;,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:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:Garamond-Bold"> EL CLIENTE </span></b></span><span lang="EN-US" style="font-family:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:Garamond-Bold;color:#212121;mso-ansi-language:EN-US">
  6039. ';
  6040.         $contract01 '</span><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:Garamond-Bold">con</span><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:Garamond-Bold;mso-ansi-language:ES"> </span><span lang="EN-US" style="font-family:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:Garamond-Bold;mso-ansi-language:EN-US">&nbsp;';
  6041.         $contract02 '</span><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:Garamond-Bold">y domicilio a efectos de notificacionesen </span><span style="font-family:&quot;Arial&quot;,sans-serif;mso-ansi-language:ES">';
  6042.         $contract03 '</span><span class="Ninguno"><span style="font-family:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:Garamond-Bold;color:#212121"> </span></span><span lang="ES-TRAD" style="font-family:&quot;Arial&quot;,sans-serif;mso-fareast-font-family:Garamond-Bold;color:#313131">facultada y representada por D.';
  6043.         $contract04 '<p class="Poromisin" style="margin-top:0cm"><span class="Ninguno"><span lang="RU" style="color: rgb(33, 33, 33);"><font face="Arial">&nbsp;</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">&nbsp;</font></span></span></p><p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:11.0pt"><font face="Arial">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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>&nbsp;&nbsp;</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>
  6044. <br><br><br><br><br><br><br><br><br><br>
  6045. <br><br><br><br><br><br><br><br><br><br>
  6046. <br><br><br><br><br><br><br><br><br><br>
  6047. <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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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>';
  6048.         $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 ';
  6049.         //Generamos la fecha de inicio
  6050.         $fechaInicio $reserva->getDateStart()->format('m');
  6051.         switch ($fechaInicio){
  6052.             case '01'$mesInicio 'enero'; break;
  6053.             case '02'$mesInicio 'febrero'; break;
  6054.             case '03'$mesInicio 'marzo'; break;
  6055.             case '04'$mesInicio 'abril'; break;
  6056.             case '05'$mesInicio 'mayo'; break;
  6057.             case '06'$mesInicio 'jumio'; break;
  6058.             case '07'$mesInicio 'julio'; break;
  6059.             case '08'$mesInicio 'agosto'; break;
  6060.             case '09'$mesInicio 'septiembre'; break;
  6061.             case '10'$mesInicio 'octubre'; break;
  6062.             case '11'$mesInicio 'noviembre'; break;
  6063.             case '12'$mesInicio 'diciembre'; break;
  6064.             default:   $mesInicio ''; break;
  6065.         }
  6066.         $fechaInicio $reserva->getDateStart()->format('d'). ' de '.$mesInicio.' del '.$reserva->getDateStart()->format('Y').' ';
  6067.         $contract06 ='</span><span lang="DE">a las<span style="letter-spacing:-.7pt"> </span><span style="letter-spacing:-.15pt">';
  6068.         $horaInicio $reserva->getDateStart()->format('H:i').' ';
  6069.         $contract07 ='</span>horas<span style="letter-spacing:-.5pt"> </span>hasta<span style="letter-spacing:-.15pt">';
  6070.         //Generamos la fecha de fin
  6071.         $fechaFin $reserva->getDateEnd()->format('m');
  6072.         switch ($fechaFin){
  6073.             case '01'$mesFin 'enero'; break;
  6074.             case '02'$mesFin 'febrero'; break;
  6075.             case '03'$mesFin 'marzo'; break;
  6076.             case '04'$mesFin 'abril'; break;
  6077.             case '05'$mesFin 'mayo'; break;
  6078.             case '06'$mesFin 'jumio'; break;
  6079.             case '07'$mesFin 'julio'; break;
  6080.             case '08'$mesFin 'agosto'; break;
  6081.             case '09'$mesFin 'septiembre'; break;
  6082.             case '10'$mesFin 'octubre'; break;
  6083.             case '11'$mesFin 'noviembre'; break;
  6084.             case '12'$mesFin 'diciembre'; break;
  6085.             default:   $mesFin ''; break;
  6086.         }
  6087.         if ($reserva->getDateStart()->format('ymd') != $reserva->getDateEnd()->format('ymd')){
  6088.             $fechaFin ' el día '.$reserva->getDateEnd()->format('d'). ' de '.$mesFin.' del '.$reserva->getDateEnd()->format('Y').' a las '.$reserva->getDateEnd()->format('H:i').' ';
  6089.             $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:';
  6090.             $contract08 $fechaFin.$contractAlfa;
  6091.         } else {
  6092.             // El evento empieza y termina el mismo dia
  6093.             $horaFin ' las '.$reserva->getDateEnd()->format('H:i').' ';
  6094.             $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:';
  6095.             $contract08 $horaFin.$contractAlfa;
  6096.         }
  6097.         // Buscamos las salas
  6098.         $allSalasReservadas $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($id);
  6099.         $arrayTextoSalas = array();
  6100.         foreach ($allSalasReservadas as $item){
  6101.             $arrayTextoSalas[$item->getIdLounge()] = $item->getIdLounge();
  6102.         }
  6103.         $textoSalas '';
  6104.         $logAllGreen false;       // Si se asigna el edificio completo no hay que verificar mas salas
  6105.         foreach ($arrayTextoSalas as $item){
  6106.             $sala $em->getRepository(ReservationLoungeDetails::class)->findOneById($item);
  6107.             switch ($sala->getId()){
  6108.                 case '1'$textoSalas '<b>TODO EL EDIFICIO EN EXCLUSIVA</b>'$logAllGreen true; break;
  6109.                 case '16':
  6110.                     if (empty($textoSalas)){
  6111.                         $textoSalas '<b>Sala Plenaria La Imprenta, Sala Invernadero</b>';
  6112.                     } else {
  6113.                         $textoSalas $textoSalas.'<b>Sala Plenaria La Imprenta, Sala Invernadero</b>'; }
  6114.                     break;
  6115.                 case '17':
  6116.                     if (empty($textoSalas)){
  6117.                         $textoSalas '<b>Sala Plenaria La Imprenta, Sala Invernadero, Sala Escenario</b>';
  6118.                     } else {
  6119.                         $textoSalas $textoSalas.'<b>Sala Plenaria La Imprenta, Sala Invernadero, Sala Escenario</b>'; }
  6120.                         break;
  6121.                 default: if (!$logAllGreen){
  6122.                     // Agregamos el texto de la sala
  6123.                     if (empty($textoSalas)){ $textoSalas '<b>'.$sala->getName().'</b>'; } else { $textoSalas $textoSalas.'<b>, '.$sala->getName().'</b>'; }
  6124.                 } break;
  6125.             }
  6126.         }
  6127.         $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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">';
  6128.         $cierre $reserva->getDateEnd()->format('H:i').' horas del día '.$reserva->getDateEnd()->format('d').' de '.$mesFin.' del '.$reserva->getDateEnd()->format('Y');
  6129.         $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">&nbsp;</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">&nbsp;</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>
  6130. <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
  6131. <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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;<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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">';
  6132.         $pax $reserva->getPax();
  6133.         $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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">Fecha de celebración: ';
  6134.         $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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">';
  6135.         $contract13 '</span></u></b></span><b><span lang="ES-TRAD" style="font-size:12.0pt"><o:p></o:p></span></b></font></p>';
  6136.         // Se asume que los montajes seran como maximo de dos dias
  6137.         $montaje = array();
  6138.         $mesInicioMontaje '';
  6139.         $mesFinMontaje '';
  6140.         foreach ($allSalasReservadas as $item){
  6141.             if ($item->getType() == 'Montaje'){
  6142.                 if (empty($montaje)){
  6143.                     $montaje[0] = $item->getDateStart();
  6144.                     switch ($item->getDateStart()->format('m')){
  6145.                         case '01'$mesInicioMontaje 'enero'; break;
  6146.                         case '02'$mesInicioMontaje 'febrero'; break;
  6147.                         case '03'$mesInicioMontaje 'marzo'; break;
  6148.                         case '04'$mesInicioMontaje 'abril'; break;
  6149.                         case '05'$mesInicioMontaje 'mayo'; break;
  6150.                         case '06'$mesInicioMontaje 'jumio'; break;
  6151.                         case '07'$mesInicioMontaje 'julio'; break;
  6152.                         case '08'$mesInicioMontaje 'agosto'; break;
  6153.                         case '09'$mesInicioMontaje 'septiembre'; break;
  6154.                         case '10'$mesInicioMontaje 'octubre'; break;
  6155.                         case '11'$mesInicioMontaje 'noviembre'; break;
  6156.                         case '12'$mesInicioMontaje 'diciembre'; break;
  6157.                         default:   $mesInicioMontaje ''; break;
  6158.                     }
  6159.                 } else {
  6160.                     $montaje[1] = $item->getDateEnd();
  6161.                     switch ($item->getDateEnd()->format('m')){
  6162.                         case '01'$mesFinMontaje 'enero'; break;
  6163.                         case '02'$mesFinMontaje 'febrero'; break;
  6164.                         case '03'$mesFinMontaje 'marzo'; break;
  6165.                         case '04'$mesFinMontaje 'abril'; break;
  6166.                         case '05'$mesFinMontaje 'mayo'; break;
  6167.                         case '06'$mesFinMontaje 'jumio'; break;
  6168.                         case '07'$mesFinMontaje 'julio'; break;
  6169.                         case '08'$mesFinMontaje 'agosto'; break;
  6170.                         case '09'$mesFinMontaje 'septiembre'; break;
  6171.                         case '10'$mesFinMontaje 'octubre'; break;
  6172.                         case '11'$mesFinMontaje 'noviembre'; break;
  6173.                         case '12'$mesFinMontaje 'diciembre'; break;
  6174.                         default:   $mesFinMontaje ''; break;
  6175.                     }
  6176.                 }
  6177.             }
  6178.         }
  6179.         switch (sizeof($montaje)){
  6180.             case 1$textoMontaje $montaje[0]->format('d').' de '.$mesInicioMontaje.' del '.$montaje[0]->format('Y'); break;
  6181.             case 2:
  6182.                 if ($mesInicioMontaje == $mesFinMontaje){
  6183.                     // Dos dias de montaje en el mismo mes
  6184.                     $textoMontaje $montaje[0]->format('d').' y '.$montaje[1]->format('d'). ' de '.$mesInicioMontaje.' del '.$montaje[0]->format('Y');
  6185.                 } else {
  6186.                     // Dos dias de montaje con diferentes meses, ejemplo 31/03 y 01/04
  6187.                     $textoMontaje $montaje[0]->format('d').' de '.$mesInicioMontaje.' y '.$montaje[1]->format('d').' de '.$mesFinMontaje.' del '.$montaje[0]->format('Y');
  6188.                 }
  6189.                 break;
  6190.             default: $textoMontaje null; break;
  6191.         }
  6192.         if (!empty($textoMontaje)){
  6193.             $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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>';
  6194.         }
  6195.         // Se asume que los desmontajes seran como maximo de dos dias
  6196.         $desmontaje = array();
  6197.         $mesInicioDesmontaje '';
  6198.         $mesFinDesmontaje '';
  6199.         foreach ($allSalasReservadas as $item){
  6200.             if ($item->getType() == 'Desmontaje'){
  6201.                 if (empty($desmontaje)){
  6202.                     $desmontaje[0] = $item->getDateStart();
  6203.                     switch ($item->getDateStart()->format('m')){
  6204.                         case '01'$mesInicioDesmontaje 'enero'; break;
  6205.                         case '02'$mesInicioDesmontaje 'febrero'; break;
  6206.                         case '03'$mesInicioDesmontaje 'marzo'; break;
  6207.                         case '04'$mesInicioDesmontaje 'abril'; break;
  6208.                         case '05'$mesInicioDesmontaje 'mayo'; break;
  6209.                         case '06'$mesInicioDesmontaje 'jumio'; break;
  6210.                         case '07'$mesInicioDesmontaje 'julio'; break;
  6211.                         case '08'$mesInicioDesmontaje 'agosto'; break;
  6212.                         case '09'$mesInicioDesmontaje 'septiembre'; break;
  6213.                         case '10'$mesInicioDesmontaje 'octubre'; break;
  6214.                         case '11'$mesInicioDesmontaje 'noviembre'; break;
  6215.                         case '12'$mesInicioDesmontaje 'diciembre'; break;
  6216.                         default:   $mesInicioDesmontaje ''; break;
  6217.                     }
  6218.                 } else {
  6219.                     $desmontaje[1] = $item->getDateEnd();
  6220.                     switch ($item->getDateEnd()->format('m')){
  6221.                         case '01'$mesFinDesmontaje 'enero'; break;
  6222.                         case '02'$mesFinDesmontaje 'febrero'; break;
  6223.                         case '03'$mesFinDesmontaje 'marzo'; break;
  6224.                         case '04'$mesFinDesmontaje 'abril'; break;
  6225.                         case '05'$mesFinDesmontaje 'mayo'; break;
  6226.                         case '06'$mesFinDesmontaje 'jumio'; break;
  6227.                         case '07'$mesFinDesmontaje 'julio'; break;
  6228.                         case '08'$mesFinDesmontaje 'agosto'; break;
  6229.                         case '09'$mesFinDesmontaje 'septiembre'; break;
  6230.                         case '10'$mesFinDesmontaje 'octubre'; break;
  6231.                         case '11'$mesFinDesmontaje 'noviembre'; break;
  6232.                         case '12'$mesFinDesmontaje 'diciembre'; break;
  6233.                         default:   $mesFinDesmontaje ''; break;
  6234.                     }
  6235.                 }
  6236.             }
  6237.         }
  6238.         switch (sizeof($desmontaje)){
  6239.             case 1$textoDesmontaje $desmontaje[0]->format('d').' de '.$mesInicioDesmontaje.' del '.$desmontaje[0]->format('Y'); break;
  6240.             case 2:
  6241.                 if ($mesInicioDesmontaje == $mesFinDesmontaje){
  6242.                     // Dos dias de montaje en el mismo mes
  6243.                     $textoDesmontaje $desmontaje[0]->format('d').' y '.$desmontaje[1]->format('d'). ' de '.$mesInicioDesmontaje.' del '.$desmontaje[0]->format('Y');
  6244.                 } else {
  6245.                     // Dos dias de montaje con diferentes meses, ejemplo 31/03 y 01/04
  6246.                     $textoDesmontaje $desmontaje[0]->format('d').' de '.$mesInicioDesmontaje.' y '.$desmontaje[1]->format('d').' de '.$mesFinDesmontaje.' del '.$desmontaje[0]->format('Y');
  6247.                 }
  6248.                 break;
  6249.             default: $textoDesmontaje 'Mismo día al finalizar el evento desde las 17 horas hasta las 00:00 horas'; break;
  6250.         }
  6251.         if (!empty($textoDesmontaje)){
  6252.             $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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></span><!--[endif]--><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:12.0pt">DESMONTAJE: '.$textoDesmontaje.'.&nbsp; <b><o:p></o:p></b></span></span></font></p>';
  6253.         }
  6254.         $contract14 '<p class="MsoNormal"><span class="Hyperlink1"><span lang="EN-US"><font face="Arial">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><!--[endif]--><b><span lang="ES-TRAD" style="font-size:12.0pt;mso-bidi-font-family:&quot;Arial Unicode MS&quot;;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:&quot;Arial Unicode MS&quot;;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:&quot;Arial Unicode MS&quot;;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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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 ';
  6255.         if (empty($mesInicioMontaje)){
  6256.             switch ($dateStart->format('m')){
  6257.                 case '01'$mesInicioMontajeZ 'enero'; break;
  6258.                 case '02'$mesInicioMontajeZ 'febrero'; break;
  6259.                 case '03'$mesInicioMontajeZ 'marzo'; break;
  6260.                 case '04'$mesInicioMontajeZ 'abril'; break;
  6261.                 case '05'$mesInicioMontajeZ 'mayo'; break;
  6262.                 case '06'$mesInicioMontajeZ 'jumio'; break;
  6263.                 case '07'$mesInicioMontajeZ 'julio'; break;
  6264.                 case '08'$mesInicioMontajeZ 'agosto'; break;
  6265.                 case '09'$mesInicioMontajeZ 'septiembre'; break;
  6266.                 case '10'$mesInicioMontajeZ 'octubre'; break;
  6267.                 case '11'$mesInicioMontajeZ 'noviembre'; break;
  6268.                 case '12'$mesInicioMontajeZ 'diciembre'; break;
  6269.                 default:   $mesInicioMontajeZ ''; break;
  6270.             }
  6271.             $tiempoCedido $dateStart->format('H:i').' horas del día '.$dateStart->format('d').' de '.$mesInicioMontajeZ.' del '.$dateStart->format('Y').' hasta las ';
  6272.         } else {
  6273.             $tiempoCedido $dateStart->format('H:i').' horas del día '.$dateStart->format('d').' de '.$mesInicioMontaje.' del '.$dateStart->format('Y').' hasta las ';
  6274.         }
  6275.         if (empty($mesInicioDesmontaje)){
  6276.             switch ($dateStart->format('m')){
  6277.                 case '01'$mesInicioDesmontajeZ 'enero'; break;
  6278.                 case '02'$mesInicioDesmontajeZ 'febrero'; break;
  6279.                 case '03'$mesInicioDesmontajeZ 'marzo'; break;
  6280.                 case '04'$mesInicioDesmontajeZ 'abril'; break;
  6281.                 case '05'$mesInicioDesmontajeZ 'mayo'; break;
  6282.                 case '06'$mesInicioDesmontajeZ 'jumio'; break;
  6283.                 case '07'$mesInicioDesmontajeZ 'julio'; break;
  6284.                 case '08'$mesInicioDesmontajeZ 'agosto'; break;
  6285.                 case '09'$mesInicioDesmontajeZ 'septiembre'; break;
  6286.                 case '10'$mesInicioDesmontajeZ 'octubre'; break;
  6287.                 case '11'$mesInicioDesmontajeZ 'noviembre'; break;
  6288.                 case '12'$mesInicioDesmontajeZ 'diciembre'; break;
  6289.                 default:   $mesInicioDesmontajeZ ''; break;
  6290.             }
  6291.             $tiempoCedido $tiempoCedido $dateEnd->format('H:i').' horas del día '.$dateEnd->format('d').' de '.$mesInicioDesmontajeZ.' del '.$dateEnd->format('Y');
  6292.         } else {
  6293.             $tiempoCedido $tiempoCedido $dateEnd->format('H:i').' horas del día '.$dateEnd->format('d').' de '.$mesInicioDesmontaje.' del '.$dateEnd->format('Y');
  6294.         }
  6295.         $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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">&nbsp;</font></span></span></p>';
  6296.         // 5. Normas de Seguridad
  6297.         $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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</span></span></font></p>';
  6298.         // 6. Coste, plazo y forma de pago
  6299.         $data $this->CalculosTotalesEditSimple($reserva->getId());
  6300.         $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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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 '.
  6301.             $data['sumatoria_totales_global_neto'].
  6302.             '€<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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</font></span></b></span></p>';
  6303.         // 8. Reserva
  6304.         $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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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"> 
  6305.                         '.($data['sumatoria_totales_global_neto']*0.4).'€</span></span>
  6306.                         <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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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>';
  6307.         // 9. Confidencialidad y publicidad
  6308.         // 11. Derechos de imagen y propiedad intelectual
  6309.         // 12. Prevencion de la corrupcion
  6310.         // 13. Proteccion de datos personales
  6311.         // 14. Responsabilidad
  6312.         $contract19 '<p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial">&nbsp;</font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</font></span></p><p class="MsoBodyText" style="margin-right:9.0pt;text-align:justify"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><!--[endif]--><span lang="ES-TRAD"><u>DERECHOS </u></span><span class="Ninguno"><u><span lang="DE">&nbsp;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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">&nbsp;</font></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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;">&nbsp;&nbsp; </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;">&nbsp;&nbsp; </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;">&nbsp;&nbsp; </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;">&nbsp;&nbsp; </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;">&nbsp;&nbsp; </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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp; </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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp; </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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </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;">&nbsp;&nbsp;&nbsp;&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp; </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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</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">&nbsp;</font></span></p>';
  6313.         // 15. Comunicaciones
  6314.         $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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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">&nbsp;</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;">&nbsp; </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">'
  6315.                         .$representanteCorreo.
  6316.                         '</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;">&nbsp; </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>';
  6317.         // 16. Cesión
  6318.         // 17. Nulidad Parcial
  6319.         // 18. Fuerza Mayor
  6320.         // 19. Acuerdo Completo
  6321.         $contract21 '<p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt"><font face="Arial">&nbsp;</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">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</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>
  6322. <p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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>
  6323. <p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial">&nbsp;</font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>
  6324. <p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial">&nbsp;</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>
  6325. <p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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>
  6326. <p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial">&nbsp;</font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">&nbsp;</font></span></span></p>
  6327. <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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>
  6328. <p class="MsoBodyText" style="margin-top:.1pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial">&nbsp;</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>
  6329. <p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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>
  6330. <p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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>
  6331. <p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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>
  6332. <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>
  6333. <p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial">&nbsp;</font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>
  6334. <p class="MsoBodyText" style="margin-top:.1pt"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:7.5pt"><font face="Arial">&nbsp;</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>
  6335. <p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial">&nbsp;</font></span></span></p><p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>
  6336. <p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial">&nbsp;</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>
  6337. <p class="MsoBodyText" style="margin-top:.35pt"><span class="Hyperlink1"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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>
  6338. <p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD"><font face="Arial">&nbsp;</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>
  6339. <p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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>
  6340. <p class="MsoBodyText" style="margin-top:.3pt"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.5pt"><font face="Arial">&nbsp;</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;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</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">&nbsp;</font></span></p>
  6341. <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>
  6342. <p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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>
  6343. <p class="MsoBodyText" style="margin-top:.05pt"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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>
  6344. <p class="MsoBodyText"><span lang="ES-TRAD"><font face="Arial">&nbsp;</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>
  6345. <p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial">&nbsp;</font></span></span></p>
  6346. <p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial">&nbsp;</font></span></span></p>
  6347. <p class="MsoBodyText"><span class="Hyperlink1"><span lang="ES-TRAD" style="font-size:13.0pt"><font face="Arial">&nbsp;</font></span></span></p>
  6348. <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">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;EL</span></span><span class="Ninguno"><span lang="DE"> </span></span><span class="Hyperlink1"><span lang="DE">CLIENTE&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>
  6349. <p class="MsoBodyText"><span class="Ninguno"><b><span lang="ES-TRAD" style="font-size:10.0pt"><font face="Arial">&nbsp;</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">&nbsp;</font></span></b></span></p>
  6350. <p class="MsoBodyText" style="margin-left:5.05pt;line-height:67.75pt;mso-line-height-rule:
  6351. exactly;tab-stops:154.8pt 282.8pt"><font face="Arial"><span class="Hyperlink1"><span lang="ES-TRAD">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;D.</span></span><u><span class="Hyperlink4"><span lang="ES-TRAD">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span class="Hyperlink1"><span lang="ES-TRAD">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span></u></font></p>
  6352. <br><br><br><br><br><br><br><br><br><br>
  6353. <br><br><br><br><br><br><br><br><br><br>
  6354. <br><br><br><br><br><br><br><br><br><br>
  6355. <br><br><br><br><br><br><br><br><br><br>
  6356. <br><br><br><br><br><br><br><br><br><br>
  6357. <br><br><br><br><br><br><br><br><br><br>
  6358. ';
  6359.         // Normas de uso
  6360.         $contract22 '        
  6361. <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;">&nbsp;</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">&nbsp;</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">&nbsp;</font></span></p>
  6362. <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>
  6363. <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>
  6364. <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;">
  6365. <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;">
  6366. <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">
  6367. <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">
  6368. <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;">
  6369. <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&nbsp;suelo,&nbsp;desconchones&nbsp;en&nbsp;las&nbsp;paredes,&nbsp;así&nbsp;como&nbsp;cualquier&nbsp;otro&nbsp;servicio&nbsp;o&nbsp;instalación&nbsp;que&nbsp;se&nbsp;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">
  6370. <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;">
  6371. <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;">
  6372. <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&nbsp;respecta&nbsp;al&nbsp;volumen&nbsp;del&nbsp;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;">
  6373. <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">
  6374. <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;">
  6375. <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;">
  6376. <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;">
  6377. <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;">
  6378. <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;">
  6379. <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">
  6380. <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">
  6381. <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">
  6382. <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;">
  6383. <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;">
  6384. <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;">
  6385. <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       
  6386.         ';
  6387.         // Logotipo de Green Patio centrado
  6388.         $contract23 '
  6389.         <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>
  6390.         ';
  6391.             //Generamos el contrato
  6392.         $contract $contract00.'<b>'.' '.$client->getName().'</b>'.' '.$contract01'CIF '.$client->getIdDocument().' '.
  6393.             $contract02.'<b>'.' '.$client->getAddress().'</b>'.','.$contract03.' '.$representante.'.'.
  6394.             $contract04.$reserva->getTitle().$contract05.$fechaInicio.$contract06.$horaInicio.$contract07.
  6395.             $contract08.$textoSalas.$contract09.$cierre.$contract10.$pax.$contract11.$fechaInicio.
  6396.             $contract12.$textoSalas.$contract13.$textoMontaje.$textoDesmontaje.$contract14.$tiempoCedido.
  6397.             $contract15.$contract16.$contract17.$contract18.$contract19.$contract20.$contract21.$contract22.$contract23
  6398.         ;
  6399.         // Si no habia contracto originalmente en la reserva se actualiza
  6400.         if (empty($contractOrigin)){
  6401.             $reserva->setContract($contract);
  6402.             $em->persist($reserva);
  6403.             $em->flush();
  6404.         } else {
  6405.             $contract $contractOrigin;
  6406.         }
  6407.         return $this->render('MDS/GreenPatioBundle/reservations/view-contract-reservation.html.twig',
  6408.             array(
  6409.                 'id' => $id,
  6410.                 'contract' => $contract,
  6411.             )
  6412.         );
  6413.     }
  6414.     /**
  6415.      * @Route("/createdeposit/{id}", name="reservations_greenpatio_createdeposit")
  6416.      */
  6417.     public function createDepositAction($idEntityManagerInterface $emRequest $request)
  6418.     {
  6419.         $newRequest $request->request->get('reservation_deposit');
  6420.         /* Obtengo usuario logueado */
  6421.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  6422.         $user_id $user_logueado->getId();
  6423.         $newDeposit = new ReservationDeposit();
  6424.         $newDeposit->setReservationId($id);
  6425.         if (empty($newRequest['date'])) {
  6426.             $newDeposit->setDate(new DateTime ('now'));
  6427.         } else {
  6428.             $newDeposit->setDate(new DateTime ($newRequest['date']));
  6429.         }
  6430.         if (empty($newRequest['description'])) {
  6431.             $newDeposit->setDescription(null);
  6432.         } else {
  6433.             $newDeposit->setDescription($newRequest['description']);
  6434.         }
  6435.         if (empty($newRequest['amount'])) {
  6436.             $newDeposit->setAmount(null);
  6437.         } else {
  6438.             $newDeposit->setAmount($newRequest['amount']);
  6439.         }
  6440.         if (array_key_exists('isDone',$newRequest)) {
  6441.             $newDeposit->setIsDone(true);
  6442.         } else {
  6443.             $newDeposit->setIsDone(false);
  6444.         }
  6445.         $newDeposit->setCreatedAt(new DateTime ('now'));
  6446.         $newDeposit->setCreatedId($user_id);
  6447.         $newDeposit->setUpdatedAt(new DateTime ('now'));
  6448.         $newDeposit->setUpdatedId($user_id);
  6449.         $em->persist($newDeposit);
  6450.         $em->flush();
  6451.         return $this->redirectToRoute('reservations_greenpatio_edit_simple',
  6452.             array(
  6453.                 'id' => $id,
  6454.                 'token' => null,
  6455.                 '_fragment' => 'btn_dpt'
  6456.             ));
  6457.     }
  6458.     /**
  6459.      * @Route("/depositupdate/{id}", name="reservations_greenpatio_deposit_update")
  6460.      */
  6461.     public function depositUpdateAction($idEntityManagerInterface $emRequest $request)
  6462.     {
  6463.         $newRequest $request->request->get('reservation_deposit_isdone_pending');
  6464.         $deposito $em->getRepository(ReservationDeposit::class)->findOneById($id);
  6465.         if (array_key_exists('isDone',$newRequest)) {
  6466.             $deposito->setIsDone(true);
  6467.         } else {
  6468.             $deposito->setIsDone(false);
  6469.         }
  6470.         /* Obtengo usuario logueado */
  6471.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  6472.         $user_id $user_logueado->getId();
  6473.         $deposito->setUpdatedAt(new DateTime ('now'));
  6474.         $deposito->setUpdatedId($user_id);
  6475.         $em->persist($deposito);
  6476.         $em->flush();
  6477.         return $this->redirectToRoute('reservations_greenpatio_edit_simple',
  6478.             array(
  6479.                 'id' => $deposito->getReservationId(),
  6480.                 'token' => null,
  6481.                 '_fragment' => 'btn_dpt'
  6482.             ));
  6483.     }
  6484.     /**
  6485.      * @Route("/loadedreservations", name="reservations_greenpatio_loaded_reservations")
  6486.      */
  6487.     public function loadedReservationsAction(Request $request)
  6488.     {
  6489.         $em $this->getDoctrine()->getManager();
  6490.         $hoy = new DateTime('now');
  6491.         $diaInicio = new DateTime($hoy->format('Y-m'). '-01');
  6492.         // Se buscan las reservas creadas desde el inicio de mes
  6493.         $parameters = array(
  6494.             'diaInicio' => $diaInicio,
  6495.         );
  6496.         $dql 'SELECT i
  6497.                 FROM GreenPatioBundle:Reservation i
  6498.                 WHERE  i.createdAt > :diaInicio';
  6499.         $query $em->createQuery($dql)->setParameters($parameters);
  6500.         $reservas $query->getResult();
  6501.         return $this->render('MDS/GreenPatioBundle/reservations/list-loaded-reservations.html.twig',
  6502.             array(
  6503.                 'reservations' => $reservas,
  6504.                 'itemsOfSearch' => '',
  6505.             )
  6506.         );
  6507.     }
  6508.     /**
  6509.      * @Route("/searchreservations", name="reservations_greenpatio_search_reservations")
  6510.      */
  6511.     public function searchReservationsAction(Request $request)
  6512.     {
  6513.         $searchloaded $request->request->get('searchloaded');
  6514.         $dateStart = new \DateTime($searchloaded['date_start']);
  6515.         $dateEnd = new \DateTime($searchloaded['date_end']);
  6516.         $itemsOfSearch ' Entre las fechas: '.$dateStart->format('d/m/Y').' y '.$dateEnd->format('d/m/Y');
  6517.         $em $this->getDoctrine()->getManager();
  6518.         // Se buscan las reservas creadas en las fechas solicitadas
  6519.         $parameters = array(
  6520.             'diaInicio' => $dateStart,
  6521.             'diaFin' => $dateEnd,
  6522.         );
  6523.         $dql 'SELECT i
  6524.                 FROM GreenPatioBundle:Reservation i
  6525.                 WHERE  i.createdAt BETWEEN :diaInicio AND :diaFin';
  6526.         $query $em->createQuery($dql)->setParameters($parameters);
  6527.         $reservas $query->getResult();
  6528.         return $this->render('MDS/GreenPatioBundle/reservations/list-loaded-reservations.html.twig',
  6529.             array(
  6530.                 'reservations' => $reservas,
  6531.                 'itemsOfSearch' => $itemsOfSearch,
  6532.             )
  6533.         );
  6534.     }
  6535.     private function sendMail($mailAddressFrom$mailAddressTo$mailSubject$mailBody){
  6536.         $em $this->getDoctrine()->getManager();
  6537.         $agent $em->getRepository(User::class)->findOneByEmail($mailAddressFrom);
  6538.         $client $em->getRepository(Client::class)->findOneByEmail($mailAddressTo);
  6539.         if (empty($client)){ $client $em->getRepository(ClientContact::class)->findOneByEmail($mailAddressTo); }     // Si el cliente era null puede ser un client contact
  6540.         if (!empty($client)){
  6541.             $replyTo = array(
  6542.                 $client->getEmail() => $client->getName(),
  6543.                 $agent->getEmail() => $agent->getName().' '$agent->getLastName(),
  6544.             );
  6545.         } else {
  6546.             // El AddressTo es un contacto no registrado
  6547.             $replyTo = array(
  6548.                 $mailAddressTo => $mailAddressTo,
  6549.                 $agent->getEmail() => $agent->getName().' '$agent->getLastName(),
  6550.             );
  6551.         }
  6552.         $agentMail $mailAddressFrom;
  6553.         $mailAgent $agentMail;
  6554.         //Se prepara el correo con los agentes a notificar
  6555.         $firmGmail $agent->getFirmGmail();
  6556.         $data = array(
  6557.             'body' => $mailBody,
  6558.             'firm' => $firmGmail,
  6559.         );
  6560.         // EJECUTAR ENVIO DE ALERTA PARA EL AGENTE
  6561.         $transporter = new \Swift_SmtpTransport();
  6562.         $transporter->setHost('smtp.gmail.com')
  6563.             ->setEncryption('ssl')//ssl / tls
  6564.             ->setPort(465)// 465 / 587
  6565.             ->setUsername('desarrollo@develup.solutions')
  6566.             ->setPassword('MeDITeRRANeAN_Develup30102023#');
  6567.         $mailer = new \Swift_Mailer($transporter);
  6568.         $message = new \Swift_Message();
  6569.         $message->setSubject($mailSubject)
  6570.             ->setSender($agentMail)
  6571.             ->setFrom(array("desarrollo@develup.solutions" => "Green Patio"))
  6572.             ->setReplyTo($agentMail)
  6573.             ->setTo($replyTo)
  6574.             ->setBody(
  6575.                 $this->renderView(
  6576.                     'mail/structure-mail.html.twig',
  6577.                     array('data' => $data)
  6578.                 ),
  6579.                 'text/html'
  6580.             );
  6581.         $mailer->send($message);
  6582.         return true;
  6583.     }
  6584.     private function makeAlert($reservaId$clientId$clientMail$agentId$agentMail){
  6585.         $em $this->getDoctrine()->getManager();
  6586.         $alertaPrevia $em->getRepository(ReservationMailAlertClient::class)->findOneByReservationId($reservaId);
  6587.         $reserva $em->getRepository(Reservation::class)->findOneById($reservaId);
  6588.         $dias $reserva->getDaysBlock();
  6589.         if (empty($dias) or !(is_numeric($dias))){
  6590.             $dias 7;
  6591.         }
  6592.         $diasMenosDos $dias 2;
  6593.         /* Obtengo usuario logueado */
  6594.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  6595.         $user_id $user_logueado->getId();
  6596.         $hoy = new \DateTime("now"NULL);
  6597.         $hoyMasCinco $hoy;
  6598.         $hoyMasCinco->add(new DateInterval('P'.$diasMenosDos.'D'));                   // 5 dias despues, 48 horas antes de la cancelacion (o los especificados)
  6599.         $hoyMasCinco->add(new DateInterval("PT2H"));                                  // Ajustamos la diferencia con el reloj del servidor
  6600.         $hoy = new \DateTime("now"NULL);
  6601.         $hoyMasSiete $hoy;
  6602.         $hoyMasSiete->add(new DateInterval('P'.$dias.'D'));                           // Siete dias despues (o los especificados)
  6603.         $hoyMasSiete->add(new DateInterval("PT2H"));
  6604.         //Si no hay una alerta previa se hace la alerta
  6605.         if (empty($alertaPrevia)){
  6606.             $alerta = new ReservationMailAlertClient();
  6607.             $alerta->setReservationId($reservaId);
  6608.             $alerta->setClientId($clientId);
  6609.             $alerta->setClientMail($clientMail);
  6610.             $alerta->setAgentId($agentId);
  6611.             $alerta->setAgentMail($agentMail);
  6612.             $alerta->setAlertDateTime($hoyMasCinco);                // A los 5 dias se alerta (o los especificados)
  6613.             $alerta->setAlertSended(false);
  6614.             $alerta->setCancelDateTime($hoyMasSiete);               // A los 7 dias se cancela (o los especificados)
  6615.             $alerta->setCancelSended(false);
  6616.             $alerta->setOldReservationId(null);                     // Aqui se guardara el Id de reserva cuando se vaya a eliminar el registro (solo se pondra reservationId a 0)
  6617.             $alerta->setCreatedAt($hoy);
  6618.             $alerta->setCreatedId($user_id);
  6619.             $em->persist($alerta);
  6620.             $em->flush();
  6621.         }
  6622.         return true;
  6623.     }
  6624.     private function benefitForReservation($id){
  6625.         $em $this->getDoctrine()->getManager();
  6626.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  6627.         $lounges $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($id);
  6628.         $services $em->getRepository(ReservationService::class)->findByReservationId($id);
  6629.         $payedLounges = array();
  6630.         $payedServices = array();
  6631.         $unPayedServices = array();
  6632.         // Salas
  6633.         foreach ($lounges as $item){
  6634.             // Si la sala esta en ReservationInvoiceItems se encuentra facturado, en caso contraio, no lo esta o ha sido rectificado
  6635.             $loungeInvoicedItem $em->getRepository(ReservationInvoiceItems::class)->findOneByLngControlId($item->getId());
  6636.             if (!empty($loungeInvoicedItem)){
  6637.                 // Esta facturado el Item
  6638.                 $payedLounges[] = $item;
  6639.             }
  6640.         }
  6641.         // Servicios
  6642.         foreach ($services as $item){
  6643.             // Si el servicio esta en ReservationInvoiceItems se encuentra facturado, en caso contraio, no lo esta o ha sido rectificado
  6644.             $serviceInvoicedItem $em->getRepository(ReservationInvoiceItems::class)->findOneBySrvControlId($item->getId());
  6645.             if (!empty($serviceInvoicedItem)){
  6646.                 // Esta facturado el Item
  6647.                 $payedServices[] = $item;
  6648.             } else {
  6649.                 // No esta facturado el Item o fue rectificado
  6650.                 $unPayedServices[] = $item;
  6651.             }
  6652.         }
  6653.         $benefit 0;
  6654.         $payed 0;
  6655.         // Se suman los pagos
  6656.         foreach ($payedLounges as $item){
  6657.             $benefit $benefit $item->getServicePrice();
  6658.             $payed $payed $item->getServicePrice();
  6659.         }
  6660.         foreach ($payedServices as $item){
  6661.             $benefit $benefit $item->getPrice();
  6662.             $payed $payed $item->getPrice();
  6663.         }
  6664.         // Se restan los impagos
  6665.         foreach ($unPayedServices as $item){
  6666.             // Se verifica el check de toinvoice por si el servicio se facturara a futuro (Requisito de Rafa)
  6667.             if ($item->getToinvoice()){
  6668.                 $benefit += (float)$item->getPrice();
  6669.                 $payed += (float)$item->getPrice();
  6670.             } else {
  6671.                 // No esta pagado y no esta marcado "Para facturar"
  6672.                 $benefit $benefit - (float)$item->getPrice();
  6673.             }
  6674.         }
  6675.         // Porcentaje de beneficio
  6676.         $percBenefit = ($benefit 100);
  6677.         if (!($payed == 0)){ $percBenefit $percBenefit $payed; } else { $percBenefit 0; };
  6678.         return array(
  6679.             'benefit' => $benefit,
  6680.             'percBenefit' => $percBenefit,
  6681.             'payedLounges' => $payedLounges,
  6682.             'payedServices' => $payedServices,
  6683.             'unPayedServices' => $unPayedServices,
  6684.         );
  6685.     }
  6686.     private function verificarStatusInicialyFinal($id,$user_id,$estadoInicial,$estadoFinal){
  6687.         $em $this->getDoctrine()->getManager();
  6688.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  6689.         $user_logueado $em->getRepository(User::class)->findOneById($user_id);
  6690.         $newStatus 'Pendiente';
  6691.         //Este Switch ya no es necesario
  6692.         switch ($estadoInicial) {
  6693.             case 'Bloqueo':
  6694.                 // De bloqueo solo se sale si el usuario es Salvador o un Admin O si se va a Cancelar "Deleted" o "Cotizado"
  6695. //                if (($user_logueado->getRole() == 'ROLE_ADMIN') or ($user_id == 14) or $estadoFinal == 'Deleted' or $estadoFinal == 'Cotizado'){
  6696.                 if ($estadoFinal == 'Deleted' or $estadoFinal == 'Cotizado'){
  6697.                     $newStatus $estadoFinal;
  6698.                 } else {
  6699.                     // No se cambia el estado
  6700.                     $newStatus $estadoInicial;
  6701.                 }
  6702.                 break;
  6703.             case 'Pendiente':
  6704.                 // De Pendiente solo se sale si el usuario es Salvador o un Admin O si se va a Cancelar "Deleted"
  6705.                 $newStatus $estadoFinal;
  6706. //                if (($user_logueado->getRole() == 'ROLE_ADMIN') or ($user_id == 14) or $estadoFinal == 'Deleted'){
  6707.                 if ($estadoFinal == 'Deleted'){
  6708.                     $newStatus $estadoFinal;
  6709.                 } else {
  6710.                     // No se cambia el estado
  6711.                     $newStatus $estadoInicial;
  6712.                 }
  6713.                 break;
  6714.             case 'Deleted':
  6715.                 // De Cancelado solo se sale si el usuario es Salvador o un Admin O "Bloqueo" o "Pendiente"
  6716. //                if (($user_logueado->getRole() == 'ROLE_ADMIN') or ($user_id == 14) or $estadoFinal == 'Bloqueo' or $estadoFinal == 'Pendiente'or $estadoFinal == 'Cotizado'){
  6717.                 if ($estadoFinal == 'Bloqueo' or $estadoFinal == 'Pendiente'or $estadoFinal == 'Cotizado'){
  6718.                     $newStatus $estadoFinal;
  6719.                 } else {
  6720.                     // No se cambia el estado
  6721.                     $newStatus $estadoInicial;
  6722.                 }
  6723.                 break;
  6724.             case 'Cotizado':
  6725.                 $newStatus $estadoFinal;
  6726.                 // De Cotizado solo se sale si el usuario es Salvador o un Admin O a  O "Bloqueo" o "Pendiente" o "Cancelado"
  6727. //                if (($user_logueado->getRole() == 'ROLE_ADMIN') or ($user_id == 14) or $estadoFinal == 'Bloqueo' or $estadoFinal == 'Pendiente' or $estadoFinal == 'Deleted'){
  6728.                 if ($estadoFinal == 'Bloqueo' or $estadoFinal == 'Pendiente' or $estadoFinal == 'Deleted' or $estadoFinal == 'Confirmed'){
  6729.                     $newStatus $estadoFinal;
  6730.                 }
  6731.                 break;
  6732.             case 'Invoiced':
  6733.                 // De Facturado no se debe salir a menos que se rectifique
  6734.                 // Si todas las facturas del expediente se encuentran rectificadas pasamos al estado "Confirmado" sino seguimos en "Facturado"
  6735.                 $reservaInvoices $em->getRepository(ReservationInvoice::class)->findByReservationId($id);
  6736.                 $estanTodasRectificadas true;
  6737.                 foreach ($reservaInvoices as $item){
  6738.                     $reservaInvoiceRect $em->getRepository(ReservationInvoiceRec::class)->findOneByInvoiceToRec($item->getId());
  6739.                     if (empty($reservaInvoiceRect)){ $estanTodasRectificadas false; } else { $estanTodasRectificadas = ($estanTodasRectificadas and true); }
  6740.                 }
  6741.                 if ($estanTodasRectificadas){
  6742.                     $newStatus 'Confirmed';
  6743.                 } else {
  6744.                     $newStatus $estadoInicial;
  6745.                 }
  6746.                 break;
  6747.             case 'Confirmed':
  6748.                 // Se puede ir a cualquier estado
  6749.                 $newStatus $estadoFinal;
  6750.                 break;
  6751.             default:
  6752.                 // No hacer nada con el campo Status
  6753.                 $newStatus $estadoInicial;
  6754.                 break;
  6755.         }
  6756.         $newStatus $estadoFinal;
  6757.         return $newStatus;
  6758.     }
  6759.     private function disponibilidadGreenPatio($id){
  6760.         // $id Id de la reserva
  6761.         $em $this->getDoctrine()->getManager();
  6762.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  6763.         $lounges $em->getRepository(ReservationLoungeSimple::class)->findByIdReservation($id);
  6764.         $services $em->getRepository(ReservationService::class)->findByReservationId($id);
  6765.         //Buscamos salas que tengamos entre el inicio y fin del evento a confirmar
  6766.         //Sumamos un dia ya que por solicitud de Salva deseamos saber que eventos hay un dia antes y un dia despues
  6767.         $fechaInicio = new \Datetime($reserva->getDateStart()->format('Y-m-d'));
  6768.         $fechaInicio->sub(new \DateInterval("P1D"));
  6769.         $fechaFin = new \Datetime($reserva->getDateEnd()->format('Y-m-d 23:59'));
  6770.         $fechaFin->add(new \DateInterval("P1D"));
  6771.         // Los eventos que debemos verificar son los Confirmados y Facturados
  6772.         $parameters = array(
  6773.             'reservaId' => $id,
  6774.             'dateStart' => $fechaInicio,
  6775.             'dateEnd' => $fechaFin,
  6776.             'facturado' => 'Invoiced',
  6777.             'confirmado' => 'Confirmed',
  6778.         );
  6779.         $dql 'SELECT r
  6780.                 FROM  GreenPatioBundle:Reservation r
  6781.                 INNER JOIN GreenPatioBundle:ReservationLoungeSimple l WITH r.id = l.idReservation
  6782.                   WHERE (r.status = :facturado OR r.status = :confirmado) 
  6783.                     AND (not(r.id = :reservaId)) 
  6784.                     AND ((l.dateStart >= :dateStart and l.dateStart <= :dateEnd))';
  6785.         $query $em->createQuery($dql)->setParameters($parameters);
  6786.         $reservationInDates $query->getResult();
  6787.         return $reservationInDates;
  6788.     }
  6789.     private function disponibilidadAvExpress($id){
  6790.         // $id Id de la reserva de GreenPatio que vamos a confirmar
  6791.         $em $this->getDoctrine()->getManager();
  6792.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  6793.         //Sumamos un dia ya que por solicitud de Salva deseamos saber que eventos hay un dia antes y un dia despues
  6794.         $fechaInicio = new \Datetime($reserva->getDateStart()->format('Y-m-d'));
  6795.         $fechaInicio->sub(new \DateInterval("P1D"));
  6796.         $fechaFin = new \Datetime($reserva->getDateEnd()->format('Y-m-d 23:59'));
  6797.         $fechaFin->add(new \DateInterval("P1D"));
  6798.         $parameters = array(
  6799.             'dateStart' => $fechaInicio,
  6800.             'dateEnd' => $fechaFin,
  6801.         );
  6802.         $dql 'SELECT i
  6803.                 FROM AvexpressBundle:AveFiles i
  6804.                 WHERE ((i.dateStart <= :dateStart and i.dateEnd >= :dateEnd))
  6805.                   OR (i.dateEnd = :dateStart)
  6806.                   OR ((i.dateEnd > :dateStart and i.dateEnd <= :dateEnd))
  6807.                   OR (i.dateStart = :dateStart)
  6808.                   OR ((i.dateStart > :dateStart and i.dateStart <= :dateEnd))
  6809.                   OR (i.dateStart = :dateEnd)                
  6810.                 ORDER BY i.dateStart ASC';
  6811.         $query $em->createQuery($dql)->setParameters($parameters);
  6812.         $avFilesInDates $query->getResult();
  6813.         return $avFilesInDates;
  6814.     }
  6815.     private function sendMailLot($mailAddressFrom$mailArrayTo$mailSubject$mailBody){
  6816.         $em $this->getDoctrine()->getManager();
  6817.         $agent $em->getRepository(User::class)->findOneByEmail($mailAddressFrom);
  6818.         $replyTo = array();
  6819.         foreach ($mailArrayTo as $item){
  6820.             // Verificamos que los correos sean validos
  6821.             if (filter_var($item,FILTER_VALIDATE_EMAIL)){
  6822.                 $replyTo[$item] = $item;
  6823.             }
  6824.         }
  6825.         $agentMail $mailAddressFrom;
  6826.         $mailAgent $agentMail;
  6827.         //Se prepara el correo con los agentes a notificar
  6828.         $firmGmail $agent->getFirmGmail();
  6829.         $data = array(
  6830.             'body' => $mailBody,
  6831.             'firm' => $firmGmail,
  6832.         );
  6833.         // EJECUTAR ENVIO DE ALERTA PARA EL AGENTE
  6834.         $transporter = new \Swift_SmtpTransport();
  6835.         $transporter->setHost('smtp.gmail.com')
  6836.             ->setEncryption('ssl')//ssl / tls
  6837.             ->setPort(465)// 465 / 587
  6838.             ->setUsername('desarrollo@develup.solutions')
  6839.             ->setPassword('MeDITeRRANeAN_Develup30102023#');
  6840.         $mailer = new \Swift_Mailer($transporter);
  6841.         $message = new \Swift_Message();
  6842.         $message->setSubject($mailSubject)
  6843.             ->setSender($agentMail)
  6844.             ->setFrom(array("desarrollo@develup.solutions" => "System Mante 3.0"))
  6845.             ->setReplyTo($agentMail)
  6846.             ->setTo($replyTo)
  6847.             ->setBody(
  6848.                 $this->renderView(
  6849.                     'mail/structure-mail.html.twig',
  6850.                     array('data' => $data)
  6851.                 ),
  6852.                 'text/html'
  6853.             );
  6854.         $mailer->send($message);
  6855.         return true;
  6856.     }
  6857.     private function sendTelegramToConfirmReservation $id ){
  6858.         // En ID tenemos el numero de la reserva de GreenPatio
  6859.         $em $this->getDoctrine()->getManager();
  6860.         /* Obtengo usuario logueado */
  6861.         $user_logueado $this->get('security.token_storage')->getToken()->getUser();
  6862.         $user_id $user_logueado->getId();
  6863.         $dataGP $this->disponibilidadGreenPatio($id);
  6864.         $dataAV $this->disponibilidadAvExpress($id);
  6865.         $reserva $em->getRepository(Reservation::class)->findOneById($id);
  6866.         $agente $em->getRepository(User::class)->findOneById($user_id);
  6867.         $salto0 '                                                            ';
  6868.         $salto '.                                                                .';
  6869.         $saltoAlfa ' ...................................................................................................................... ';
  6870.         $mailBody 'Solicitud de confirmación de reserva: '.$reserva->getTitle();
  6871.         $mailBody $mailBody$salto0.'Estimado administrador,'
  6872.             $salto0.$agente->getName().' '$agente->getLastName(). ' ha solicitado la confirmación de la reserva:'
  6873.             $salto0.$reserva->getTitle(). ' con ID: '.$reserva->getId()
  6874.             . $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')
  6875.             . $saltoAlfa;
  6876.         if (!empty($dataGP) or !empty($dataAV)){
  6877.             if(!empty($dataGP)){
  6878.                 // Conflictos con otros eventos en Green Patio
  6879.                 $mailBody $mailBody 'Este evento coincide con la(s) reserva(s):'$salto0.$salto0;
  6880.                 foreach ($dataGP as $res){
  6881.                     $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;
  6882.                 }
  6883.                 $mailBody $mailBody $saltoAlfa;
  6884.             }
  6885.             if(!empty($dataAV)){
  6886.                 // Conflictos con otros eventos de AvExpress
  6887.                 $mailBody $mailBody 'Este evento coincide en AV con el expediente(s):'$salto0.$salto0;
  6888.                 foreach ($dataAV as $file){
  6889.                     $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');
  6890.                 }
  6891.             }
  6892.         }
  6893.         $mailBody $mailBody $saltoAlfa.$saltoAlfa.'CALENDARIO GREEN PATIO: '.'https://inout.mante.solutions/reservations-greenpatio';
  6894.         $mailBody $mailBody $salto.$salto.'SI deseo confirmar: '.'https://inout.mante.solutions/reservations-greenpatio/adminconfirmres/y/'.$id;
  6895.         $mailBody $mailBody $salto.$salto.'NO deseo confirmar: '.'https://inout.mante.solutions/reservations-greenpatio/adminconfirmres/n/'.$id;
  6896.         $mailBody $mailBody $salto.$salto.'PARA QUE LOS ENLACES FUNCIONEN, ANTES DEBES INCIAR SESION '.'https://dev.mante.solutions';
  6897. //        $this->sendTelegram(20,$mailBody);
  6898.         $this->sendTelegram(14,$mailBody);
  6899.         return true;
  6900.     }
  6901.     private function sendTelegram $id$text )
  6902.     {
  6903.         $em $this->getDoctrine()->getManager();
  6904.         $telegUser $em->getRepository(MdvTelegramUser::class)->findOneByUserId($id);
  6905.         if (empty($telegUser)){return true;}
  6906.         $parameters = array(
  6907.             'chat_id' => $telegUser->getChatId(),
  6908.             'text' => $text,
  6909.         );
  6910.         $bot_token $telegUser->getBotToken();
  6911.         $url "https://api.telegram.org/bot$bot_token/sendMessage";
  6912.         if (!$curl curl_init()){
  6913.             exit();
  6914.         }
  6915.         curl_setopt($curl,CURLOPT_POST,true);
  6916.         curl_setopt($curl,CURLOPT_POSTFIELDS,$parameters);
  6917.         curl_setopt($curl,CURLOPT_URL,$url);
  6918.         curl_setopt($curl,CURLOPT_RETURNTRANSFER,true);
  6919.         $output curl_exec($curl);
  6920.         curl_close($curl);
  6921.         return true;
  6922.     }
  6923.     private function notificacionReservasPorCotizar(){
  6924.         // Se buscan las reservas en estado "Iniciado" y se notifica a todos los
  6925.         // agentes de Green Patio, Solo se notifica 1 vez por dia
  6926.         // Solo se mantendran las alertas de los ultimos 6 meses
  6927.         $em $this->getDoctrine()->getManager();
  6928.         $alertas $em->getRepository(ReservationAlertStarted::class)->findAll();
  6929.         if (!empty($alertas)){ $ultimaAlerta end($alertas); } else { $ultimaAlerta null; }
  6930.         $alertas $em->getRepository(ReservationAlertStarted::class)->findAll();
  6931.         $agentesGreenPatio $em->getRepository(User::class)->findByUserrol(48);
  6932.         $hoy = new DateTime('now');
  6933.         $fechaLimite = new DateTime('now');
  6934.         $fechaLimite->modify('-180 day');
  6935.         if (!empty($ultimaAlerta)){ $mismaFecha $ultimaAlerta->getAlertDate()->format('Ymd') == $hoy->format('Ymd'); } else { $mismaFecha false; }
  6936.         if ($mismaFecha){
  6937.             // No se debe notificar, la ultima alerta es del dia de hoy
  6938.         } else {
  6939.             // Hay que notificar
  6940.             if (empty($agentesGreenPatio)){ return true; }
  6941.             $mailAddressFrom $agentesGreenPatio[0]->getEmail();
  6942.             $mailArrayTo = array();
  6943.             foreach ($agentesGreenPatio as $agente){
  6944.                 $mailArrayTo[$agente->getEmail()] = $agente->getEmail();
  6945.             }
  6946.             $mailSubject 'EXPENDIENTES POR COTIZAR';
  6947.             $reservasIniciado $em->getRepository(Reservation::class)->findByStatus('Iniciado');
  6948.             $mailBody null;
  6949.             foreach ($reservasIniciado as $reserva){
  6950.                 $agenteReserva $em->getRepository(User::class)->findOneById($reserva->getCreatedBy());
  6951.                 $agenteReserva $agenteReserva->getName().' '.$agenteReserva->getLastName();
  6952.                 $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>';
  6953.             }
  6954.             if (!empty($mailBody)){
  6955.                 $this->sendMailLot($mailAddressFrom$mailArrayTo$mailSubject$mailBody);
  6956.                 // Creamos la alerta del dia
  6957.                 $alertToday = new ReservationAlertStarted();
  6958.                 $alertToday->setAlertDate($hoy);
  6959.                 $alertToday->setMessage($mailBody);
  6960.                 $em->persist($alertToday);
  6961.                 $em->flush();
  6962.             }
  6963.         }
  6964.         // Eliminamos las alertas con mas de 6 meses de antiguedad
  6965.         foreach ($alertas as $alerta){
  6966.             if ($alerta->getAlertDate() < $fechaLimite){
  6967.                 $em->remove($alerta);
  6968.                 $em->flush();
  6969.             }
  6970.         }
  6971.         return true;
  6972.     }
  6973.     private function modificarBooleanoDeMeses$loungeNewProfile$dateStart$dateEnd ){
  6974.         // Se ajustan los booleanos segun las fechas dadas y se guarda la entidad
  6975.         $em $this->getDoctrine()->getManager();
  6976.         $monthStart intval($dateStart->format('m'));
  6977.         $monthEnd intval($dateEnd->format('m'));
  6978.         for ($indice 1$indice <= 12$indice++) {
  6979.             if (($indice == $monthStart) or ($indice == $monthEnd) or (($indice $monthStart) and ($indice $monthEnd))){
  6980.                 switch ($indice){
  6981.                     case 1$loungeNewProfile->setMonth1(true); break;
  6982.                     case 2$loungeNewProfile->setMonth2(true); break;
  6983.                     case 3$loungeNewProfile->setMonth3(true); break;
  6984.                     case 4$loungeNewProfile->setMonth4(true); break;
  6985.                     case 5$loungeNewProfile->setMonth5(true); break;
  6986.                     case 6$loungeNewProfile->setMonth6(true); break;
  6987.                     case 7$loungeNewProfile->setMonth7(true); break;
  6988.                     case 8$loungeNewProfile->setMonth8(true); break;
  6989.                     case 9$loungeNewProfile->setMonth9(true); break;
  6990.                     case 10$loungeNewProfile->setMonth10(true); break;
  6991.                     case 11$loungeNewProfile->setMonth11(true); break;
  6992.                     case 12$loungeNewProfile->setMonth12(true); break;
  6993.                     default: break;
  6994.                 }
  6995.             } else {
  6996.                 switch ($indice){
  6997.                     case 1$loungeNewProfile->setMonth1(false); break;
  6998.                     case 2$loungeNewProfile->setMonth2(false); break;
  6999.                     case 3$loungeNewProfile->setMonth3(false); break;
  7000.                     case 4$loungeNewProfile->setMonth4(false); break;
  7001.                     case 5$loungeNewProfile->setMonth5(false); break;
  7002.                     case 6$loungeNewProfile->setMonth6(false); break;
  7003.                     case 7$loungeNewProfile->setMonth7(false); break;
  7004.                     case 8$loungeNewProfile->setMonth8(false); break;
  7005.                     case 9$loungeNewProfile->setMonth9(false); break;
  7006.                     case 10$loungeNewProfile->setMonth10(false); break;
  7007.                     case 11$loungeNewProfile->setMonth11(false); break;
  7008.                     case 12$loungeNewProfile->setMonth12(false); break;
  7009.                     default: break;
  7010.                 }
  7011.             }
  7012.         }
  7013.         $loungeNewProfile->setDateStart($dateStart);
  7014.         $loungeNewProfile->setDateEnd($dateEnd);
  7015.         try {
  7016.             $em->persist($loungeNewProfile);
  7017.             $em->flush();
  7018. //            $event = 'The Item has been created.';
  7019. //            $successMessage = $this->translator->trans($event);
  7020. //            $this->addFlash('mensajereservation', $successMessage);
  7021.         } catch (\Exception $e) {
  7022.             $event 'An error occurred: ' $e->getMessage();
  7023.             $errorMessage $this->translator->trans($event);
  7024.             $this->addFlash('mensajereservationerror'$errorMessage);
  7025.         }
  7026.         return true;
  7027.     }
  7028.     private function verificarPreciosCoincidiendo$loungeNewProfile ){
  7029.         // Se buscan posibles coincidencias de precios activos con el nuevo precio que se ha creado
  7030.         $em $this->getDoctrine()->getManager();
  7031.         $parameters = array(
  7032.             'id' => $loungeNewProfile->getId(),
  7033.             'loungeId' => $loungeNewProfile->getLoungeId(),
  7034.             'fechaInicio' => $loungeNewProfile->getDateStart(),
  7035.             'fechaFin' => $loungeNewProfile->getDateEnd(),
  7036.             'priceIsActive' => true,
  7037.         );
  7038.         $dql 'SELECT i
  7039.                 FROM GreenPatioBundle:ReservationLoungeProfile i
  7040.                 WHERE  i.id <> :id and i.loungeId = :loungeId and i.priceIsActive = :priceIsActive and 
  7041.                   ((i.dateStart BETWEEN :fechaInicio AND :fechaFin) or (i.dateEnd BETWEEN :fechaInicio AND :fechaFin) or 
  7042.                   (:fechaInicio BETWEEN i.dateStart AND i.dateEnd) or (:fechaFin BETWEEN i.dateStart AND i.dateEnd))';
  7043.         $query $em->createQuery($dql)->setParameters($parameters);
  7044.         $coincidencias $query->getResult();
  7045.         if (!empty($coincidencias)){ array_unshift($coincidencias$loungeNewProfile); }
  7046.         return $coincidencias;
  7047.     }
  7048.     private function duplicarEntidad$loungeNewProfile$loungeProfile$dateStart$dateEnd ){
  7049.         // Se copian todos los valores de la entidad $loungeProfile en $loungeNewProfile
  7050.         $em $this->getDoctrine()->getManager();
  7051.         $loungeNewProfile->setLoungeId($loungeProfile->getLoungeId());
  7052.         $loungeNewProfile->setPeriodId($loungeProfile->getPeriodId());
  7053.         $loungeNewProfile->setPrice($loungeProfile->getPrice());
  7054.         $loungeNewProfile->setDescription($loungeProfile->getDescription());
  7055.         $loungeNewProfile->setCreatedId($loungeProfile->getCreatedId());
  7056.         $loungeNewProfile->setCreatedAt($loungeProfile->getCreatedAt());
  7057.         $loungeNewProfile->setUpdatedId($loungeProfile->getUpdatedId());
  7058.         $loungeNewProfile->setUpdatedAt($loungeProfile->getUpdatedAt());
  7059.         $loungeNewProfile->setYear1($loungeProfile->getYear1());
  7060.         $loungeNewProfile->setYear2($loungeProfile->getYear2());
  7061.         $loungeNewProfile->setMonth1($loungeProfile->getMonth1());
  7062.         $loungeNewProfile->setMonth2($loungeProfile->getMonth2());
  7063.         $loungeNewProfile->setMonth3($loungeProfile->getMonth3());
  7064.         $loungeNewProfile->setMonth4($loungeProfile->getMonth4());
  7065.         $loungeNewProfile->setMonth5($loungeProfile->getMonth5());
  7066.         $loungeNewProfile->setMonth6($loungeProfile->getMonth6());
  7067.         $loungeNewProfile->setMonth7($loungeProfile->getMonth7());
  7068.         $loungeNewProfile->setMonth8($loungeProfile->getMonth8());
  7069.         $loungeNewProfile->setMonth9($loungeProfile->getMonth9());
  7070.         $loungeNewProfile->setMonth10($loungeProfile->getMonth10());
  7071.         $loungeNewProfile->setMonth11($loungeProfile->getMonth11());
  7072.         $loungeNewProfile->setMonth12($loungeProfile->getMonth12());
  7073.         $loungeNewProfile->setDay1($loungeProfile->getDay1());
  7074.         $loungeNewProfile->setDay2($loungeProfile->getDay2());
  7075.         $loungeNewProfile->setDay3($loungeProfile->getDay3());
  7076.         $loungeNewProfile->setDay4($loungeProfile->getDay4());
  7077.         $loungeNewProfile->setDay5($loungeProfile->getDay5());
  7078.         $loungeNewProfile->setDay6($loungeProfile->getDay6());
  7079.         $loungeNewProfile->setDay7($loungeProfile->getDay7());
  7080.         $loungeNewProfile->setTitle($loungeProfile->getTitle());
  7081.         $loungeNewProfile->setPriceIsActive($loungeProfile->getPriceIsActive());
  7082. //        En la funcion modificarBooleanoDeMeses se establecen los dateStart y dateEnd
  7083. //        $loungeNewProfile->setDateStart($dateStart);
  7084. //        $loungeNewProfile->setDateEnd($dateEnd);
  7085.         if (empty($dateStart) or empty($dateEnd)){ return true; }
  7086.         try {
  7087.             $em->persist($loungeNewProfile);
  7088.             $em->flush();
  7089. //            $event = 'The Item has been created.';
  7090. //            $successMessage = $this->translator->trans($event);
  7091. //            $this->addFlash('mensajereservation', $successMessage);
  7092.         } catch (\Exception $e) {
  7093.             $event 'An error occurred: ' $e->getMessage();
  7094.             $errorMessage $this->translator->trans($event);
  7095.             $this->addFlash('mensajereservationerror'$errorMessage);
  7096.         }
  7097.         return true;
  7098.     }
  7099.     private function verificarCambioCliente$idRes ){
  7100.         // Solo se puede cambiar el cliente si no hay un documento emitido (factura, factura de deposito)
  7101.         $em $this->getDoctrine()->getManager();
  7102.         $resInv $em->getRepository(ReservationInvoice::class)->findByReservationId($idRes);
  7103.         return empty($resInv);
  7104.     }
  7105.     private function reordenarSalas$number$idLounge ){
  7106.         // number es el numero de la sala editada
  7107.         $em $this->getDoctrine()->getManager();
  7108.         $number--;
  7109.         $parameters = array(
  7110.             'idLounge' => $idLounge,
  7111.             'rankLounge' => $number,
  7112.             );
  7113.         $dql 'SELECT i
  7114.                 FROM GreenPatioBundle:ReservationLoungeDetails i
  7115.                 WHERE  i.rankLounge > :rankLounge AND i.id <> :idLounge';
  7116.         $query $em->createQuery($dql)->setParameters($parameters);
  7117.         $salasParaReordenar $query->getResult();
  7118.         foreach ($salasParaReordenar as $sala) {
  7119.             $sala->setRankLounge(($sala->getRankLounge() + 1));
  7120.             $em->persist($sala);
  7121.             $em->flush();
  7122.         }
  7123.         return empty($resInv);
  7124.     }
  7125.     private function laReservaEsConfirmable$id ){
  7126.         // Una reserva se puede confirmar solo cuando tiene un deposito realizado
  7127.         $em $this->getDoctrine()->getManager();
  7128.         $depositos $em->getRepository(ReservationDeposit::class)->findBy(array('reservationId' => $id'isDone' => true));
  7129.         return !empty($depositos);
  7130.     }
  7131.     private function laReservaEsCotizable$id ){
  7132.         // Una reserva se puede cotizar solo cuando tiene al menos una sala agregada
  7133.         $em $this->getDoctrine()->getManager();
  7134.         $salas $em->getRepository(ReservationLoungeSimple::class)->findBy(array('idReservation' => $id));
  7135. //        return !empty($salas);
  7136.         return true;            // Se pidio que siempre se sincronizara con Av
  7137.     }
  7138.     private function notificacionReservasPendientesDelSegundoDeposito(){
  7139.         // Se buscan las reservas con depositos y se notifica a todos los
  7140.         // agentes de Green Patio si no tienen el segundo deposito y faltan 30 días
  7141.         // o menos para el evento, Solo se notifica 1 vez por dia
  7142.         $em $this->getDoctrine()->getManager();
  7143.         $depositosHechos $em->getRepository(ReservationDeposit::class)->findByIsDone(true);
  7144.         $arrayDepositos = array();
  7145.         $arrayReservasPemdientesSegunDepositos = array();
  7146.         $today = new \Datetime('now');
  7147.         $todayPlusMonth = new \Datetime('+ 30 days');
  7148.         // Se agrupan los depositos por reservas
  7149.         foreach ($depositosHechos as $item){
  7150.             $arrayDepositos[$item->getReservationId()][] = $item;
  7151.         }
  7152.         foreach ($arrayDepositos as $item){
  7153.             if (sizeof($item)<2){
  7154.                 // Solo nos interesan reservas con un deposito
  7155.                 $reserva $em->getRepository(Reservation::class)->findOneById($item[0]->getReservationId());
  7156.                 if ($reserva->getStatus() == 'Confirmed'){
  7157.                     // Solo nos interesan reservas confirmadas
  7158.                     if (($reserva->getDateStart() < $todayPlusMonth) and ($reserva->getDateStart()>$today)){
  7159.                      // Solo nos interesan reservas que inician en 30 dias
  7160.                         $arrayReservasPemdientesSegunDepositos[] = $reserva;
  7161.                     }
  7162.                 }
  7163.             }
  7164.         }
  7165.         $alertas $em->getRepository(ReservationAlertSecondDeposit::class)->findAll();
  7166.         if (!empty($alertas)){ $ultimaAlerta end($alertas); } else { $ultimaAlerta null; }
  7167.         $agentesGreenPatio $em->getRepository(User::class)->findByUserrol(48);
  7168.         $hoy = new DateTime('now');
  7169.         $fechaLimite = new DateTime('now');
  7170.         $fechaLimite->modify('-180 day');
  7171.         if (!empty($ultimaAlerta)){ $mismaFecha $ultimaAlerta->getAlertDate()->format('Ymd') == $hoy->format('Ymd'); } else { $mismaFecha false; }
  7172.         if ($mismaFecha){
  7173.             // No se debe notificar, la ultima alerta es del dia de hoy
  7174.         } else {
  7175.             // Hay que notificar
  7176.             if (empty($agentesGreenPatio)){ return true; }
  7177.             $mailAddressFrom $agentesGreenPatio[0]->getEmail();
  7178.             $mailArrayTo = array();
  7179.             foreach ($agentesGreenPatio as $agente){
  7180.                 $mailArrayTo[$agente->getEmail()] = $agente->getEmail();
  7181.             }
  7182.             $mailSubject 'EXPENDIENTES CON DEPOSITOS PENDIENTES';
  7183.             $reservasIniciado $arrayReservasPemdientesSegunDepositos;
  7184.             $mailBody null;
  7185.             foreach ($reservasIniciado as $reserva){
  7186.                 $agenteReserva $em->getRepository(User::class)->findOneById($reserva->getCreatedBy());
  7187.                 $agenteReserva $agenteReserva->getName().' '.$agenteReserva->getLastName();
  7188.                 $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>';
  7189.             }
  7190.             if (!empty($mailBody)){
  7191.                 $this->sendMailLot($mailAddressFrom$mailArrayTo$mailSubject$mailBody);
  7192.                 // Creamos la alerta del dia
  7193.                 $alertToday = new ReservationAlertSecondDeposit();
  7194.                 $alertToday->setAlertDate($hoy);
  7195.                 $alertToday->setMessage($mailBody);
  7196.                 $em->persist($alertToday);
  7197.                 $em->flush();
  7198.             }
  7199.         }
  7200.         // Eliminamos las alertas con mas de 6 meses de antiguedad
  7201.         foreach ($alertas as $alerta){
  7202.             if ($alerta->getAlertDate() < $fechaLimite){
  7203.                 $em->remove($alerta);
  7204.                 $em->flush();
  7205.             }
  7206.         }
  7207.         return true;
  7208.     }
  7209. };