<?php
namespace App\Entity\Movimientos;
use App\Repository\Movimientos\RemitoEntregaRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=RemitoEntregaRepository::class)
*/
class RemitoEntrega extends MovimientoStock
{
/**
* @ORM\Column(type="string", name="numero_comprobante", length=255, nullable=true)
*/
private $numeroComprobante;
/**
* @ORM\ManyToOne(targetEntity=Proveedor::class)
* @ORM\JoinColumn(name="id_proveedor", referencedColumnName="id", nullable=true)
* @Assert\NotNull(message="El campo es requerido")
*/
private $proveedor;
public function getProveedor()
{
return $this->proveedor;
}
public function getFinalizable()
{
return true;
}
public function setProveedor($proveedor)
{
$this->proveedor = $proveedor;
return $this;
}
public static function isToolArticle()
{
return [false];
}
public function getInstance()
{
return "re";
}
public function getDescripcion()
{
return "Remito de Entrega";
}
public function getDetalle()
{
$detalle = array(
"Remito de Ingreso",
"NÂș: " . $this->getNumeroComprobante(),
"Fecha " . $this->getFecha()->format('d/m/Y'),
"Proveedor: " . $this->proveedor,
"Deposito destino: " . $this->getDeposito(),
);
return $detalle;
}
public function getNumeroComprobante(): ?string
{
return $this->numeroComprobante;
}
public function setNumeroComprobante(?string $numeroComprobante): self
{
$this->numeroComprobante = $numeroComprobante;
return $this;
}
}