src/Entity/Movimientos/RemitoEntrega.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Movimientos;
  3. use App\Repository\Movimientos\RemitoEntregaRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. /**
  7.  * @ORM\Entity(repositoryClass=RemitoEntregaRepository::class)
  8.  */
  9. class RemitoEntrega extends MovimientoStock
  10. {
  11.     /**
  12.      * @ORM\Column(type="string", name="numero_comprobante", length=255, nullable=true)
  13.      */
  14.     private $numeroComprobante;
  15.      
  16.     /**
  17.      * @ORM\ManyToOne(targetEntity=Proveedor::class)
  18.      * @ORM\JoinColumn(name="id_proveedor", referencedColumnName="id", nullable=true)
  19.      * @Assert\NotNull(message="El campo es requerido")
  20.      */
  21.     private $proveedor;
  22.     public function getProveedor()
  23.     {
  24.         return $this->proveedor;
  25.     }
  26.     public function getFinalizable()
  27.     {
  28.         return true;
  29.     }
  30.     public function setProveedor($proveedor)
  31.     {
  32.         $this->proveedor $proveedor;
  33.         return $this;
  34.     }
  35.     public static function isToolArticle()
  36.           {
  37.               return [false];
  38.           }
  39.     public function getInstance()
  40.           {
  41.               return "re";
  42.           }
  43.     public function getDescripcion()
  44.           {
  45.               return "Remito de Entrega";
  46.           }
  47.     public function getDetalle()
  48.     {
  49.         $detalle = array(
  50.                             "Remito de Ingreso",
  51.                             "NÂș: " $this->getNumeroComprobante(),
  52.                             "Fecha " $this->getFecha()->format('d/m/Y'),                            
  53.                             "Proveedor: " $this->proveedor,
  54.                             "Deposito destino: " $this->getDeposito(),
  55.                         );
  56.         return $detalle;
  57.     }
  58.     public function getNumeroComprobante(): ?string
  59.     {
  60.         return $this->numeroComprobante;
  61.     }
  62.     public function setNumeroComprobante(?string $numeroComprobante): self
  63.     {
  64.         $this->numeroComprobante $numeroComprobante;
  65.         return $this;
  66.     }
  67. }