<?php
namespace App\Entity;
use App\Repository\StockTakeProductsRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: StockTakeProductsRepository::class)]
class StockTakeProducts extends BaseEntity
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $name;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $code;
#[ORM\Column(type: 'float', nullable: true)]
private $oldQuantity;
#[ORM\Column(type: 'float', nullable: true)]
private $newQuantity;
#[ORM\Column(type: 'boolean', nullable: true)]
private $locked;
#[ORM\ManyToOne(targetEntity: StockTake::class, inversedBy: 'stockTakeProducts')]
#[ORM\JoinColumn(nullable: false)]
private $stockTake;
#[ORM\ManyToOne(targetEntity: Product::class, inversedBy: 'stockTakeProducts')]
#[ORM\JoinColumn(nullable: false)]
private $product;
#[ORM\Column(type: 'boolean', nullable: true)]
private $isPosted;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(?string $code): self
{
$this->code = $code;
return $this;
}
public function getOldQuantity(): ?float
{
return $this->oldQuantity;
}
public function setOldQuantity(?float $oldQuantity): self
{
$this->oldQuantity = $oldQuantity;
return $this;
}
public function getNewQuantity(): ?float
{
return $this->newQuantity;
}
public function setNewQuantity(?float $newQuantity): self
{
$this->newQuantity = $newQuantity;
return $this;
}
public function getStockTake(): ?StockTake
{
return $this->stockTake;
}
public function setStockTake(?StockTake $stockTake): self
{
$this->stockTake = $stockTake;
return $this;
}
public function getProduct(): ?Product
{
return $this->product;
}
public function setProduct(?Product $product): self
{
$this->product = $product;
return $this;
}
/**
* @return mixed
*/
public function getLocked()
{
return $this->locked;
}
/**
* @param mixed $locked
*/
public function setLocked($locked): void
{
$this->locked = $locked;
}
public function isIsPosted(): ?bool
{
return $this->isPosted;
}
public function setIsPosted(?bool $isPosted): self
{
$this->isPosted = $isPosted;
return $this;
}
#[ORM\Column(type: 'decimal', precision: 19, scale: 4, nullable: true)]
private $priceFob;
#[ORM\Column(type: 'decimal', precision: 19, scale: 4, nullable: true)]
private $priceNavlun;
public function getPriceFob(): ?float
{
return $this->priceFob;
}
public function setPriceFob(?float $priceFob): self
{
$this->priceFob = $priceFob;
return $this;
}
public function getPriceNavlun(): ?float
{
return $this->priceNavlun;
}
public function setPriceNavlun(?float $priceNavlun): self
{
$this->priceNavlun = $priceNavlun;
return $this;
}
}