src/Entity/RFOrdenCompra.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RFOrdenCompraRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Table(name'rf_orden_compra')]
  9. #[ORM\Entity(repositoryClassRFOrdenCompraRepository::class)]
  10. class RFOrdenCompra
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\GeneratedValue]
  14.     #[ORM\Column]
  15.     private ?int $id null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $codigo null;
  18.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  19.     private ?\DateTimeInterface $fecha null;
  20.     #[ORM\Column(nullabletrue)]
  21.     private ?bool $solicitudCompra null;
  22.     #[ORM\ManyToOne(inversedBy'ordenCompra')]
  23.     private ?RFSolicitudCompra $solicitudCompraE null;
  24.     #[ORM\ManyToOne(inversedBy'ordenCompra')]
  25.     private ?ParProceso $proceso null;
  26.     #[ORM\ManyToOne(inversedBy'ordenCompra')]
  27.     private ?TerProveedor $proveedor null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $cotizacion null;
  30.     #[ORM\ManyToOne(inversedBy'ordenCompra')]
  31.     private ?ParFormaPago $formaPago null;
  32.     #[ORM\ManyToOne(inversedBy'ordenCompra')]
  33.     private ?TerSedeEmpresa $sede null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $direccionEntrega null;
  36.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  37.     private ?string $otrasCondiciones null;
  38.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  39.     private ?string $elaboradoPor null;
  40.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  41.     private ?string $observacionAdicional null;
  42.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  43.     private ?\DateTimeInterface $createAt null;
  44.     #[ORM\Column(length50)]
  45.     private ?string $createUser null;
  46.     #[ORM\Column(typeTypes::DATETIME_MUTABLE)]
  47.     private ?\DateTimeInterface $updateAt null;
  48.     #[ORM\Column(length50)]
  49.     private ?string $updateUser null;
  50.     #[ORM\ManyToOne(inversedBy'ordenCompra')]
  51.     private ?ParEstado $estado null;
  52.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  53.     private ?\DateTimeInterface $fechaRecepcion null;
  54.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  55.     private ?string $observacionRecepcion null;
  56.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  57.     private ?\DateTimeInterface $fechaEntrega null;
  58.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  59.     private ?string $observacionEntrega null;
  60.     #[ORM\Column(length255nullabletrue)]
  61.     private ?string $numeroFactura null;
  62.     #[ORM\Column(length255nullabletrue)]
  63.     private ?string $factura null;
  64.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  65.     private ?\DateTimeInterface $fechaFacturaElectronica null;
  66.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  67.     private ?string $observacionesFactura null;
  68.     #[ORM\OneToMany(mappedBy'ordenCompra'targetEntityRFOrdenCompraItem::class)]
  69.     private Collection $ordenCompraItems;
  70.     #[ORM\Column(nullabletrue)]
  71.     private ?float $total null;
  72.     #[ORM\Column(nullabletrue)]
  73.     private ?float $totalImpuestos null;
  74.     #[ORM\Column(nullabletrue)]
  75.     private ?float $subTotal null;
  76.     #[ORM\ManyToOne(inversedBy'ordenesCompra')]
  77.     private ?TerEmpresa $empresaFilial null;
  78.     #[ORM\Column(length255)]
  79.     private ?string $correoFacturacion null;
  80.     #[ORM\ManyToOne(inversedBy'solicitanteOrdenCompra')]
  81.     private ?TerPersona $solicitante null;
  82.     #[ORM\ManyToOne(inversedBy'ordenCompra')]
  83.     private ?ParResultadoEntrega $resultadoEntrega null;
  84.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  85.     private ?\DateTimeInterface $fechaEntregaReal null;
  86.     #[ORM\ManyToOne(inversedBy'ordenCompra')]
  87.     private ?ParAccionNovedad $accionNovedad null;
  88.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  89.     private ?string $comentarios null;
  90.     public function __construct()
  91.     {
  92.         $this->ordenCompraItems = new ArrayCollection();
  93.     }
  94.     public function getId(): ?int
  95.     {
  96.         return $this->id;
  97.     }
  98.     public function getCodigo(): ?string
  99.     {
  100.         return $this->codigo;
  101.     }
  102.     public function setCodigo(string $codigo): static
  103.     {
  104.         $this->codigo $codigo;
  105.         return $this;
  106.     }
  107.     public function getFecha(): ?\DateTimeInterface
  108.     {
  109.         return $this->fecha;
  110.     }
  111.     public function setFecha(\DateTimeInterface $fecha): static
  112.     {
  113.         $this->fecha $fecha;
  114.         return $this;
  115.     }
  116.     public function isSolicitudCompra(): ?bool
  117.     {
  118.         return $this->solicitudCompra;
  119.     }
  120.     public function setSolicitudCompra(?bool $solicitudCompra): static
  121.     {
  122.         $this->solicitudCompra $solicitudCompra;
  123.         return $this;
  124.     }
  125.     public function getSolicitudCompraE(): ?RFSolicitudCompra
  126.     {
  127.         return $this->solicitudCompraE;
  128.     }
  129.     public function setSolicitudCompraE(?RFSolicitudCompra $solicitudCompraE): static
  130.     {
  131.         $this->solicitudCompraE $solicitudCompraE;
  132.         return $this;
  133.     }
  134.     public function getProceso(): ?ParProceso
  135.     {
  136.         return $this->proceso;
  137.     }
  138.     public function setProceso(?ParProceso $proceso): static
  139.     {
  140.         $this->proceso $proceso;
  141.         return $this;
  142.     }
  143.     public function getProveedor(): ?TerProveedor
  144.     {
  145.         return $this->proveedor;
  146.     }
  147.     public function setProveedor(?TerProveedor $proveedor): static
  148.     {
  149.         $this->proveedor $proveedor;
  150.         return $this;
  151.     }
  152.     public function getCotizacion(): ?string
  153.     {
  154.         return $this->cotizacion;
  155.     }
  156.     public function setCotizacion(?string $cotizacion): static
  157.     {
  158.         $this->cotizacion $cotizacion;
  159.         return $this;
  160.     }
  161.     public function getFormaPago(): ?ParFormaPago
  162.     {
  163.         return $this->formaPago;
  164.     }
  165.     public function setFormaPago(?ParFormaPago $formaPago): static
  166.     {
  167.         $this->formaPago $formaPago;
  168.         return $this;
  169.     }
  170.     public function getSede(): ?TerSedeEmpresa
  171.     {
  172.         return $this->sede;
  173.     }
  174.     public function setSede(?TerSedeEmpresa $sede): static
  175.     {
  176.         $this->sede $sede;
  177.         return $this;
  178.     }
  179.     public function getDireccionEntrega(): ?string
  180.     {
  181.         return $this->direccionEntrega;
  182.     }
  183.     public function setDireccionEntrega(?string $direccionEntrega): static
  184.     {
  185.         $this->direccionEntrega $direccionEntrega;
  186.         return $this;
  187.     }
  188.     public function getOtrasCondiciones(): ?string
  189.     {
  190.         return $this->otrasCondiciones;
  191.     }
  192.     public function setOtrasCondiciones(?string $otrasCondiciones): static
  193.     {
  194.         $this->otrasCondiciones $otrasCondiciones;
  195.         return $this;
  196.     }
  197.     public function getElaboradoPor(): ?string
  198.     {
  199.         return $this->elaboradoPor;
  200.     }
  201.     public function setElaboradoPor(?string $elaboradoPor): static
  202.     {
  203.         $this->elaboradoPor $elaboradoPor;
  204.         return $this;
  205.     }
  206.     public function getObservacionAdicional(): ?string
  207.     {
  208.         return $this->observacionAdicional;
  209.     }
  210.     public function setObservacionAdicional(?string $observacionAdicional): static
  211.     {
  212.         $this->observacionAdicional $observacionAdicional;
  213.         return $this;
  214.     }
  215.     public function getCreateAt(): ?\DateTimeInterface
  216.     {
  217.         return $this->createAt;
  218.     }
  219.     public function setCreateAt(\DateTimeInterface $createAt): static
  220.     {
  221.         $this->createAt $createAt;
  222.         return $this;
  223.     }
  224.     public function getCreateUser(): ?string
  225.     {
  226.         return $this->createUser;
  227.     }
  228.     public function setCreateUser(string $createUser): static
  229.     {
  230.         $this->createUser $createUser;
  231.         return $this;
  232.     }
  233.     public function getUpdateAt(): ?\DateTimeInterface
  234.     {
  235.         return $this->updateAt;
  236.     }
  237.     public function setUpdateAt(\DateTimeInterface $updateAt): static
  238.     {
  239.         $this->updateAt $updateAt;
  240.         return $this;
  241.     }
  242.     public function getUpdateUser(): ?string
  243.     {
  244.         return $this->updateUser;
  245.     }
  246.     public function setUpdateUser(string $updateUser): static
  247.     {
  248.         $this->updateUser $updateUser;
  249.         return $this;
  250.     }
  251.     public function getEstado(): ?ParEstado
  252.     {
  253.         return $this->estado;
  254.     }
  255.     public function setEstado(?ParEstado $estado): static
  256.     {
  257.         $this->estado $estado;
  258.         return $this;
  259.     }
  260.     public function getFechaRecepcion(): ?\DateTimeInterface
  261.     {
  262.         return $this->fechaRecepcion;
  263.     }
  264.     public function setFechaRecepcion(?\DateTimeInterface $fechaRecepcion): static
  265.     {
  266.         $this->fechaRecepcion $fechaRecepcion;
  267.         return $this;
  268.     }
  269.     public function getObservacionRecepcion(): ?string
  270.     {
  271.         return $this->observacionRecepcion;
  272.     }
  273.     public function setObservacionRecepcion(?string $observacionRecepcion): static
  274.     {
  275.         $this->observacionRecepcion $observacionRecepcion;
  276.         return $this;
  277.     }
  278.     public function getFechaEntrega(): ?\DateTimeInterface
  279.     {
  280.         return $this->fechaEntrega;
  281.     }
  282.     public function setFechaEntrega(?\DateTimeInterface $fechaEntrega): static
  283.     {
  284.         $this->fechaEntrega $fechaEntrega;
  285.         return $this;
  286.     }
  287.     public function getObservacionEntrega(): ?string
  288.     {
  289.         return $this->observacionEntrega;
  290.     }
  291.     public function setObservacionEntrega(?string $observacionEntrega): static
  292.     {
  293.         $this->observacionEntrega $observacionEntrega;
  294.         return $this;
  295.     }
  296.     public function getNumeroFactura(): ?string
  297.     {
  298.         return $this->numeroFactura;
  299.     }
  300.     public function setNumeroFactura(?string $numeroFactura): static
  301.     {
  302.         $this->numeroFactura $numeroFactura;
  303.         return $this;
  304.     }
  305.     public function getFactura(): ?string
  306.     {
  307.         return $this->factura;
  308.     }
  309.     public function setFactura(?string $factura): static
  310.     {
  311.         $this->factura $factura;
  312.         return $this;
  313.     }
  314.     public function getFechaFacturaElectronica(): ?\DateTimeInterface
  315.     {
  316.         return $this->fechaFacturaElectronica;
  317.     }
  318.     public function setFechaFacturaElectronica(?\DateTimeInterface $fechaFacturaElectronica): static
  319.     {
  320.         $this->fechaFacturaElectronica $fechaFacturaElectronica;
  321.         return $this;
  322.     }
  323.     public function getObservacionesFactura(): ?string
  324.     {
  325.         return $this->observacionesFactura;
  326.     }
  327.     public function setObservacionesFactura(?string $observacionesFactura): static
  328.     {
  329.         $this->observacionesFactura $observacionesFactura;
  330.         return $this;
  331.     }
  332.     /**
  333.      * @return Collection<int, RFOrdenCompraItem>
  334.      */
  335.     public function getOrdenCompraItems(): Collection
  336.     {
  337.         return $this->ordenCompraItems;
  338.     }
  339.     public function addOrdenCompraItem(RFOrdenCompraItem $ordenCompraItem): static
  340.     {
  341.         if (!$this->ordenCompraItems->contains($ordenCompraItem)) {
  342.             $this->ordenCompraItems->add($ordenCompraItem);
  343.             $ordenCompraItem->setOrdenCompra($this);
  344.         }
  345.         return $this;
  346.     }
  347.     public function removeOrdenCompraItem(RFOrdenCompraItem $ordenCompraItem): static
  348.     {
  349.         if ($this->ordenCompraItems->removeElement($ordenCompraItem)) {
  350.             // set the owning side to null (unless already changed)
  351.             if ($ordenCompraItem->getOrdenCompra() === $this) {
  352.                 $ordenCompraItem->setOrdenCompra(null);
  353.             }
  354.         }
  355.         return $this;
  356.     }
  357.     public function getTotal(): ?float
  358.     {
  359.         return $this->total;
  360.     }
  361.     public function setTotal(?float $total): static
  362.     {
  363.         $this->total $total;
  364.         return $this;
  365.     }
  366.     public function getTotalImpuestos(): ?float
  367.     {
  368.         return $this->totalImpuestos;
  369.     }
  370.     public function setTotalImpuestos(?float $totalImpuestos): static
  371.     {
  372.         $this->totalImpuestos $totalImpuestos;
  373.         return $this;
  374.     }
  375.     public function getSubTotal(): ?float
  376.     {
  377.         return $this->subTotal;
  378.     }
  379.     public function setSubTotal(?float $subTotal): static
  380.     {
  381.         $this->subTotal $subTotal;
  382.         return $this;
  383.     }
  384.     public function getEmpresaFilial(): ?TerEmpresa
  385.     {
  386.         return $this->empresaFilial;
  387.     }
  388.     public function setEmpresaFilial(?TerEmpresa $empresaFilial): static
  389.     {
  390.         $this->empresaFilial $empresaFilial;
  391.         return $this;
  392.     }
  393.     public function getCorreoFacturacion(): ?string
  394.     {
  395.         return $this->correoFacturacion;
  396.     }
  397.     public function setCorreoFacturacion(string $correoFacturacion): static
  398.     {
  399.         $this->correoFacturacion $correoFacturacion;
  400.         return $this;
  401.     }
  402.     public function getSolicitante(): ?TerPersona
  403.     {
  404.         return $this->solicitante;
  405.     }
  406.     public function setSolicitante(?TerPersona $solicitante): static
  407.     {
  408.         $this->solicitante $solicitante;
  409.         return $this;
  410.     }
  411.     public function getResultadoEntrega(): ?ParResultadoEntrega
  412.     {
  413.         return $this->resultadoEntrega;
  414.     }
  415.     public function setResultadoEntrega(?ParResultadoEntrega $resultadoEntrega): static
  416.     {
  417.         $this->resultadoEntrega $resultadoEntrega;
  418.         return $this;
  419.     }
  420.     public function getFechaEntregaReal(): ?\DateTimeInterface
  421.     {
  422.         return $this->fechaEntregaReal;
  423.     }
  424.     public function setFechaEntregaReal(?\DateTimeInterface $fechaEntregaReal): static
  425.     {
  426.         $this->fechaEntregaReal $fechaEntregaReal;
  427.         return $this;
  428.     }
  429.     public function getAccionNovedad(): ?ParAccionNovedad
  430.     {
  431.         return $this->accionNovedad;
  432.     }
  433.     public function setAccionNovedad(?ParAccionNovedad $accionNovedad): static
  434.     {
  435.         $this->accionNovedad $accionNovedad;
  436.         return $this;
  437.     }
  438.     public function getComentarios(): ?string
  439.     {
  440.         return $this->comentarios;
  441.     }
  442.     public function setComentarios(?string $comentarios): static
  443.     {
  444.         $this->comentarios $comentarios;
  445.         return $this;
  446.     }
  447. }