<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\ORM\Query\Expr\Math;
/**
* @ORM\Entity(repositoryClass="App\Repository\QuotationRepository")
*/
class Quotation
{
/**
* @ORM\Id()
* @ORM\GeneratedValue()
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $numero;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $date_saisie;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $societe;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $destinataire;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $hscode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $prix;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Incoterm", inversedBy="quotations")
*/
private $incoterm;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $quantiteMin;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $dimension;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $poidsNet;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $poidsBrut;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $provenance;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $delaiDeLivraison;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $conditionsDeReglement;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $liasseDocumentaire;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $mandant_num;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\AdminDonneurOrdre", inversedBy="quotations")
*/
private $mandat;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $vol_contractuel;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $destination;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rlce1;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rlce2;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $rlce3;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $referent;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $validite;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $mandant;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $duree_validite;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $quantite;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Devise", inversedBy="quotations")
*/
private $devise;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Status", inversedBy="quotations")
*/
private $status;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\PaymentMethod", inversedBy="quotations")
*/
private $modeDeReglement;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Emballage", inversedBy="quotations")
*/
private $emballage;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Conditionnement", inversedBy="quotations")
*/
private $conditionnement;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Products", inversedBy="quotations")
*/
private $produit;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\SousJacent", inversedBy="quotations")
*/
private $sous_jacent;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Unite", inversedBy="quotations")
*/
private $unite;
public function __construct()
{
$this->createdAt = new \DateTime('now');
if (!isset($this->numero)){
$this->numero = 'COT'.random_int(1,900).date('s');
}else{
$this->numero = 'COT'.random_int(1,900).date('s');
}
$this->mandant_num = 'Mandat'.random_int(1, 900);
}
public function getId(): ?int
{
return $this->id;
}
public function getNumero(): ?string
{
return $this->numero;
}
public function setNumero(string $numero): self
{
$this->numero = $numero;
return $this;
}
public function getSociete(): ?string
{
return $this->societe;
}
public function setSociete(string $societe): self
{
$this->societe = $societe;
return $this;
}
public function getDestinataire(): ?string
{
return $this->destinataire;
}
public function setDestinataire(string $destinataire): self
{
$this->destinataire = $destinataire;
return $this;
}
public function getHscode(): ?string
{
return $this->hscode;
}
public function setHscode(string $hscode): self
{
$this->hscode = $hscode;
return $this;
}
public function getMandat(): ?AdminDonneurOrdre
{
return $this->mandat;
}
public function setMandat(?AdminDonneurOrdre $mandat): self
{
$this->mandat = $mandat;
return $this;
}
public function getDateSaisie(): ?\DateTimeInterface
{
return $this->date_saisie;
}
public function setDateSaisie(?\DateTimeInterface $date_saisie): self
{
$this->date_saisie = $date_saisie;
return $this;
}
public function getDimension(): ?string
{
return $this->dimension;
}
public function setDimension(string $dimension): self
{
$this->dimension = $dimension;
return $this;
}
public function getPoidsBrut(): ?string
{
return $this->poidsBrut;
}
public function setPoidsBrut(string $poidsBrut): self
{
$this->poidsBrut = $poidsBrut;
return $this;
}
public function getProvenance(): ?string
{
return $this->provenance;
}
public function setProvenance(string $provenance): self
{
$this->provenance = $provenance;
return $this;
}
public function getDelaiDeLivraison(): ?string
{
return $this->delaiDeLivraison;
}
public function setDelaiDeLivraison(string $delaiDeLivraison): self
{
$this->delaiDeLivraison = $delaiDeLivraison;
return $this;
}
public function getConditionsDeReglement(): ?string
{
return $this->conditionsDeReglement;
}
public function setConditionsDeReglement(string $conditionsDeReglement): self
{
$this->conditionsDeReglement = $conditionsDeReglement;
return $this;
}
public function getLiasseDocumentaire(): ?string
{
return $this->liasseDocumentaire;
}
public function setLiasseDocumentaire(string $liasseDocumentaire): self
{
$this->liasseDocumentaire = $liasseDocumentaire;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getIncoterm():?Incoterm
{
return $this->incoterm;
}
public function setIncoterm(?Incoterm $incoterm):self
{
$this->incoterm = $incoterm;
return $this;
}
/**
* @return mixed
*/
public function getMandantNum()
{
return $this->mandant_num;
}
/**
* @param mixed $mandant_num
* @return Quotation
*/
public function setMandantNum($mandant_num)
{
$this->mandant_num = $mandant_num;
return $this;
}
/**
* @return mixed
*/
public function getVolContractuel()
{
return $this->vol_contractuel;
}
/**
* @param mixed $vol_contractuel
* @return Quotation
*/
public function setVolContractuel($vol_contractuel)
{
$this->vol_contractuel = $vol_contractuel;
return $this;
}
/**
* @return mixed
*/
public function getDestination()
{
return $this->destination;
}
/**
* @param mixed $destination
* @return Quotation
*/
public function setDestination($destination)
{
$this->destination = $destination;
return $this;
}
public function getRlce1():?\DateTimeInterface
{
return $this->rlce1;
}
public function setRlce1(?\DateTimeInterface $rlce1)
{
$this->rlce1 = $rlce1;
return $this;
}
public function getRlce2():?\DateTimeInterface
{
return $this->rlce2;
}
public function setRlce2(?\DateTimeInterface $rlce2)
{
$this->rlce2 = $rlce2;
return $this;
}
public function getRlce3():?\DateTimeInterface
{
return $this->rlce3;
}
public function setRlce3(?\DateTimeInterface $rlce3)
{
$this->rlce3 = $rlce3;
return $this;
}
/**
* @return mixed
*/
public function getPrix(): ?string
{
return $this->prix;
}
/**
* @param mixed $prix
* @return Quotation
*/
public function setPrix(?string $prix):self
{
$this->prix = $prix;
return $this;
}
/**
* @return mixed
*/
public function getQuantiteMin():?string
{
return $this->quantiteMin;
}
/**
* @param mixed $quantiteMin
* @return Quotation
*/
public function setQuantiteMin(?string $quantiteMin):self
{
$this->quantiteMin = $quantiteMin;
return $this;
}
/**
* @return mixed
*/
public function getPoidsNet():?string
{
return $this->poidsNet;
}
/**
* @param mixed $poidsNet
* @return Quotation
*/
public function setPoidsNet(?string $poidsNet):self
{
$this->poidsNet = $poidsNet;
return $this;
}
public function __toString(){
return $this->numero;
}
public function getReferent(): ?string
{
return $this->referent;
}
public function setReferent(?string $referent): self
{
$this->referent = $referent;
return $this;
}
public function getValidite(): ?string
{
return $this->validite;
}
public function setValidite(?string $validite): self
{
$this->validite = $validite;
return $this;
}
public function getMandant(): ?string
{
return $this->mandant;
}
public function setMandant(?string $mandant): self
{
$this->mandant = $mandant;
return $this;
}
public function getDureeValidite(): ?string
{
return $this->duree_validite;
}
public function setDureeValidite(?string $duree_validite): self
{
$this->duree_validite = $duree_validite;
return $this;
}
public function getQuantite(): ?int
{
return $this->quantite;
}
public function setQuantite(?int $quantite): self
{
$this->quantite = $quantite;
return $this;
}
public function getDevise(): ?Devise
{
return $this->devise;
}
public function setDevise(?Devise $devise): self
{
$this->devise = $devise;
return $this;
}
public function getStatus(): ?Status
{
return $this->status;
}
public function setStatus(?Status $status): self
{
$this->status = $status;
return $this;
}
public function getModeDeReglement(): ?PaymentMethod
{
return $this->modeDeReglement;
}
public function setModeDeReglement(?PaymentMethod $modeDeReglement): self
{
$this->modeDeReglement = $modeDeReglement;
return $this;
}
public function getEmballage(): ?Emballage
{
return $this->emballage;
}
public function setEmballage(?Emballage $emballage): self
{
$this->emballage = $emballage;
return $this;
}
public function getConditionnement(): ?Conditionnement
{
return $this->conditionnement;
}
public function setConditionnement(?Conditionnement $conditionnement): self
{
$this->conditionnement = $conditionnement;
return $this;
}
public function getProduit(): ?Products
{
return $this->produit;
}
public function setProduit(?Products $produit): self
{
$this->produit = $produit;
return $this;
}
public function getSousJacent(): ?SousJacent
{
return $this->sous_jacent;
}
public function setSousJacent(?SousJacent $sous_jacent): self
{
$this->sous_jacent = $sous_jacent;
return $this;
}
public function getUnite(): ?Unite
{
return $this->unite;
}
public function setUnite(?Unite $unite): self
{
$this->unite = $unite;
return $this;
}
}