<?php
namespace App\Entity;
use App\Repository\FicheAvoirRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FicheAvoirRepository::class)]
class FicheAvoir
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_demande;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_derniere_fermeture;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_statut_qualite;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_reception;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'ficheAvoirsFerme')]
private $user_avoir_ferme;
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'ficheAvoirsQualite')]
private $user_qualite;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $numero_avoir;
#[ORM\ManyToOne(targetEntity: StatutAvoirAchat::class, inversedBy: 'ficheAvoirs')]
private $statut_achat;
#[ORM\ManyToOne(targetEntity: StatutAvoirQualite::class, inversedBy: 'ficheAvoirs')]
private $statut_qualite;
#[ORM\ManyToOne(targetEntity: Atelier::class, inversedBy: 'ficheAvoirs')]
private $atelier;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $numero_lancement;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $reference;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $coloris;
#[ORM\Column(type: 'float', nullable: true)]
private $quantite_reception;
#[ORM\Column(type: 'float', nullable: true)]
private $quantite_non_conforme;
#[ORM\Column(type: 'text', nullable: true)]
private $commentaires_achat;
#[ORM\Column(type: 'text', nullable: true)]
private $commentaires_qualite;
#[ORM\Column(type: 'float', nullable: true)]
private $temps_operation;
#[ORM\Column(type: 'float', nullable: true)]
private $cout_matiere;
#[ORM\Column(type: 'float', nullable: true)]
private $cout_autre;
#[ORM\Column(type: 'text', nullable: true)]
private $commentaires_autre;
#[ORM\Column(type: 'float', nullable: true)]
private $cout_transport;
#[ORM\Column(type: 'float', nullable: true)]
private $remise;
#[ORM\Column(type: 'float', nullable: true)]
private $montant_total;
#[ORM\Column(type: 'float', nullable: true)]
private $montant_fige;
#[ORM\Column(type: 'float', nullable: true)]
private $cout_article;
#[ORM\Column(type: 'boolean', nullable: true)]
private $bool_article;
#[ORM\Column(type: 'text', nullable: true)]
private $causes;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $numero_facture;
#[ORM\Column(type: 'datetime', nullable: true)]
private $date_statut_achat;
public function getId(): ?int
{
return $this->id;
}
public function getDateDemande(): ?\DateTimeInterface
{
return $this->date_demande;
}
public function setDateDemande(?\DateTimeInterface $date_demande): self
{
$this->date_demande = $date_demande;
return $this;
}
public function getDateDerniereFermeture(): ?\DateTimeInterface
{
return $this->date_derniere_fermeture;
}
public function setDateDerniereFermeture(?\DateTimeInterface $date_derniere_fermeture): self
{
$this->date_derniere_fermeture = $date_derniere_fermeture;
return $this;
}
public function getDateStatutQualite(): ?\DateTimeInterface
{
return $this->date_statut_qualite;
}
public function setDateStatutQualite(?\DateTimeInterface $date_statut_qualite): self
{
$this->date_statut_qualite = $date_statut_qualite;
return $this;
}
public function getDateReception(): ?\DateTimeInterface
{
return $this->date_reception;
}
public function setDateReception(?\DateTimeInterface $date_reception): self
{
$this->date_reception = $date_reception;
return $this;
}
public function getUserAvoirFerme(): ?User
{
return $this->user_avoir_ferme;
}
public function setUserAvoirFerme(?User $user_avoir_ferme): self
{
$this->user_avoir_ferme = $user_avoir_ferme;
return $this;
}
public function getUserQualite(): ?User
{
return $this->user_qualite;
}
public function setUserQualite(?User $user_qualite): self
{
$this->user_qualite = $user_qualite;
return $this;
}
public function getNumeroAvoir(): ?string
{
return $this->numero_avoir;
}
public function setNumeroAvoir(?string $numero_avoir): self
{
$this->numero_avoir = $numero_avoir;
return $this;
}
public function getStatutAchat(): ?StatutAvoirAchat
{
return $this->statut_achat;
}
public function setStatutAchat(?StatutAvoirAchat $statut_achat): self
{
$this->statut_achat = $statut_achat;
return $this;
}
public function getStatutQualite(): ?StatutAvoirQualite
{
return $this->statut_qualite;
}
public function setStatutQualite(?StatutAvoirQualite $statut_qualite): self
{
$this->statut_qualite = $statut_qualite;
return $this;
}
public function getAtelier(): ?Atelier
{
return $this->atelier;
}
public function setAtelier(?Atelier $atelier): self
{
$this->atelier = $atelier;
return $this;
}
public function getNumeroLancement(): ?string
{
return $this->numero_lancement;
}
public function setNumeroLancement(?string $numero_lancement): self
{
$this->numero_lancement = $numero_lancement;
return $this;
}
public function getReference(): ?string
{
return $this->reference;
}
public function setReference(?string $reference): self
{
$this->reference = $reference;
return $this;
}
public function getColoris(): ?string
{
return $this->coloris;
}
public function setColoris(?string $coloris): self
{
$this->coloris = $coloris;
return $this;
}
public function getQuantiteReception(): ?float
{
return $this->quantite_reception;
}
public function setQuantiteReception(?float $quantite_reception): self
{
$this->quantite_reception = $quantite_reception;
return $this;
}
public function getQuantiteNonConforme(): ?float
{
return $this->quantite_non_conforme;
}
public function setQuantiteNonConforme(?float $quantite_non_conforme): self
{
$this->quantite_non_conforme = $quantite_non_conforme;
return $this;
}
public function getCommentairesAchat(): ?string
{
return $this->commentaires_achat;
}
public function setCommentairesAchat(?string $commentaires_achat): self
{
$this->commentaires_achat = $commentaires_achat;
return $this;
}
public function getCommentairesQualite(): ?string
{
return $this->commentaires_qualite;
}
public function setCommentairesQualite(?string $commentaires_qualite): self
{
$this->commentaires_qualite = $commentaires_qualite;
return $this;
}
public function getTempsOperation(): ?float
{
return $this->temps_operation;
}
public function setTempsOperation(?float $temps_operation): self
{
$this->temps_operation = $temps_operation;
return $this;
}
public function getCoutMatiere(): ?float
{
return $this->cout_matiere;
}
public function setCoutMatiere(?float $cout_matiere): self
{
$this->cout_matiere = $cout_matiere;
return $this;
}
public function getCoutAutre(): ?float
{
return $this->cout_autre;
}
public function setCoutAutre(?float $cout_autre): self
{
$this->cout_autre = $cout_autre;
return $this;
}
public function getCommentairesAutre(): ?string
{
return $this->commentaires_autre;
}
public function setCommentairesAutre(?string $commentaires_autre): self
{
$this->commentaires_autre = $commentaires_autre;
return $this;
}
public function getCoutTransport(): ?float
{
return $this->cout_transport;
}
public function setCoutTransport(?float $cout_transport): self
{
$this->cout_transport = $cout_transport;
return $this;
}
public function getRemise(): ?float
{
return $this->remise;
}
public function setRemise(?float $remise): self
{
$this->remise = $remise;
return $this;
}
public function getMontantTotal(): ?float
{
return $this->montant_total;
}
public function setMontantTotal(?float $montant_total): self
{
$this->montant_total = $montant_total;
return $this;
}
public function getMontantFige(): ?float
{
return $this->montant_fige;
}
public function setMontantFige(?float $montant_fige): self
{
$this->montant_fige = $montant_fige;
return $this;
}
public function getCoutArticle(): ?float
{
return $this->cout_article;
}
public function setCoutArticle(?float $cout_article): self
{
$this->cout_article = $cout_article;
return $this;
}
public function getBoolArticle(): ?bool
{
return $this->bool_article;
}
public function setBoolArticle(?bool $bool_article): self
{
$this->bool_article = $bool_article;
return $this;
}
public function getCauses(): ?string
{
return $this->causes;
}
public function setCauses(?string $causes): self
{
$this->causes = $causes;
return $this;
}
public function getNumeroFacture(): ?string
{
return $this->numero_facture;
}
public function setNumeroFacture(?string $numero_facture): self
{
$this->numero_facture = $numero_facture;
return $this;
}
public function getDateStatutAchat(): ?\DateTimeInterface
{
return $this->date_statut_achat;
}
public function setDateStatutAchat(?\DateTimeInterface $date_statut_achat): self
{
$this->date_statut_achat = $date_statut_achat;
return $this;
}
}