src/Entity/Ventas.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\VentasRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=VentasRepository::class)
  7.  */
  8. class Ventas
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Mesas::class, inversedBy="ventas")
  18.      * @ORM\JoinColumn(nullable=true)
  19.      */
  20.     private $mesa;
  21.     /**
  22.      * @ORM\Column(type="datetime")
  23.      */
  24.     private $fecha;
  25.     /**
  26.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  27.      */
  28.     private $pagado;
  29.     /**
  30.      * @ORM\Column(type="string", length=50)
  31.      */
  32.     private $pago;
  33.     /**
  34.      * @ORM\Column(type="string", nullable=true)
  35.      */
  36.     private $num_mesa;
  37.     /**
  38.      * @ORM\Column(type="integer", nullable=true)
  39.      */
  40.     private $comesales;
  41.     /**
  42.      * @ORM\Column(type="string", length=255, nullable=true)
  43.      */
  44.     private $ref;
  45.     /**
  46.      * @ORM\Column(type="string", length=255, nullable=true)
  47.      */
  48.     private $num_ticket;
  49.     /**
  50.      * @ORM\Column(type="text", nullable=true)
  51.      */
  52.     private $pedidos_ref;
  53.     /**
  54.      * @ORM\Column(type="string", length=400, nullable=true)
  55.      */
  56.     private $observaciones;
  57.     /**
  58.      * @ORM\Column(type="integer")
  59.      */
  60.     private $iva;
  61.     /**
  62.      * @ORM\Column(type="float")
  63.      */
  64.     private $importe_iva;
  65.     public function getId(): ?int
  66.     {
  67.         return $this->id;
  68.     }
  69.     public function getMesa(): ?mesas
  70.     {
  71.         return $this->mesa;
  72.     }
  73.     public function setMesa(?mesas $mesa): self
  74.     {
  75.         $this->mesa $mesa;
  76.         return $this;
  77.     }
  78.     public function getFecha(): ?\DateTimeInterface
  79.     {
  80.         return $this->fecha;
  81.     }
  82.     public function setFecha(\DateTimeInterface $fecha): self
  83.     {
  84.         $this->fecha $fecha;
  85.         return $this;
  86.     }
  87.     public function getPagado(): ?float
  88.     {
  89.         return $this->pagado;
  90.     }
  91.     public function setPagado(?float $pagado): self
  92.     {
  93.         $this->pagado $pagado;
  94.         return $this;
  95.     }
  96.     public function getPago(): ?string
  97.     {
  98.         return $this->pago;
  99.     }
  100.     public function setPago(string $pago): self
  101.     {
  102.         $this->pago $pago;
  103.         return $this;
  104.     }
  105.     public function getNumMesa(): ?string
  106.     {
  107.         return $this->num_mesa;
  108.     }
  109.     public function setNumMesa(?string $num_mesa): self
  110.     {
  111.         $this->num_mesa $num_mesa;
  112.         return $this;
  113.     }
  114.     public function getComesales(): ?int
  115.     {
  116.         return $this->comesales;
  117.     }
  118.     public function setComesales(?int $comesales): self
  119.     {
  120.         $this->comesales $comesales;
  121.         return $this;
  122.     }
  123.     public function getRef(): ?string
  124.     {
  125.         return $this->ref;
  126.     }
  127.     public function setRef(?string $ref): self
  128.     {
  129.         $this->ref $ref;
  130.         return $this;
  131.     }
  132.     public function getNumTicket(): ?string
  133.     {
  134.         return $this->num_ticket;
  135.     }
  136.     public function setNumTicket(?string $num_ticket): self
  137.     {
  138.         $this->num_ticket $num_ticket;
  139.         return $this;
  140.     }
  141.     
  142.     public function getPedidosRef(): ?string
  143.     {
  144.         return $this->pedidos_ref;
  145.     }
  146.     public function setPedidosRef(?string $pedidos_ref): self
  147.     {
  148.         $this->pedidos_ref $pedidos_ref;
  149.         return $this;
  150.     }
  151.     public function getObservaciones(): ?string
  152.     {
  153.         return $this->observaciones;
  154.     }
  155.     public function setObservaciones(?string $observaciones): self
  156.     {
  157.         $this->observaciones $observaciones;
  158.         return $this;
  159.     }
  160.     public function getIva(): ?int
  161.     {
  162.         return $this->iva;
  163.     }
  164.     public function setIva(int $iva): self
  165.     {
  166.         $this->iva $iva;
  167.         return $this;
  168.     }
  169.     public function getImporteIva(): ?float
  170.     {
  171.         return $this->importe_iva;
  172.     }
  173.     public function setImporteIva(float $importe_iva): self
  174.     {
  175.         $this->importe_iva $importe_iva;
  176.         return $this;
  177.     }
  178.     
  179. }