<?php
/**
* Created by PhpStorm.
* User: Toni Peral <toniperal.a4b@gmail.com>
* Date: 10/3/20
* Time: 15:56
*/
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* OrderDetail
*
* @ORM\Table(name="ps_order_detail")
*
* @ORM\Entity(repositoryClass="App\Repository\System\OrderDetailRepository")
*/
class OrderDetail
{
/**
* @ORM\Id()
*
* @ORM\GeneratedValue()
*
* @ORM\Column(type="integer", name="id_order_detail")
*/
private $id;
/**
* @var Order
*
* @ORM\ManyToOne(targetEntity="App\Entity\System\Order", inversedBy="orderDetails")
*
* @ORM\JoinColumn(name="id_Order", referencedColumnName="id_order")
*/
private $order;
/**
* @var int|null
*
* @ORM\Column(type="integer", length=11, nullable=true)
*/
private $idOrderInvoice;
/**
* @var int
*
* @ORM\Column(type="integer", length=10)
*/
private $productId;
/**
* @var int|null
*
* @ORM\Column(type="integer", length=10, nullable=true)
*/
private $productAttributeId;
/**
* @var string
*
* @ORM\Column(type="string", length=255)
*/
private $productName;
/**
* @var int
*
* @ORM\Column(type="integer", length=10, options={"default" : 0})
*/
private $productQuantity;
/**
* @var int
*
* @ORM\Column(type="integer", length=10, options={"default" : 0})
*/
private $productCatalog;
/**
* @var int
*
* @ORM\Column(type="integer", length=10, options={"default" : 0})
*/
private $productQuantityInStock;
/**
* @var int
*
* @ORM\Column(type="integer", length=10, options={"default" : 0})
*/
private $productQuantityRefunded;
/**
* @var int
*
* @ORM\Column(type="integer", length=10, options={"default" : 0})
*/
private $productQuantityReturn;
/**
* @var int
*
* @ORM\Column(type="integer", length=10, options={"default" : 0})
*/
private $productQuantityReinjected;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $productPrice;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=10, scale=2, options={"default" : 0.00} )
*/
private $reductionPercent;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $reductionAmount;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $reductionAmountTaxIncl;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $reductionAmountTaxExcl;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=10, scale=2, options={"default" : 0.00})
*/
private $groupReduction;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $productQuantityDiscount;
/**
* @var string|null
*
* @ORM\Column(type="string", length=13, nullable=true)
*/
private $productEan13;
/**
* @var string|null
*
* @ORM\Column(type="string", length=12, nullable=true)
*/
private $productUpc;
/**
* @var string|null
*
* @ORM\Column(type="string", length=32, nullable=true)
*/
private $productReference;
/**
* @var string|null
*
* @ORM\Column(type="string", length=32, nullable=true)
*/
private $productSupplierReference;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6)
*/
private $productWeight;
/**
* @var bool
*
* @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0})
*/
private $taxComputationMethod;
/**
* @var string
*
* @ORM\Column(type="string", length=16)
*/
private $taxName;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=10, scale=3, options={"default" : 0.000})
*/
private $taxRate;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=21, scale=6, options={"default" : 0.000000})
*/
private $ecotax;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=5, scale=3, options={"default" : 0.000}, name="ecotax_tax_rate")
*/
private $ecoTaxRate;
/**
* @var bool
*
* @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0})
*/
private $discountQuantityApplied;
/**
* @var string|null
*
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $downloadHash;
/**
* @var int|null
*
* @ORM\Column(type="integer", options={"default" : 0}, nullable=true)
*/
private $downloadNb;
/**
* @var \DateTime|null
*
* @ORM\Column(type="datetime", nullable=true)
*/
private $downloadDeadline;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $totalPriceTaxIncl;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $totalPriceTaxExcl;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $unitPriceTaxIncl;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $unitPriceTaxExcl;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $totalShippingPriceTaxIncl;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $totalShippingPriceTaxExcl;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $purchaseSupplierPrice;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $originalProductPrice;
/**
* @var bool
*
* @ORM\Column(type="boolean", columnDefinition="tinyint(4)", options={"default" : 0})
*/
private $re;
/**
* @var int
*
* @ORM\Column(type="integer", length=11 ,options={"default" : 0})
*/
private $locks;
/**
* @var bool|null
*
* @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
*/
private $quantityStockSupplier;
/**
* @var bool|null
*
* @ORM\Column(name="quantity_stock_supplier_3_5", type="boolean", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
*/
private $quantityStockSupplier3To5;
/**
* @var bool|null
*
* @ORM\Column(type="boolean", columnDefinition="tinyint(1)", options={"default" : 0}, nullable=true)
*/
private $quantityFutureStock;
/**
* @var string|null
*
* @ORM\Column(type="string", length=50, nullable=true, options={"default" : "0"} )
*/
private $purchaseOrder;
/**
* @var int|null
*
* @ORM\Column(type="integer", length=11 ,options={"default" : 0}, nullable=true)
*/
private $idPurchaseLine;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $width;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $height;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $depth;
/**
* @var bool
*
* @ORM\Column(type="boolean", columnDefinition="tinyint(4)", options={"default" : 1})
*/
private $pedidosTransito;
/**
* @var float
*
* @ORM\Column(type="decimal", precision=20, scale=6, options={"default" : 0.000000})
*/
private $estimateCostPrice;
/**
* @var int|null
*
* @ORM\Column(type="integer", length=11 , nullable=true)
*/
private $priceByQuantity;
/**
* @var string|null
*
* @ORM\Column(type="string", length=100 , nullable=true)
*/
private $internalReference;
/**
* @var bool
*
* @ORM\Column(name="buybox", type="boolean")
*/
private $buyBox;
/**
* @var \DateTime
*
* @ORM\Column(type="datetime")
*/
private $dateUpd;
/**
* OrderDetail constructor.
*/
public function __construct()
{
$this->productQuantity = 0;
$this->productCatalog = 0;
$this->productQuantityInStock = 0;
$this->productQuantityRefunded = 0;
$this->productQuantityReturn = 0;
$this->productQuantityReinjected = 0;
$this->productPrice = 0.000000;
$this->reductionPercent = 0.00;
$this->reductionAmount = 0.000000;
$this->reductionAmountTaxIncl = 0.000000;
$this->reductionAmountTaxExcl = 0.000000;
$this->groupReduction = 0.00;
$this->productQuantityDiscount = 0.000000;
$this->taxComputationMethod = 0;
$this->taxRate = 0.000;
$this->ecotax = 0.000000;
$this->ecoTaxRate = 0.000;
$this->discountQuantityApplied = 0;
$this->downloadNb = 0;
$this->totalPriceTaxIncl = 0.000000;
$this->totalPriceTaxExcl = 0.000000;
$this->unitPriceTaxIncl = 0.000000;
$this->unitPriceTaxExcl = 0.000000;
$this->totalShippingPriceTaxExcl = 0.000000;
$this->purchaseSupplierPrice = 0.000000;
$this->originalProductPrice = 0.000000;
$this->re = 0;
$this->locks = 0;
$this->quantityStockSupplier = 0;
$this->quantityStockSupplier3To5 = 0;
$this->quantityFutureStock = 0;
$this->purchaseOrder = '0';
$this->idPurchaseLine = 0;
$this->width = 0.000000;
$this->height = 0.000000;
$this->depth = 0.000000;
$this->pedidosTransito = 1;
$this->estimateCostPrice = 0.000000;
$this->buyBox = false;
}
/**
* @return mixed
*/
public function getId()
{
return $this->id;
}
/**
* @param mixed $id
*
* @return OrderDetail
*/
public function setId($id): OrderDetail
{
$this->id = $id;
return $this;
}
/**
* @return Order
*/
public function getOrder(): Order
{
return $this->order;
}
/**
* @param Order $order
*
* @return OrderDetail
*/
public function setOrder(Order $order): OrderDetail
{
$this->order = $order;
return $this;
}
/**
* @return int|null
*/
public function getIdOrderInvoice(): ?int
{
return $this->idOrderInvoice;
}
/**
* @param int|null $idOrderInvoice
*
* @return OrderDetail
*/
public function setIdOrderInvoice(?int $idOrderInvoice): OrderDetail
{
$this->idOrderInvoice = $idOrderInvoice;
return $this;
}
/**
* @return int
*/
public function getProductId(): int
{
return $this->productId;
}
/**
* @param int $productId
*
* @return OrderDetail
*/
public function setProductId(int $productId): OrderDetail
{
$this->productId = $productId;
return $this;
}
/**
* @return int|null
*/
public function getProductAttributeId(): ?int
{
return $this->productAttributeId;
}
/**
* @param int|null $productAttributeId
*
* @return OrderDetail
*/
public function setProductAttributeId(?int $productAttributeId): OrderDetail
{
$this->productAttributeId = $productAttributeId;
return $this;
}
/**
* @return string
*/
public function getProductName(): string
{
return $this->productName;
}
/**
* @param string $productName
*
* @return OrderDetail
*/
public function setProductName(string $productName): OrderDetail
{
$this->productName = $productName;
return $this;
}
/**
* @return int
*/
public function getProductQuantity(): int
{
return $this->productQuantity;
}
/**
* @param int $productQuantity
*
* @return OrderDetail
*/
public function setProductQuantity(int $productQuantity): OrderDetail
{
$this->productQuantity = $productQuantity;
return $this;
}
public function getProductCatalog(): int
{
return $this->productCatalog;
}
public function setProductCatalog(int $productCatalog): OrderDetail
{
$this->productCatalog = $productCatalog;
return $this;
}
/**
* @return int
*/
public function getProductQuantityInStock(): int
{
return $this->productQuantityInStock;
}
/**
* @param int $productQuantityInStock
*
* @return OrderDetail
*/
public function setProductQuantityInStock(int $productQuantityInStock): OrderDetail
{
$this->productQuantityInStock = $productQuantityInStock;
return $this;
}
/**
* @return int
*/
public function getProductQuantityRefunded(): int
{
return $this->productQuantityRefunded;
}
/**
* @param int $productQuantityRefunded
*
* @return OrderDetail
*/
public function setProductQuantityRefunded(int $productQuantityRefunded): OrderDetail
{
$this->productQuantityRefunded = $productQuantityRefunded;
return $this;
}
/**
* @return int
*/
public function getProductQuantityReturn(): int
{
return $this->productQuantityReturn;
}
/**
* @param int $productQuantityReturn
*
* @return OrderDetail
*/
public function setProductQuantityReturn(int $productQuantityReturn): OrderDetail
{
$this->productQuantityReturn = $productQuantityReturn;
return $this;
}
/**
* @return int
*/
public function getProductQuantityReinjected(): int
{
return $this->productQuantityReinjected;
}
/**
* @param int $productQuantityReinjected
*
* @return OrderDetail
*/
public function setProductQuantityReinjected(int $productQuantityReinjected): OrderDetail
{
$this->productQuantityReinjected = $productQuantityReinjected;
return $this;
}
/**
* @return float
*/
public function getProductPrice(): float
{
return $this->productPrice;
}
/**
* @param float $productPrice
*
* @return OrderDetail
*/
public function setProductPrice(float $productPrice): OrderDetail
{
$this->productPrice = $productPrice;
return $this;
}
/**
* @return float
*/
public function getReductionPercent(): float
{
return $this->reductionPercent;
}
/**
* @param float $reductionPercent
*
* @return OrderDetail
*/
public function setReductionPercent(float $reductionPercent): OrderDetail
{
$this->reductionPercent = $reductionPercent;
return $this;
}
/**
* @return float
*/
public function getReductionAmount(): float
{
return $this->reductionAmount;
}
/**
* @param float $reductionAmount
*
* @return OrderDetail
*/
public function setReductionAmount(float $reductionAmount): OrderDetail
{
$this->reductionAmount = $reductionAmount;
return $this;
}
/**
* @return float
*/
public function getReductionAmountTaxIncl(): float
{
return $this->reductionAmountTaxIncl;
}
/**
* @param float $reductionAmountTaxIncl
*
* @return OrderDetail
*/
public function setReductionAmountTaxIncl(float $reductionAmountTaxIncl): OrderDetail
{
$this->reductionAmountTaxIncl = $reductionAmountTaxIncl;
return $this;
}
/**
* @return float
*/
public function getReductionAmountTaxExcl(): float
{
return $this->reductionAmountTaxExcl;
}
/**
* @param float $reductionAmountTaxExcl
*
* @return OrderDetail
*/
public function setReductionAmountTaxExcl(float $reductionAmountTaxExcl): OrderDetail
{
$this->reductionAmountTaxExcl = $reductionAmountTaxExcl;
return $this;
}
/**
* @return float
*/
public function getGroupReduction(): float
{
return $this->groupReduction;
}
/**
* @param float $groupReduction
*
* @return OrderDetail
*/
public function setGroupReduction(float $groupReduction): OrderDetail
{
$this->groupReduction = $groupReduction;
return $this;
}
/**
* @return float
*/
public function getProductQuantityDiscount(): float
{
return $this->productQuantityDiscount;
}
/**
* @param float $productQuantityDiscount
*
* @return OrderDetail
*/
public function setProductQuantityDiscount(float $productQuantityDiscount): OrderDetail
{
$this->productQuantityDiscount = $productQuantityDiscount;
return $this;
}
/**
* @return string|null
*/
public function getProductEan13(): ?string
{
return $this->productEan13;
}
/**
* @param string|null $productEan13
*
* @return OrderDetail
*/
public function setProductEan13(?string $productEan13): OrderDetail
{
$this->productEan13 = $productEan13;
return $this;
}
/**
* @return string|null
*/
public function getProductUpc(): ?string
{
return $this->productUpc;
}
/**
* @param string|null $productUpc
*
* @return OrderDetail
*/
public function setProductUpc(?string $productUpc): OrderDetail
{
$this->productUpc = $productUpc;
return $this;
}
/**
* @return string|null
*/
public function getProductReference(): ?string
{
return $this->productReference;
}
/**
* @param string|null $productReference
*
* @return OrderDetail
*/
public function setProductReference(?string $productReference): OrderDetail
{
$this->productReference = $productReference;
return $this;
}
/**
* @return string|null
*/
public function getProductSupplierReference(): ?string
{
return $this->productSupplierReference;
}
/**
* @param string|null $productSupplierReference
*
* @return OrderDetail
*/
public function setProductSupplierReference(?string $productSupplierReference): OrderDetail
{
$this->productSupplierReference = $productSupplierReference;
return $this;
}
/**
* @return float
*/
public function getProductWeight(): float
{
return $this->productWeight;
}
/**
* @param float $productWeight
*
* @return OrderDetail
*/
public function setProductWeight(float $productWeight): OrderDetail
{
$this->productWeight = $productWeight;
return $this;
}
/**
* @return bool
*/
public function isTaxComputationMethod(): bool
{
return $this->taxComputationMethod;
}
/**
* @param bool $taxComputationMethod
*
* @return OrderDetail
*/
public function setTaxComputationMethod(bool $taxComputationMethod): OrderDetail
{
$this->taxComputationMethod = $taxComputationMethod;
return $this;
}
/**
* @return string
*/
public function getTaxName(): string
{
return $this->taxName;
}
/**
* @param string $taxName
*
* @return OrderDetail
*/
public function setTaxName(string $taxName): OrderDetail
{
$this->taxName = $taxName;
return $this;
}
/**
* @return float
*/
public function getTaxRate(): float
{
return $this->taxRate;
}
/**
* @param float $taxRate
*
* @return OrderDetail
*/
public function setTaxRate(float $taxRate): OrderDetail
{
$this->taxRate = $taxRate;
return $this;
}
/**
* @return float
*/
public function getEcotax(): float
{
return $this->ecotax;
}
/**
* @param float $ecotax
*
* @return OrderDetail
*/
public function setEcotax(float $ecotax): OrderDetail
{
$this->ecotax = $ecotax;
return $this;
}
/**
* @return float
*/
public function getEcoTaxRate(): float
{
return $this->ecoTaxRate;
}
/**
* @param float $ecoTaxRate
*
* @return OrderDetail
*/
public function setEcoTaxRate(float $ecoTaxRate): OrderDetail
{
$this->ecoTaxRate = $ecoTaxRate;
return $this;
}
/**
* @return bool
*/
public function isDiscountQuantityApplied(): bool
{
return $this->discountQuantityApplied;
}
/**
* @param bool $discountQuantityApplied
*
* @return OrderDetail
*/
public function setDiscountQuantityApplied(bool $discountQuantityApplied): OrderDetail
{
$this->discountQuantityApplied = $discountQuantityApplied;
return $this;
}
/**
* @return string|null
*/
public function getDownloadHash(): ?string
{
return $this->downloadHash;
}
/**
* @param string|null $downloadHash
*
* @return OrderDetail
*/
public function setDownloadHash(?string $downloadHash): OrderDetail
{
$this->downloadHash = $downloadHash;
return $this;
}
/**
* @return int|null
*/
public function getDownloadNb(): ?int
{
return $this->downloadNb;
}
/**
* @param int|null $downloadNb
*
* @return OrderDetail
*/
public function setDownloadNb(?int $downloadNb): OrderDetail
{
$this->downloadNb = $downloadNb;
return $this;
}
/**
* @return \DateTime|null
*/
public function getDownloadDeadline(): ?\DateTime
{
return $this->downloadDeadline;
}
/**
* @param \DateTime|null $downloadDeadline
*
* @return OrderDetail
*/
public function setDownloadDeadline(?\DateTime $downloadDeadline): OrderDetail
{
$this->downloadDeadline = $downloadDeadline;
return $this;
}
/**
* @return float
*/
public function getTotalPriceTaxIncl(): float
{
return $this->totalPriceTaxIncl;
}
/**
* @param float $totalPriceTaxIncl
*
* @return OrderDetail
*/
public function setTotalPriceTaxIncl(float $totalPriceTaxIncl): OrderDetail
{
$this->totalPriceTaxIncl = $totalPriceTaxIncl;
return $this;
}
/**
* @return float
*/
public function getTotalPriceTaxExcl(): float
{
return $this->totalPriceTaxExcl;
}
/**
* @param float $totalPriceTaxExcl
*
* @return OrderDetail
*/
public function setTotalPriceTaxExcl(float $totalPriceTaxExcl): OrderDetail
{
$this->totalPriceTaxExcl = $totalPriceTaxExcl;
return $this;
}
/**
* @return float
*/
public function getUnitPriceTaxIncl(): float
{
return $this->unitPriceTaxIncl;
}
/**
* @param float $unitPriceTaxIncl
*
* @return OrderDetail
*/
public function setUnitPriceTaxIncl(float $unitPriceTaxIncl): OrderDetail
{
$this->unitPriceTaxIncl = $unitPriceTaxIncl;
return $this;
}
/**
* @return float
*/
public function getUnitPriceTaxExcl(): float
{
return $this->unitPriceTaxExcl;
}
/**
* @param float $unitPriceTaxExcl
*
* @return OrderDetail
*/
public function setUnitPriceTaxExcl(float $unitPriceTaxExcl): OrderDetail
{
$this->unitPriceTaxExcl = $unitPriceTaxExcl;
return $this;
}
/**
* @return float
*/
public function getTotalShippingPriceTaxIncl(): float
{
return $this->totalShippingPriceTaxIncl;
}
/**
* @param float $totalShippingPriceTaxIncl
*
* @return OrderDetail
*/
public function setTotalShippingPriceTaxIncl(float $totalShippingPriceTaxIncl): OrderDetail
{
$this->totalShippingPriceTaxIncl = $totalShippingPriceTaxIncl;
return $this;
}
/**
* @return float
*/
public function getTotalShippingPriceTaxExcl(): float
{
return $this->totalShippingPriceTaxExcl;
}
/**
* @param float $totalShippingPriceTaxExcl
*
* @return OrderDetail
*/
public function setTotalShippingPriceTaxExcl(float $totalShippingPriceTaxExcl): OrderDetail
{
$this->totalShippingPriceTaxExcl = $totalShippingPriceTaxExcl;
return $this;
}
/**
* @return float
*/
public function getPurchaseSupplierPrice(): float
{
return $this->purchaseSupplierPrice;
}
/**
* @param float $purchaseSupplierPrice
*
* @return OrderDetail
*/
public function setPurchaseSupplierPrice(float $purchaseSupplierPrice): OrderDetail
{
$this->purchaseSupplierPrice = $purchaseSupplierPrice;
return $this;
}
/**
* @return float
*/
public function getOriginalProductPrice(): float
{
return $this->originalProductPrice;
}
/**
* @param float $originalProductPrice
*
* @return OrderDetail
*/
public function setOriginalProductPrice(float $originalProductPrice): OrderDetail
{
$this->originalProductPrice = $originalProductPrice;
return $this;
}
/**
* @return bool
*/
public function isRe(): bool
{
return $this->re;
}
/**
* @param bool $re
*
* @return OrderDetail
*/
public function setRe(bool $re): OrderDetail
{
$this->re = $re;
return $this;
}
/**
* @return int
*/
public function getLocks(): int
{
return $this->locks;
}
/**
* @param int $locks
*
* @return OrderDetail
*/
public function setLocks(int $locks): OrderDetail
{
$this->locks = $locks;
return $this;
}
/**
* @return bool|null
*/
public function getQuantityStockSupplier(): ?bool
{
return $this->quantityStockSupplier;
}
/**
* @param bool|null $quantityStockSupplier
*
* @return OrderDetail
*/
public function setQuantityStockSupplier(?bool $quantityStockSupplier): OrderDetail
{
$this->quantityStockSupplier = $quantityStockSupplier;
return $this;
}
/**
* @return bool|null
*/
public function getQuantityFutureStock(): ?bool
{
return $this->quantityFutureStock;
}
/**
* @param bool|null $quantityFutureStock
*
* @return OrderDetail
*/
public function setQuantityFutureStock(?bool $quantityFutureStock): OrderDetail
{
$this->quantityFutureStock = $quantityFutureStock;
return $this;
}
/**
* @return string|null
*/
public function getPurchaseOrder(): ?string
{
return $this->purchaseOrder;
}
/**
* @param string|null $purchaseOrder
*
* @return OrderDetail
*/
public function setPurchaseOrder(?string $purchaseOrder): OrderDetail
{
$this->purchaseOrder = $purchaseOrder;
return $this;
}
/**
* @return int|null
*/
public function getIdPurchaseLine(): ?int
{
return $this->idPurchaseLine;
}
/**
* @param int|null $idPurchaseLine
*
* @return OrderDetail
*/
public function setIdPurchaseLine(?int $idPurchaseLine): OrderDetail
{
$this->idPurchaseLine = $idPurchaseLine;
return $this;
}
/**
* @return float
*/
public function getWidth(): float
{
return $this->width;
}
/**
* @param float $width
*
* @return OrderDetail
*/
public function setWidth(float $width): OrderDetail
{
$this->width = $width;
return $this;
}
/**
* @return float
*/
public function getHeight(): float
{
return $this->height;
}
/**
* @param float $height
*
* @return OrderDetail
*/
public function setHeight(float $height): OrderDetail
{
$this->height = $height;
return $this;
}
/**
* @return float
*/
public function getDepth(): float
{
return $this->depth;
}
/**
* @param float $depth
*
* @return OrderDetail
*/
public function setDepth(float $depth): OrderDetail
{
$this->depth = $depth;
return $this;
}
/**
* @return bool
*/
public function isPedidosTransito(): bool
{
return $this->pedidosTransito;
}
/**
* @param bool $pedidosTransito
*
* @return OrderDetail
*/
public function setPedidosTransito(bool $pedidosTransito): OrderDetail
{
$this->pedidosTransito = $pedidosTransito;
return $this;
}
/**
* @return float
*/
public function getEstimateCostPrice(): float
{
return $this->estimateCostPrice;
}
/**
* @param float $estimateCostPrice
*
* @return OrderDetail
*/
public function setEstimateCostPrice(float $estimateCostPrice): OrderDetail
{
$this->estimateCostPrice = $estimateCostPrice;
return $this;
}
/**
* @return int|null
*/
public function getPriceByQuantity(): ?int
{
return $this->priceByQuantity;
}
/**
* @param int|null $priceByQuantity
*
* @return OrderDetail
*/
public function setPriceByQuantity(?int $priceByQuantity): OrderDetail
{
switch ($priceByQuantity) {
case 'MOQ1':
$priceByQuantity = 1;
break;
case 'MOQ2':
$priceByQuantity = 2;
break;
case 'MOQ3':
$priceByQuantity = 3;
break;
default:
$priceByQuantity = 0;
}
$this->priceByQuantity = $priceByQuantity;
return $this;
}
/**
* @return string|null
*/
public function getInternalReference(): ?string
{
return $this->internalReference;
}
/**
* @param string|null $internalReference
*
* @return OrderDetail
*/
public function setInternalReference(?string $internalReference): OrderDetail
{
$this->internalReference = $internalReference;
return $this;
}
/**
* @return bool|int|null
*/
public function getQuantityStockSupplier3To5()
{
return $this->quantityStockSupplier3To5;
}
/**
* @param bool|int|null $quantityStockSupplier3To5
*/
public function setQuantityStockSupplier3To5($quantityStockSupplier3To5): void
{
$this->quantityStockSupplier3To5 = $quantityStockSupplier3To5;
}
public function getDateUpd(): \DateTime
{
return $this->dateUpd;
}
public function setDateUpd(\DateTime $dateUpd): OrderDetail
{
$this->dateUpd = $dateUpd;
return $this;
}
public function isBuyBox(): bool
{
return $this->buyBox;
}
public function setBuyBox(bool $buyBox): void
{
$this->buyBox = $buyBox;
}
}