src/Entity/ActividadVenta.php line 16

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