src/Entity/Comercio/OrdenMenu.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Comercio;
  3. use App\Entity\Catalogos\PorcentajeIva;
  4. use App\Entity\Producto\Menu;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * OrdenMenu
  8.  *
  9.  * @ORM\Table(name="comercio.orden_menu", indexes={@ORM\Index(name="IDX_DF63F18C17F00A22", columns={"id_cuenta"}), @ORM\Index(name="IDX_DF63F18CF6252691", columns={"id_menu"}), @ORM\Index(name="IDX_DF63F18CE7C76E60", columns={"id_porcentaje_iva"})})
  10.  * @ORM\Entity
  11.  */
  12. class OrdenMenu
  13. {
  14.     /**
  15.      * @var int
  16.      *
  17.      * @ORM\Column(name="id", type="integer", nullable=false)
  18.      * @ORM\Id
  19.      * @ORM\GeneratedValue(strategy="SEQUENCE")
  20.      * @ORM\SequenceGenerator(sequenceName="comercio.orden_menu_id_seq", allocationSize=1, initialValue=1)
  21.      */
  22.     private $id;
  23.     /**
  24.      * @var int
  25.      *
  26.      * @ORM\Column(name="cantidad", type="integer", nullable=false)
  27.      */
  28.     private $cantidad;
  29.     /**
  30.      * @var bool
  31.      *
  32.      * @ORM\Column(name="cortesia", type="boolean", nullable=false)
  33.      */
  34.     private $cortesia;
  35.     /**
  36.      * @var bool
  37.      *
  38.      * @ORM\Column(name="modificar_stock", type="boolean", nullable=false)
  39.      */
  40.     private $modificarStock;
  41.     /**
  42.      * @var \DateTime
  43.      *
  44.      * @ORM\Column(name="fecha_hora_pedido", type="datetime", nullable=false)
  45.      */
  46.     private $fechaHoraPedido;
  47.     /**
  48.      * @var \DateTime|null
  49.      *
  50.      * @ORM\Column(name="fecha_hora_entrega", type="datetime", nullable=true)
  51.      */
  52.     private $fechaHoraEntrega;
  53.     /**
  54.      * @var string|null
  55.      *
  56.      * @ORM\Column(name="estado", type="string", length=30, nullable=true, options={"comment"="Solicitado
  57. Confirmado
  58. Entregado
  59. Cancelado"})
  60.      */
  61.     private $estado;
  62.     /**
  63.      * @var int
  64.      *
  65.      * @ORM\Column(name="id_usuario_modificacion", type="integer", nullable=false)
  66.      */
  67.     private $idUsuarioModificacion;
  68.     /**
  69.      * @var \DateTime
  70.      *
  71.      * @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false)
  72.      */
  73.     private $fechaModificacion;
  74.     /**
  75.      * @var string
  76.      *
  77.      * @ORM\Column(name="ip_modificacion", type="string", length=50, nullable=false)
  78.      */
  79.     private $ipModificacion;
  80.     /**
  81.      * @var string|null
  82.      *
  83.      * @ORM\Column(name="observacion_cortesia", type="string", length=100, nullable=true)
  84.      */
  85.     private $observacionCortesia;
  86.     /**
  87.      * @var string|null
  88.      *
  89.      * @ORM\Column(name="precio_unitario_menu", type="decimal", precision=10, scale=2, nullable=true)
  90.      */
  91.     private $precioUnitarioMenu;
  92.     /**
  93.      * @var string|null
  94.      *
  95.      * @ORM\Column(name="precio_costo", type="decimal", precision=10, scale=2, nullable=true)
  96.      */
  97.     private $precioCosto;
  98.     /**
  99.      * @var \Cuenta
  100.      *
  101.      * @ORM\ManyToOne(targetEntity="Cuenta")
  102.      * @ORM\JoinColumns({
  103.      *   @ORM\JoinColumn(name="id_cuenta", referencedColumnName="id")
  104.      * })
  105.      */
  106.     private $idCuenta;
  107.     /**
  108.      * @var \App\Entity\Producto\Menu
  109.      *
  110.      * @ORM\ManyToOne(targetEntity="App\Entity\Producto\Menu")
  111.      * @ORM\JoinColumns({
  112.      *   @ORM\JoinColumn(name="id_menu", referencedColumnName="id")
  113.      * })
  114.      */
  115.     private $idMenu;
  116.     /**
  117.      * @var \App\Entity\Catalogos\PorcentajeIva
  118.      *
  119.      * @ORM\ManyToOne(targetEntity="App\Entity\Catalogos\PorcentajeIva")
  120.      * @ORM\JoinColumns({
  121.      *   @ORM\JoinColumn(name="id_porcentaje_iva", referencedColumnName="id")
  122.      * })
  123.      */
  124.     private $idPorcentajeIva;
  125.     public function getId(): ?int
  126.     {
  127.         return $this->id;
  128.     }
  129.     public function getCantidad(): ?int
  130.     {
  131.         return $this->cantidad;
  132.     }
  133.     public function setCantidad(int $cantidad): self
  134.     {
  135.         $this->cantidad $cantidad;
  136.         return $this;
  137.     }
  138.     public function getCortesia(): ?bool
  139.     {
  140.         return $this->cortesia;
  141.     }
  142.     public function setCortesia(bool $cortesia): self
  143.     {
  144.         $this->cortesia $cortesia;
  145.         return $this;
  146.     }
  147.     public function getModificarStock(): ?bool
  148.     {
  149.         return $this->modificarStock;
  150.     }
  151.     public function setModificarStock(bool $modificarStock): self
  152.     {
  153.         $this->modificarStock $modificarStock;
  154.         return $this;
  155.     }
  156.     public function getFechaHoraPedido(): ?\DateTimeInterface
  157.     {
  158.         return $this->fechaHoraPedido;
  159.     }
  160.     public function getFechaHoraPedidoString(): string
  161.     {
  162.         return $this->fechaHoraPedido?$this->fechaHoraPedido->format('Y-m-d H:i:s'):'';
  163.     }
  164.     public function setFechaHoraPedido(\DateTimeInterface $fechaHoraPedido): self
  165.     {
  166.         $this->fechaHoraPedido $fechaHoraPedido;
  167.         return $this;
  168.     }
  169.     public function getFechaHoraEntrega(): ?\DateTimeInterface
  170.     {
  171.         return $this->fechaHoraEntrega;
  172.     }
  173.     public function getFechaHoraEntregaString(): string
  174.     {
  175.         return $this->fechaHoraEntrega?$this->fechaHoraEntrega->format('Y-m-d H:i:s'):'';
  176.     }
  177.     public function setFechaHoraEntrega(?\DateTimeInterface $fechaHoraEntrega): self
  178.     {
  179.         $this->fechaHoraEntrega $fechaHoraEntrega;
  180.         return $this;
  181.     }
  182.     public function getEstado(): ?string
  183.     {
  184.         return $this->estado;
  185.     }
  186.     public function setEstado(?string $estado): self
  187.     {
  188.         $this->estado $estado;
  189.         return $this;
  190.     }
  191.     public function getIdUsuarioModificacion(): ?int
  192.     {
  193.         return $this->idUsuarioModificacion;
  194.     }
  195.     public function setIdUsuarioModificacion(int $idUsuarioModificacion): self
  196.     {
  197.         $this->idUsuarioModificacion $idUsuarioModificacion;
  198.         return $this;
  199.     }
  200.     public function getFechaModificacion(): ?\DateTimeInterface
  201.     {
  202.         return $this->fechaModificacion;
  203.     }
  204.     public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self
  205.     {
  206.         $this->fechaModificacion $fechaModificacion;
  207.         return $this;
  208.     }
  209.     public function getIpModificacion(): ?string
  210.     {
  211.         return $this->ipModificacion;
  212.     }
  213.     public function setIpModificacion(string $ipModificacion): self
  214.     {
  215.         $this->ipModificacion $ipModificacion;
  216.         return $this;
  217.     }
  218.     public function getObservacionCortesia(): ?string
  219.     {
  220.         return $this->observacionCortesia;
  221.     }
  222.     public function setObservacionCortesia(?string $observacionCortesia): self
  223.     {
  224.         $this->observacionCortesia $observacionCortesia;
  225.         return $this;
  226.     }
  227.     public function getPrecioUnitarioMenu(): ?string
  228.     {
  229.         return $this->precioUnitarioMenu;
  230.     }
  231.     public function setPrecioUnitarioMenu(?string $precioUnitarioMenu): self
  232.     {
  233.         $this->precioUnitarioMenu $precioUnitarioMenu;
  234.         return $this;
  235.     }
  236.     public function getPrecioCosto(): ?string
  237.     {
  238.         return $this->precioCosto;
  239.     }
  240.     public function setPrecioCosto(?string $precioCosto): self
  241.     {
  242.         $this->precioCosto $precioCosto;
  243.         return $this;
  244.     }
  245.     public function getIdCuenta(): ?Cuenta
  246.     {
  247.         return $this->idCuenta;
  248.     }
  249.     public function setIdCuenta(?Cuenta $idCuenta): self
  250.     {
  251.         $this->idCuenta $idCuenta;
  252.         return $this;
  253.     }
  254.     public function getIdMenu(): ?Menu
  255.     {
  256.         return $this->idMenu;
  257.     }
  258.     public function setIdMenu(?Menu $idMenu): self
  259.     {
  260.         $this->idMenu $idMenu;
  261.         return $this;
  262.     }
  263.     public function getIdPorcentajeIva(): ?PorcentajeIva
  264.     {
  265.         return $this->idPorcentajeIva;
  266.     }
  267.     public function setIdPorcentajeIva(?PorcentajeIva $idPorcentajeIva): self
  268.     {
  269.         $this->idPorcentajeIva $idPorcentajeIva;
  270.         return $this;
  271.     }
  272. }