<?php
namespace App\Entity;
use App\Repository\ClienteRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
use Symfony\Component\HttpFoundation\File\File;
use Vich\UploaderBundle\Mapping\Annotation as Vich;
/**
* @ORM\Entity(repositoryClass=ClienteRepository::class)
* @Vich\Uploadable
*/
class Cliente
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $nombre;
/**
* @ORM\Column(type="string", length=255)
*/
private $razonSocial;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $nombreContacto;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $telefonoContacto;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emailContacto;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emailNotificacion;
/**
* @ORM\Column(type="boolean")
*/
private $activo;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $rut;
/**
* @ORM\OneToMany(targetEntity=Direccion::class, mappedBy="cliente")
*/
private $direccions;
/**
* @ORM\OneToMany(targetEntity=Orden::class, mappedBy="cliente")
*/
private $ordens;
/**
* @ORM\ManyToMany(targetEntity=User::class, mappedBy="clientes")
*/
private $usuarios;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $fechaActualizacion;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $documentoName;
/**
* NOTE: This is not a mapped field of entity metadata, just a simple property.
* @Assert\File(
* maxSize = "200Mi",
* mimeTypes={ "image/*" }
* )
* @Vich\UploadableField(mapping="clientes_logo", fileNameProperty="documentoName")
* @var File
*/
private $documentoFile;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $fechaActualizacionEtiqueta;
/**
* NOTE: This is not a mapped field of entity metadata, just a simple property.
* @Assert\File(
* maxSize = "200Mi",
* mimeTypes={ "image/*" }
* )
* @Vich\UploadableField(mapping="clientes_logo_etiqueta", fileNameProperty="documentoNameEtiqueta")
* @var File
*/
private $documentoFileEtiqueta;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $documentoNameEtiqueta;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emailNotificacion2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emailNotificacion3;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $telefonoContactoAnexo;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emailNotificacion4;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emailNotificacion5;
/**
* @ORM\OneToMany(targetEntity=DocumentoCliente::class, mappedBy="cliente")
*/
private $documentoClientes;
/**
* @ORM\OneToMany(targetEntity=DocumentoTributario::class, mappedBy="cliente")
*/
private $documentoTributarios;
/**
* @ORM\ManyToOne(targetEntity=Holding::class, inversedBy="clientes")
*/
private $holding;
/**
* @ORM\Column(type="smallint", nullable=true)
*/
private $idContratoPaqueteria;
/**
* @ORM\Column(type="smallint", nullable=true)
*/
private $idContratoLogisticaInversa;
/**
* @ORM\Column(type="smallint", nullable=true)
*/
private $idContratoProductoControlado;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emailNotificacionTemperatura1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emailNotificacionTemperatura2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emailNotificacionTemperatura3;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emailNotificacionTemperatura4;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emailNotificacionTemperatura5;
/**
* @ORM\ManyToMany(targetEntity=Vehiculo::class, mappedBy="clientes")
*/
private $vehiculos;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $ocultarDocumentoTributario;
/**
* @ORM\ManyToOne(targetEntity=BodegaSectorCliente::class)
*/
private $sector;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $puedeAgregarOrdenes;
/**
* @ORM\OneToMany(targetEntity=Caja::class, mappedBy="cliente")
*/
private $cajas;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $enviarNotificacionDiaria;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $emailNotificacionDiaria;
/**
* @ORM\ManyToMany(targetEntity=Box::class, mappedBy="clientes")
*/
private $boxes;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $consolidadoNotificacionDiaria;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $enviarNotificacionEnRuta;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $emailNotificacionEnRuta;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $enviarNotificacionEntregado;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $emailNotificacionEntregado;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $incluirPdfEnOrden;
/**
* @ORM\OneToMany(targetEntity=ProformaMandante::class, mappedBy="cliente")
*/
private $proformaMandantes;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $informaCedible;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $mostrarMatrizTransito;
/**
* @ORM\ManyToOne(targetEntity=Direccion::class)
*/
private $direccionOrigen;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $integracionTeva;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $integracionLoginsa;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $codigoMandante;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $otifOrdenIngresada;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $integracionLoginsaMultiple;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $integracionDhl;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $enviarNotificacionInformeMensual;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $emailNotificacionInformeMensual;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $integracionCaribean;
/**
* @ORM\ManyToOne(targetEntity=Supermandante::class, inversedBy="clientes")
*/
private $supermandante;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $tieneDelivery;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $integracionClinicalMarket;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $tienePrealerta;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tipoPrealerta1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tipoPrealerta2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tipoPrealerta3;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tipoPrealerta4;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tipoPrealerta5;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $integracionKn;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $grifolsDedicado;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $retiroProductosCirugia = false;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $integracionSiemens;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $bloquearMatrizTransito;
/**
* @ORM\ManyToOne(targetEntity=User::class)
*/
private $usuarioSolicitudRetiro;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $noIncluirEnComercial;
public function isRetiroProductosCirugia(): ?bool
{
return $this->retiroProductosCirugia;
}
public function setRetiroProductosCirugia(?bool $retiroProductosCirugia): self
{
$this->retiroProductosCirugia = $retiroProductosCirugia;
return $this;
}
public function isTienePrealerta(): ?bool
{
return $this->tienePrealerta;
}
public function setTienePrealerta(?bool $tienePrealerta): self
{
$this->tienePrealerta = $tienePrealerta;
return $this;
}
public function getTipoPrealerta1(): ?string { return $this->tipoPrealerta1; }
public function setTipoPrealerta1(?string $tipoPrealerta1): self { $this->tipoPrealerta1 = $tipoPrealerta1; return $this; }
public function getTipoPrealerta2(): ?string { return $this->tipoPrealerta2; }
public function setTipoPrealerta2(?string $tipoPrealerta2): self { $this->tipoPrealerta2 = $tipoPrealerta2; return $this; }
public function getTipoPrealerta3(): ?string { return $this->tipoPrealerta3; }
public function setTipoPrealerta3(?string $tipoPrealerta3): self { $this->tipoPrealerta3 = $tipoPrealerta3; return $this; }
public function getTipoPrealerta4(): ?string { return $this->tipoPrealerta4; }
public function setTipoPrealerta4(?string $tipoPrealerta4): self { $this->tipoPrealerta4 = $tipoPrealerta4; return $this; }
public function getTipoPrealerta5(): ?string { return $this->tipoPrealerta5; }
public function setTipoPrealerta5(?string $tipoPrealerta5): self { $this->tipoPrealerta5 = $tipoPrealerta5; return $this; }
public function getDocumentoNameOriginal()
{
$docName = $this->getDocumentoName();
if($docName)
{
$posName = strrpos($docName, '-');
$posExt = strrpos($docName, '.');
if($posName && $posExt)
{
$name = substr($docName, 0, $posName);
$ext = substr($docName, $posExt);
return $name.$ext;
}
}
return $docName;
}
public function getDocumentoNameEtiquetaOriginal()
{
$docName = $this->getDocumentoNameEtiqueta();
if($docName)
{
$posName = strrpos($docName, '-');
$posExt = strrpos($docName, '.');
if($posName && $posExt)
{
$name = substr($docName, 0, $posName);
$ext = substr($docName, $posExt);
return $name.$ext;
}
}
return $docName;
}
/**
* If manually uploading a file (i.e. not using Symfony Form) ensure an instance
* of 'UploadedFile' is injected into this setter to trigger the update. If this
* bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
* must be able to accept an instance of 'File' as the bundle will inject one here
* during Doctrine hydration.
*
* @param File|\Symfony\Component\HttpFoundation\File\UploadedFile $documento
*
* @return Product
*/
public function setDocumentoFile(?File $documento = null): void
{
$this->documentoFile = $documento;
if ($documento) {
// It is required that at least one field changes if you are using doctrine
// otherwise the event listeners won't be called and the file is lost
$this->fechaActualizacion = new \DateTimeImmutable(null);
}
}
/**
* @return File|null
*/
public function getDocumentoFile(): ?File
{
return $this->documentoFile;
}
public function getDocumentoName(): ?string
{
return $this->documentoName;
}
public function setDocumentoName(?string $documentoName = ""): self
{
$this->documentoName = $documentoName;
return $this;
}
/**
* If manually uploading a file (i.e. not using Symfony Form) ensure an instance
* of 'UploadedFile' is injected into this setter to trigger the update. If this
* bundle's configuration parameter 'inject_on_load' is set to 'true' this setter
* must be able to accept an instance of 'File' as the bundle will inject one here
* during Doctrine hydration.
*
* @param File|\Symfony\Component\HttpFoundation\File\UploadedFile $documento
*
* @return Product
*/
public function setDocumentoFileEtiqueta(?File $documento = null): void
{
$this->documentoFileEtiqueta = $documento;
if ($documento) {
// It is required that at least one field changes if you are using doctrine
// otherwise the event listeners won't be called and the file is lost
$this->fechaActualizacionEtiqueta = new \DateTimeImmutable(null);
}
}
/**
* @return File|null
*/
public function getDocumentoFileEtiqueta(): ?File
{
return $this->documentoFileEtiqueta;
}
public function getDocumentoNameEtiqueta(): ?string
{
return $this->documentoNameEtiqueta;
}
public function setDocumentoNameEtiqueta(?string $documentoNameEtiqueta = ""): self
{
$this->documentoNameEtiqueta = $documentoNameEtiqueta;
return $this;
}
public function __toString()
{
return $this->nombre;
}
public function __construct()
{
$this->direccions = new ArrayCollection();
$this->ordens = new ArrayCollection();
$this->usuarios = new ArrayCollection();
$this->documentoClientes = new ArrayCollection();
$this->documentoTributarios = new ArrayCollection();
$this->vehiculos = new ArrayCollection();
$this->cajas = new ArrayCollection();
$this->boxes = new ArrayCollection();
$this->proformaMandantes = new ArrayCollection();
}
/**
* @return Collection|User[]
*/
public function getUsuarios(): Collection
{
return $this->usuarios;
}
public function addUsuario(User $usuario): self
{
if (!$this->usuarios->contains($usuario)) {
$this->usuarios[] = $usuario;
$usuario->addCliente($this); // Mantener sincronizada la relaciè´¸n inversa
}
return $this;
}
public function removeUsuario(User $usuario): self
{
if ($this->usuarios->removeElement($usuario)) {
$usuario->removeCliente($this); // Mantener sincronizada la relaciè´¸n inversa
}
return $this;
}
public function getId(): ?int
{
return $this->id;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(string $nombre): self
{
$this->nombre = $nombre;
return $this;
}
public function getRazonSocial(): ?string
{
return $this->razonSocial;
}
public function setRazonSocial(string $razonSocial): self
{
$this->razonSocial = $razonSocial;
return $this;
}
public function getNombreContacto(): ?string
{
return $this->nombreContacto;
}
public function setNombreContacto(?string $nombreContacto): self
{
$this->nombreContacto = $nombreContacto;
return $this;
}
public function getTelefonoContacto(): ?string
{
return $this->telefonoContacto;
}
public function setTelefonoContacto(?string $telefonoContacto): self
{
$this->telefonoContacto = $telefonoContacto;
return $this;
}
public function getEmailContacto(): ?string
{
return $this->emailContacto;
}
public function setEmailContacto(?string $emailContacto): self
{
$this->emailContacto = $emailContacto;
return $this;
}
public function getEmailNotificacion(): ?string
{
return $this->emailNotificacion;
}
public function setEmailNotificacion(?string $emailNotificacion): self
{
$this->emailNotificacion = $emailNotificacion;
return $this;
}
public function getActivo(): ?bool
{
return $this->activo;
}
public function setActivo(bool $activo): self
{
$this->activo = $activo;
return $this;
}
public function getRut(): ?string
{
return $this->rut;
}
public function setRut(?string $rut): self
{
$this->rut = $rut;
return $this;
}
/**
* @return Collection|Direccion[]
*/
public function getDireccions(): Collection
{
return $this->direccions;
}
public function addDireccion(Direccion $direccion): self
{
if (!$this->direccions->contains($direccion)) {
$this->direccions[] = $direccion;
$direccion->setCliente($this);
}
return $this;
}
public function removeDireccion(Direccion $direccion): self
{
if ($this->direccions->contains($direccion)) {
$this->direccions->removeElement($direccion);
// set the owning side to null (unless already changed)
if ($direccion->getCliente() === $this) {
$direccion->setCliente(null);
}
}
return $this;
}
/**
* @return Collection|Orden[]
*/
public function getOrdens(): Collection
{
return $this->ordens;
}
public function addOrden(Orden $orden): self
{
if (!$this->ordens->contains($orden)) {
$this->ordens[] = $orden;
$orden->setCliente($this);
}
return $this;
}
public function removeOrden(Orden $orden): self
{
if ($this->ordens->contains($orden)) {
$this->ordens->removeElement($orden);
// set the owning side to null (unless already changed)
if ($orden->getCliente() === $this) {
$orden->setCliente(null);
}
}
return $this;
}
public function getEmailNotificacion2(): ?string
{
return $this->emailNotificacion2;
}
public function setEmailNotificacion2(?string $emailNotificacion2): self
{
$this->emailNotificacion2 = $emailNotificacion2;
return $this;
}
public function getEmailNotificacion3(): ?string
{
return $this->emailNotificacion3;
}
public function setEmailNotificacion3(?string $emailNotificacion3): self
{
$this->emailNotificacion3 = $emailNotificacion3;
return $this;
}
public function getTelefonoContactoAnexo(): ?int
{
return $this->telefonoContactoAnexo;
}
public function setTelefonoContactoAnexo(?int $telefonoContactoAnexo): self
{
$this->telefonoContactoAnexo = $telefonoContactoAnexo;
return $this;
}
public function getEmailNotificacion4(): ?string
{
return $this->emailNotificacion4;
}
public function setEmailNotificacion4(?string $emailNotificacion4): self
{
$this->emailNotificacion4 = $emailNotificacion4;
return $this;
}
public function getEmailNotificacion5(): ?string
{
return $this->emailNotificacion5;
}
public function setEmailNotificacion5(?string $emailNotificacion5): self
{
$this->emailNotificacion5 = $emailNotificacion5;
return $this;
}
/**
* @return Collection|DocumentoCliente[]
*/
public function getDocumentoClientes(): Collection
{
return $this->documentoClientes;
}
public function addDocumentoCliente(DocumentoCliente $documentoCliente): self
{
if (!$this->documentoClientes->contains($documentoCliente)) {
$this->documentoClientes[] = $documentoCliente;
$documentoCliente->setCliente($this);
}
return $this;
}
public function removeDocumentoCliente(DocumentoCliente $documentoCliente): self
{
if ($this->documentoClientes->contains($documentoCliente)) {
$this->documentoClientes->removeElement($documentoCliente);
// set the owning side to null (unless already changed)
if ($documentoCliente->getCliente() === $this) {
$documentoCliente->setCliente(null);
}
}
return $this;
}
/**
* @return Collection|DocumentoTributario[]
*/
public function getDocumentoTributarios(): Collection
{
return $this->documentoTributarios;
}
public function addDocumentoTributario(DocumentoTributario $documentoTributario): self
{
if (!$this->documentoTributarios->contains($documentoTributario)) {
$this->documentoTributarios[] = $documentoTributario;
$documentoTributario->setCliente($this);
}
return $this;
}
public function removeDocumentoTributario(DocumentoTributario $documentoTributario): self
{
if ($this->documentoTributarios->removeElement($documentoTributario)) {
// set the owning side to null (unless already changed)
if ($documentoTributario->getCliente() === $this) {
$documentoTributario->setCliente(null);
}
}
return $this;
}
public function getHolding(): ?Holding
{
return $this->holding;
}
public function setHolding(?Holding $holding): self
{
$this->holding = $holding;
return $this;
}
public function getIdContratoPaqueteria(): ?int
{
return $this->idContratoPaqueteria;
}
public function setIdContratoPaqueteria(?int $idContratoPaqueteria): self
{
$this->idContratoPaqueteria = $idContratoPaqueteria;
return $this;
}
public function getIdContratoLogisticaInversa(): ?int
{
return $this->idContratoLogisticaInversa;
}
public function setIdContratoLogisticaInversa(?int $idContratoLogisticaInversa): self
{
$this->idContratoLogisticaInversa = $idContratoLogisticaInversa;
return $this;
}
public function getIdContratoProductoControlado(): ?int
{
return $this->idContratoProductoControlado;
}
public function setIdContratoProductoControlado(?int $idContratoProductoControlado): self
{
$this->idContratoProductoControlado = $idContratoProductoControlado;
return $this;
}
public function getEmailNotificacionTemperatura1(): ?string
{
return $this->emailNotificacionTemperatura1;
}
public function setEmailNotificacionTemperatura1(string $emailNotificacionTemperatura1): self
{
$this->emailNotificacionTemperatura1 = $emailNotificacionTemperatura1;
return $this;
}
public function getEmailNotificacionTemperatura2(): ?string
{
return $this->emailNotificacionTemperatura2;
}
public function setEmailNotificacionTemperatura2(string $emailNotificacionTemperatura2): self
{
$this->emailNotificacionTemperatura2 = $emailNotificacionTemperatura2;
return $this;
}
public function getEmailNotificacionTemperatura3(): ?string
{
return $this->emailNotificacionTemperatura3;
}
public function setEmailNotificacionTemperatura3(string $emailNotificacionTemperatura3): self
{
$this->emailNotificacionTemperatura3 = $emailNotificacionTemperatura3;
return $this;
}
public function getEmailNotificacionTemperatura4(): ?string
{
return $this->emailNotificacionTemperatura4;
}
public function setEmailNotificacionTemperatura4(string $emailNotificacionTemperatura4): self
{
$this->emailNotificacionTemperatura4 = $emailNotificacionTemperatura4;
return $this;
}
public function getEmailNotificacionTemperatura5(): ?string
{
return $this->emailNotificacionTemperatura5;
}
public function setEmailNotificacionTemperatura5(string $emailNotificacionTemperatura5): self
{
$this->emailNotificacionTemperatura5 = $emailNotificacionTemperatura5;
return $this;
}
/**
* @return Collection|Vehiculo[]
*/
public function getVehiculos(): Collection
{
return $this->vehiculos;
}
public function addVehiculo(Vehiculo $vehiculo): self
{
if (!$this->vehiculos->contains($vehiculo)) {
$this->vehiculos[] = $vehiculo;
$vehiculo->addCliente($this);
}
return $this;
}
public function removeVehiculo(Vehiculo $vehiculo): self
{
if ($this->vehiculos->removeElement($vehiculo)) {
$vehiculo->removeCliente($this);
}
return $this;
}
public function getOcultarDocumentoTributario(): ?bool
{
return $this->ocultarDocumentoTributario;
}
public function setOcultarDocumentoTributario(?bool $ocultarDocumentoTributario): self
{
$this->ocultarDocumentoTributario = $ocultarDocumentoTributario;
return $this;
}
public function getSector(): ?BodegaSectorCliente
{
return $this->sector;
}
public function setSector(?BodegaSectorCliente $sector): self
{
$this->sector = $sector;
return $this;
}
public function getPuedeAgregarOrdenes(): ?bool
{
return $this->puedeAgregarOrdenes;
}
public function setPuedeAgregarOrdenes(?bool $puedeAgregarOrdenes): self
{
$this->puedeAgregarOrdenes = $puedeAgregarOrdenes;
return $this;
}
/**
* @return Collection<int, Caja>
*/
public function getCajas(): Collection
{
return $this->cajas;
}
public function addCaja(Caja $caja): self
{
if (!$this->cajas->contains($caja)) {
$this->cajas[] = $caja;
$caja->setCliente($this);
}
return $this;
}
public function removeCaja(Caja $caja): self
{
if ($this->cajas->removeElement($caja)) {
// set the owning side to null (unless already changed)
if ($caja->getCliente() === $this) {
$caja->setCliente(null);
}
}
return $this;
}
public function getEnviarNotificacionDiaria(): ?bool
{
return $this->enviarNotificacionDiaria;
}
public function setEnviarNotificacionDiaria(?bool $enviarNotificacionDiaria): self
{
$this->enviarNotificacionDiaria = $enviarNotificacionDiaria;
return $this;
}
public function getEmailNotificacionDiaria(): ?string
{
return $this->emailNotificacionDiaria;
}
public function setEmailNotificacionDiaria(?string $emailNotificacionDiaria): self
{
$this->emailNotificacionDiaria = $emailNotificacionDiaria;
return $this;
}
/**
* @return Collection<int, Box>
*/
public function getBoxes(): Collection
{
return $this->boxes;
}
public function addBox(Box $box): self
{
if (!$this->boxes->contains($box)) {
$this->boxes[] = $box;
$box->addCliente($this);
}
return $this;
}
public function removeBox(Box $box): self
{
if ($this->boxes->removeElement($box)) {
$box->removeCliente($this);
}
return $this;
}
public function getConsolidadoNotificacionDiaria(): ?bool
{
return $this->consolidadoNotificacionDiaria;
}
public function setConsolidadoNotificacionDiaria(?bool $consolidadoNotificacionDiaria): self
{
$this->consolidadoNotificacionDiaria = $consolidadoNotificacionDiaria;
return $this;
}
public function getEnviarNotificacionEnRuta(): ?bool
{
return $this->enviarNotificacionEnRuta;
}
public function setEnviarNotificacionEnRuta(?bool $enviarNotificacionEnRuta): self
{
$this->enviarNotificacionEnRuta = $enviarNotificacionEnRuta;
return $this;
}
public function getEmailNotificacionEnRuta(): ?string
{
return $this->emailNotificacionEnRuta;
}
public function setEmailNotificacionEnRuta(?string $emailNotificacionEnRuta): self
{
$this->emailNotificacionEnRuta = $emailNotificacionEnRuta;
return $this;
}
public function getEnviarNotificacionEntregado(): ?bool
{
return $this->enviarNotificacionEntregado;
}
public function setEnviarNotificacionEntregado(?bool $enviarNotificacionEntregado): self
{
$this->enviarNotificacionEntregado = $enviarNotificacionEntregado;
return $this;
}
public function getEmailNotificacionEntregado(): ?string
{
return $this->emailNotificacionEntregado;
}
public function setEmailNotificacionEntregado(?string $emailNotificacionEntregado): self
{
$this->emailNotificacionEntregado = $emailNotificacionEntregado;
return $this;
}
public function getIncluirPdfEnOrden(): ?bool
{
return $this->incluirPdfEnOrden;
}
public function setIncluirPdfEnOrden(?bool $incluirPdfEnOrden): self
{
$this->incluirPdfEnOrden = $incluirPdfEnOrden;
return $this;
}
/**
* @return Collection<int, ProformaMandante>
*/
public function getProformaMandantes(): Collection
{
return $this->proformaMandantes;
}
public function addProformaMandante(ProformaMandante $proformaMandante): self
{
if (!$this->proformaMandantes->contains($proformaMandante)) {
$this->proformaMandantes[] = $proformaMandante;
$proformaMandante->setCliente($this);
}
return $this;
}
public function removeProformaMandante(ProformaMandante $proformaMandante): self
{
if ($this->proformaMandantes->removeElement($proformaMandante)) {
// set the owning side to null (unless already changed)
if ($proformaMandante->getCliente() === $this) {
$proformaMandante->setCliente(null);
}
}
return $this;
}
public function getInformaCedible(): ?bool
{
return $this->informaCedible;
}
public function setInformaCedible(?bool $informaCedible): self
{
$this->informaCedible = $informaCedible;
return $this;
}
public function getMostrarMatrizTransito(): ?bool
{
return $this->mostrarMatrizTransito;
}
public function setMostrarMatrizTransito(?bool $mostrarMatrizTransito): self
{
$this->mostrarMatrizTransito = $mostrarMatrizTransito;
return $this;
}
public function getDireccionOrigen(): ?Direccion
{
return $this->direccionOrigen;
}
public function setDireccionOrigen(?Direccion $direccionOrigen): self
{
$this->direccionOrigen = $direccionOrigen;
return $this;
}
public function isIntegracionTeva(): ?bool
{
return $this->integracionTeva;
}
public function setIntegracionTeva(?bool $integracionTeva): self
{
$this->integracionTeva = $integracionTeva;
return $this;
}
public function isIntegracionLoginsa(): ?bool
{
return $this->integracionLoginsa;
}
public function setIntegracionLoginsa(?bool $integracionLoginsa): self
{
$this->integracionLoginsa = $integracionLoginsa;
return $this;
}
public function getCodigoMandante(): ?string
{
return $this->codigoMandante;
}
public function setCodigoMandante(?string $codigoMandante): self
{
$this->codigoMandante = $codigoMandante;
return $this;
}
public function isOtifOrdenIngresada(): ?bool
{
return $this->otifOrdenIngresada;
}
public function setOtifOrdenIngresada(?bool $otifOrdenIngresada): self
{
$this->otifOrdenIngresada = $otifOrdenIngresada;
return $this;
}
public function isIntegracionLoginsaMultiple(): ?bool
{
return $this->integracionLoginsaMultiple;
}
public function setIntegracionLoginsaMultiple(?bool $integracionLoginsaMultiple): self
{
$this->integracionLoginsaMultiple = $integracionLoginsaMultiple;
return $this;
}
public function isIntegracionDhl(): ?bool
{
return $this->integracionDhl;
}
public function setIntegracionDhl(?bool $integracionDhl): self
{
$this->integracionDhl = $integracionDhl;
return $this;
}
public function isEnviarNotificacionInformeMensual(): ?bool
{
return $this->enviarNotificacionInformeMensual;
}
public function setEnviarNotificacionInformeMensual(?bool $enviarNotificacionInformeMensual): self
{
$this->enviarNotificacionInformeMensual = $enviarNotificacionInformeMensual;
return $this;
}
public function getEmailNotificacionInformeMensual(): ?string
{
return $this->emailNotificacionInformeMensual;
}
public function setEmailNotificacionInformeMensual(?string $emailNotificacionInformeMensual): self
{
$this->emailNotificacionInformeMensual = $emailNotificacionInformeMensual;
return $this;
}
public function isIntegracionCaribean(): ?bool
{
return $this->integracionCaribean;
}
public function setIntegracionCaribean(?bool $integracionCaribean): self
{
$this->integracionCaribean = $integracionCaribean;
return $this;
}
public function getSupermandante(): ?Supermandante
{
return $this->supermandante;
}
public function setSupermandante(?Supermandante $supermandante): self
{
$this->supermandante = $supermandante;
return $this;
}
public function isTieneDelivery(): ?bool
{
return $this->tieneDelivery;
}
public function setTieneDelivery(?bool $tieneDelivery): self
{
$this->tieneDelivery = $tieneDelivery;
return $this;
}
public function isIntegracionClinicalMarket(): ?bool
{
return $this->integracionClinicalMarket;
}
public function setIntegracionClinicalMarket(?bool $integracionClinicalMarket): self
{
$this->integracionClinicalMarket = $integracionClinicalMarket;
return $this;
}
public function isIntegracionKn(): ?bool
{
return $this->integracionKn;
}
public function setIntegracionKn(?bool $integracionKn): self
{
$this->integracionKn = $integracionKn;
return $this;
}
public function isGrifolsDedicado(): ?bool
{
return $this->grifolsDedicado;
}
public function setGrifolsDedicado(?bool $grifolsDedicado): self
{
$this->grifolsDedicado = $grifolsDedicado;
return $this;
}
public function isIntegracionSiemens(): ?bool
{
return $this->integracionSiemens;
}
public function setIntegracionSiemens(?bool $integracionSiemens): self
{
$this->integracionSiemens = $integracionSiemens;
return $this;
}
public function isBloquearMatrizTransito(): ?bool
{
return $this->bloquearMatrizTransito;
}
public function setBloquearMatrizTransito(?bool $bloquearMatrizTransito): self
{
$this->bloquearMatrizTransito = $bloquearMatrizTransito;
return $this;
}
public function getUsuarioSolicitudRetiro(): ?User
{
return $this->usuarioSolicitudRetiro;
}
public function setUsuarioSolicitudRetiro(?User $usuarioSolicitudRetiro): self
{
$this->usuarioSolicitudRetiro = $usuarioSolicitudRetiro;
return $this;
}
public function isNoIncluirEnComercial(): ?bool
{
return $this->noIncluirEnComercial;
}
public function setNoIncluirEnComercial(?bool $noIncluirEnComercial): self
{
$this->noIncluirEnComercial = $noIncluirEnComercial;
return $this;
}
}