src/Entity/ActividadVenta.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\DBAL\Types\Types;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. use phpDocumentor\Reflection\Types\Parent_;
  7. /**
  8.  * @ORM\Entity(repositoryClass="App\Repository\ActividadVentaRepository")
  9.  * @ORM\Table(name="actividad_venta")
  10.  * @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
  11.  */
  12. class ActividadVenta extends \App\Entity\ActividadAbstract
  13. {
  14.     /**
  15.      * @ORM\Column(type="datetime", nullable=true, name="fecha_venta")
  16.      */
  17.     private $fechaVenta;
  18.     /**
  19.      * @ORM\Column(type="float", nullable=true, precision=2, name="precio_costes_venta")
  20.      */
  21.     private $precioCostesVenta;
  22.     /**
  23.      * @ORM\Column(type="float", nullable=true, name="precio_venta", precision=2)
  24.      */
  25.     private $precioVenta;
  26.     /**
  27.      * @ORM\Column(type="float", nullable=true, name="margen_bruto", precision=2)
  28.      */
  29.     private $margenBruto;
  30.     /**
  31.      * @ORM\Column(type="float", nullable=true, precision=2, name="beneficio_bruto")
  32.      */
  33.     private $beneficioBruto;
  34.     /**
  35.      * @ORM\Column(type="float", nullable=true, precision=2, name="base_imponible")
  36.      */
  37.     private $baseImponible;
  38.     /**
  39.      * @ORM\Column(type="float", nullable=true, precision=2, name="iva")
  40.      */
  41.     private $iva;
  42.     /**
  43.      * @ORM\Column(type="float", nullable=true, precision=2, name="tipo_iva")
  44.      */
  45.     private $tipoIva;
  46.     /**
  47.      * @ORM\OneToOne(targetEntity=\App\Entity\Reloj::class, inversedBy="actividadVenta")
  48.      * @ORM\JoinColumn(name="reloj_venta_id", referencedColumnName="id", unique=true)
  49.      */
  50.     private $reloj;
  51.     /**
  52.      * @ORM\ManyToOne(targetEntity=\App\Entity\Canal::class, inversedBy="actividadesVenta")
  53.      * @ORM\JoinColumn(name="canal_id", referencedColumnName="id")
  54.      */
  55.     private $canal;
  56.     public function getPrecioVenta(): ?float
  57.     {
  58.         return $this->precioVenta;
  59.     }
  60.     public function setPrecioVenta(?float $precioVenta): static
  61.     {
  62.         $this->precioVenta $precioVenta;
  63.         return $this;
  64.     }
  65.     public function getMargenBruto(): ?float
  66.     {
  67.         return $this->margenBruto;
  68.     }
  69.     public function setMargenBruto(?float $margenBruto): static
  70.     {
  71.         $this->margenBruto $margenBruto;
  72.         return $this;
  73.     }
  74.     public function getCanal(): ?Canal
  75.     {
  76.         return $this->canal;
  77.     }
  78.     public function setCanal(?Canal $canal): static
  79.     {
  80.         $this->canal $canal;
  81.         return $this;
  82.     }
  83.     public function getReloj(): ?Reloj
  84.     {
  85.         return $this->reloj;
  86.     }
  87.     public function setReloj(?Reloj $reloj): static
  88.     {
  89.         $this->reloj $reloj;
  90.         return $this;
  91.     }
  92.     public function getFechaVenta(): ?\DateTimeInterface
  93.     {
  94.         return $this->fechaVenta;
  95.     }
  96.     public function setFechaVenta(?\DateTimeInterface $fechaVenta): static
  97.     {
  98.         $this->fechaVenta $fechaVenta;
  99.         return $this;
  100.     }
  101.     public function getPrecioCostesVenta(): ?float
  102.     {
  103.         return $this->precioCostesVenta;
  104.     }
  105.     public function setPrecioCostesVenta(?float $precioCostesVenta): static
  106.     {
  107.         $this->precioCostesVenta $precioCostesVenta;
  108.         return $this;
  109.     }
  110.     public function getBeneficioBruto(): ?float
  111.     {
  112.         return $this->beneficioBruto;
  113.     }
  114.     public function setBeneficioBruto(?float $beneficioBruto): static
  115.     {
  116.         $this->beneficioBruto $beneficioBruto;
  117.         return $this;
  118.     }
  119.     public function getBaseImponible(): ?float
  120.     {
  121.         return $this->baseImponible;
  122.     }
  123.     public function setBaseImponible(?float $baseImponible): static
  124.     {
  125.         $this->baseImponible $baseImponible;
  126.         return $this;
  127.     }
  128.     public function getIva(): ?float
  129.     {
  130.         return $this->iva;
  131.     }
  132.     public function setIva(?float $iva): static
  133.     {
  134.         $this->iva $iva;
  135.         return $this;
  136.     }
  137.     public function getTipoIva(): ?float
  138.     {
  139.         return $this->tipoIva;
  140.     }
  141.     public function setTipoIva(?float $tipoIva): static
  142.     {
  143.         $this->tipoIva $tipoIva;
  144.         return $this;
  145.     }
  146. }