<?php
namespace App\Entity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use phpDocumentor\Reflection\Types\Parent_;
/**
* @ORM\Entity(repositoryClass="App\Repository\ActividadVentaRepository")
* @ORM\Table(name="actividad_venta")
* @Gedmo\SoftDeleteable(fieldName="deletedAt", timeAware=false, hardDelete=true)
*/
class ActividadVenta extends \App\Entity\ActividadAbstract
{
/**
* @ORM\Column(type="datetime", nullable=true, name="fecha_venta")
*/
private $fechaVenta;
/**
* @ORM\Column(type="float", nullable=true, precision=2, name="precio_costes_venta")
*/
private $precioCostesVenta;
/**
* @ORM\Column(type="float", nullable=true, name="precio_venta", precision=2)
*/
private $precioVenta;
/**
* @ORM\Column(type="float", nullable=true, name="margen_bruto", precision=2)
*/
private $margenBruto;
/**
* @ORM\Column(type="float", nullable=true, precision=2, name="beneficio_bruto")
*/
private $beneficioBruto;
/**
* @ORM\Column(type="float", nullable=true, precision=2, name="base_imponible")
*/
private $baseImponible;
/**
* @ORM\Column(type="float", nullable=true, precision=2, name="iva")
*/
private $iva;
/**
* @ORM\Column(type="float", nullable=true, precision=2, name="tipo_iva")
*/
private $tipoIva;
/**
* @ORM\OneToOne(targetEntity=\App\Entity\Reloj::class, inversedBy="actividadVenta")
* @ORM\JoinColumn(name="reloj_venta_id", referencedColumnName="id", unique=true)
*/
private $reloj;
/**
* @ORM\ManyToOne(targetEntity=\App\Entity\Canal::class, inversedBy="actividadesVenta")
* @ORM\JoinColumn(name="canal_id", referencedColumnName="id")
*/
private $canal;
public function getPrecioVenta(): ?float
{
return $this->precioVenta;
}
public function setPrecioVenta(?float $precioVenta): static
{
$this->precioVenta = $precioVenta;
return $this;
}
public function getMargenBruto(): ?float
{
return $this->margenBruto;
}
public function setMargenBruto(?float $margenBruto): static
{
$this->margenBruto = $margenBruto;
return $this;
}
public function getCanal(): ?Canal
{
return $this->canal;
}
public function setCanal(?Canal $canal): static
{
$this->canal = $canal;
return $this;
}
public function getReloj(): ?Reloj
{
return $this->reloj;
}
public function setReloj(?Reloj $reloj): static
{
$this->reloj = $reloj;
return $this;
}
public function getFechaVenta(): ?\DateTimeInterface
{
return $this->fechaVenta;
}
public function setFechaVenta(?\DateTimeInterface $fechaVenta): static
{
$this->fechaVenta = $fechaVenta;
return $this;
}
public function getPrecioCostesVenta(): ?float
{
return $this->precioCostesVenta;
}
public function setPrecioCostesVenta(?float $precioCostesVenta): static
{
$this->precioCostesVenta = $precioCostesVenta;
return $this;
}
public function getBeneficioBruto(): ?float
{
return $this->beneficioBruto;
}
public function setBeneficioBruto(?float $beneficioBruto): static
{
$this->beneficioBruto = $beneficioBruto;
return $this;
}
public function getBaseImponible(): ?float
{
return $this->baseImponible;
}
public function setBaseImponible(?float $baseImponible): static
{
$this->baseImponible = $baseImponible;
return $this;
}
public function getIva(): ?float
{
return $this->iva;
}
public function setIva(?float $iva): static
{
$this->iva = $iva;
return $this;
}
public function getTipoIva(): ?float
{
return $this->tipoIva;
}
public function setTipoIva(?float $tipoIva): static
{
$this->tipoIva = $tipoIva;
return $this;
}
}