Aplicación para gestionar el WiFi y punto de luz en puertos.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

185 lines
3.5 KiB

<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Facturas
*
* @ORM\Table(name="facturas", indexes={@ORM\Index(name="id_cliente", columns={"id_cliente"})})
* @ORM\Entity
*/
class Facturas
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var \DateTime
*
* @ORM\Column(name="fecha", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
*/
private $fecha;
/**
* @var bool
*
* @ORM\Column(name="estado", type="boolean", nullable=false, options={"comment"="Estado pendiente o pagado."})
*/
private $estado = '0';
/**
* @var string
*
* @ORM\Column(name="numerofactura", type="string", length=10, nullable=false)
*/
private $numerofactura;
/**
* @var string
*
* @ORM\Column(name="filepdf", type="text", length=65535, nullable=false)
*/
private $filepdf;
/**
* @var float
*
* @ORM\Column(name="precio", type="decimal", precision=7, scale=2, nullable=false)
*/
private $precio;
/**
* @var float
*
* @ORM\Column(name="impuestos", type="decimal", precision=7, scale=2, nullable=false, options={"comment"="total de los impuestos en euros"})
*/
private $impuestos;
/**
* @var float
*
* @ORM\Column(name="total", type="decimal", precision=7, scale=2, nullable=false)
*/
private $total;
/**
* @var \Clientes
*
* @ORM\ManyToOne(targetEntity="Clientes")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="id_cliente", referencedColumnName="id")
* })
*/
private $idCliente;
public function getId(): ?int
{
return $this->id;
}
public function getFecha(): ?\DateTimeInterface
{
return $this->fecha;
}
public function setFecha(\DateTimeInterface $fecha): self
{
$this->fecha = $fecha;
return $this;
}
public function getEstado(): ?bool
{
return $this->estado;
}
public function setEstado(bool $estado): self
{
$this->estado = $estado;
return $this;
}
public function getNumerofactura(): ?string
{
return $this->numerofactura;
}
public function setNumerofactura(string $numerofactura): self
{
$this->numerofactura = $numerofactura;
return $this;
}
public function getFilepdf(): ?string
{
return $this->filepdf;
}
public function setFilepdf(string $filepdf): self
{
$this->filepdf = $filepdf;
return $this;
}
public function getPrecio(): ?float
{
return $this->precio;
}
public function setPrecio(float $precio): self
{
$this->precio = $precio;
return $this;
}
public function getImpuestos(): ?float
{
return $this->impuestos;
}
public function setImpuestos(float $impuestos): self
{
$this->impuestos = $impuestos;
return $this;
}
public function getTotal(): ?float
{
return $this->total;
}
public function setTotal(float $total): self
{
$this->total = $total;
return $this;
}
public function getIdCliente(): ?Clientes
{
return $this->idCliente;
}
public function setIdCliente(?Clientes $idCliente): self
{
$this->idCliente = $idCliente;
return $this;
}
}