src/Entity/GestionComerciale/CommandeFournisseur.php line 30

Open in your IDE?
  1. <?php
  2. namespace App\Entity\GestionComerciale;
  3. use App\Entity\Adresses\Adresse;
  4. use App\Entity\Articles\MouvementStock;
  5. use App\Entity\Export\Export;
  6. use App\Entity\Fournisseurs\Fournisseur;
  7. use App\Entity\Litiges\Litige;
  8. use App\Entity\Localisation\Zone;
  9. use App\Entity\Utilisateur\HistoriqueIntervention;
  10. use App\Entity\Utilisateur\Utilisateur;
  11. use DateTime;
  12. use Doctrine\Common\Collections\ArrayCollection;
  13. use Doctrine\Common\Collections\Collection;
  14. use Doctrine\ORM\Mapping as ORM;
  15. use Gedmo\Mapping\Annotation as Gedmo;
  16. use Symfony\Component\Validator\Constraints as Assert;
  17. use App\Annotations\SecuredEntity;
  18. /**
  19.  * Commande
  20.  *
  21.  * @ORM\Table("commerciale__commande_fournisseur")
  22.  * @ORM\Entity(repositoryClass="App\Repository\GestionComerciale\CommandeFournisseurRepository")
  23.  * @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
  24.  * @SecuredEntity(name="Commandes fournisseur", group="ACHAT")
  25.  */
  26. class CommandeFournisseur
  27. {
  28.     /**
  29.      * @ORM\Column(name="id", type="integer")
  30.      * @ORM\Id
  31.      * @ORM\GeneratedValue(strategy="AUTO")
  32.      */
  33.     private $id;
  34.     /**
  35.      * @ORM\OneToMany(targetEntity="App\Entity\Litiges\Litige", mappedBy="commandeFournisseur")
  36.      */
  37.     private $litiges;
  38.     /**
  39.      * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\RetourFournisseur", mappedBy="commandeFournisseur")
  40.      */
  41.     private $retoursFournisseurs;
  42.     /**
  43.     * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\ArticleCommande", cascade={"persist"}, mappedBy="commandeFournisseur")
  44.     */
  45.     private $articleCommande;
  46.     /**
  47.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\StatutCommandeFournisseur", inversedBy="commandes")
  48.      * @ORM\JoinColumn(nullable=true)
  49.      */
  50.     private $statutCommande;
  51.     /**
  52.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\StatutCommandeFournisseur", inversedBy="fabrications")
  53.      * @ORM\JoinColumn(nullable=true)
  54.      */
  55.     private $statutFabrication;
  56.     /**
  57.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\StatutFabrication", inversedBy="fabricationsMultiple")
  58.      * @ORM\JoinColumn(nullable=true)
  59.      */
  60.     private $statutFabricationMultiple;
  61.     /**
  62.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="commandes")
  63.      * @ORM\JoinColumn(nullable=true)
  64.      */
  65.     private $utilisateur;
  66.     /**
  67.      * @ORM\Column(name="date_approximative_reception", type="datetime", nullable=true)
  68.      */
  69.     private $dateApproximativeReception;
  70.     /**
  71.      * @ORM\Column(name="date", type="datetime", nullable=true)
  72.      */
  73.     private $date;
  74.     /**
  75.      * @ORM\Column(name="dateMaj", type="datetime", nullable=true)
  76.      * @Gedmo\Timestampable(on="update")
  77.      */
  78.     private $dateMaj;
  79.     /**
  80.      * @ORM\Column(name="dateSuppression", type="datetime", nullable=true)
  81.      */
  82.     private $dateSuppression;
  83.     /**
  84.      * @ORM\Column(name="reference", type="string", length=255, nullable=true)
  85.      */
  86.     private $reference;
  87.     /**
  88.      * @ORM\Column(name="numero_reference", type="integer",nullable=true)
  89.      */
  90.     private $numeroReference;
  91.     /**
  92.      * @ORM\Column(name="total_tva", type="float", nullable=true)
  93.      */
  94.     private $totalTva;
  95.     /**
  96.      * @ORM\Column(name="frais_port_supplementaire", type="float", nullable=true)
  97.      */
  98.     private $fraisPortSupplementaire;
  99.     /**
  100.      * @ORM\Column(name="total_frais_port", type="float", nullable=true)
  101.      */
  102.     private $totalFraisPort;
  103.     /**
  104.      * @ORM\Column(name="total_poids", type="float", nullable=true)
  105.      */
  106.     private $totalPoids;
  107.     /**
  108.      * @ORM\Column(name="total_ttc", type="float", nullable=true)
  109.      */
  110.     private $totalTtc;
  111.     /**
  112.      * @ORM\Column(name="total", type="float", nullable=true)
  113.      */
  114.     private $total;
  115.     /**
  116.     * @ORM\ManyToOne(targetEntity="App\Entity\Adresses\Adresse", inversedBy="commandeFournisseurLivraison")
  117.     * @ORM\JoinColumn(nullable=true)
  118.     */
  119.     private $adresseLivraison;
  120.     /**
  121.      * @ORM\ManyToOne(targetEntity="App\Entity\Localisation\Zone")
  122.          * @ORM\JoinColumn(nullable=true)
  123.      */
  124.     private $paysLivraison;
  125.     /**
  126.      * @ORM\ManyToOne(targetEntity="App\Entity\Localisation\Zone")
  127.          * @ORM\JoinColumn(nullable=true)
  128.      */
  129.     private $villeLivraison;
  130.     /**
  131.      * @ORM\ManyToOne(targetEntity="App\Entity\Localisation\Zone")
  132.          * @ORM\JoinColumn(nullable=true)
  133.      */
  134.     private $codePostalLivraison;
  135.     /**
  136.      * @ORM\Column(name="numero_livraison", type="string", length=255, nullable=true)
  137.      */
  138.     private $numeroLivraison;
  139.     /**
  140.      * @ORM\Column(name="rue_livraison", type="string", length=255, nullable=true)
  141.      */
  142.     private $rueLivraison;
  143.     /**
  144.      * @ORM\Column(name="complement_livraison", type="string", length=255, nullable=true)
  145.      */
  146.     private $complementLivraison;
  147.     /**
  148.      * @ORM\Column(name="complement_livraison_2", type="string", length=255, nullable=true)
  149.      */
  150.     private $complementLivraison2;
  151.     /**
  152.     * @ORM\ManyToOne(targetEntity="App\Entity\Adresses\Adresse", inversedBy="commandeFacturation")
  153.     * @ORM\JoinColumn(nullable=true)
  154.     */
  155.     private $adresseFacturation;
  156.     /**
  157.      * @ORM\ManyToOne(targetEntity="App\Entity\Localisation\Zone")
  158.      * @ORM\JoinColumn(nullable=true)
  159.      */
  160.     private $paysFacturation;
  161.     /**
  162.      * @ORM\ManyToOne(targetEntity="App\Entity\Localisation\Zone")
  163.          * @ORM\JoinColumn(nullable=true)
  164.      */
  165.     private $villeFacturation;
  166.     /**
  167.      * @ORM\ManyToOne(targetEntity="App\Entity\Localisation\Zone")
  168.          * @ORM\JoinColumn(nullable=true)
  169.      */
  170.     private $codePostalFacturation;
  171.     /**
  172.      * @ORM\Column(name="numero_facturation", type="string", length=255, nullable=true)
  173.      */
  174.     private $numeroFacturation;
  175.     /**
  176.      * @ORM\Column(name="rue_facturation", type="string", length=255, nullable=true)
  177.      */
  178.     private $rueFacturation;
  179.     /**
  180.      * @ORM\Column(name="complement_facturation", type="string", length=255, nullable=true)
  181.      */
  182.     private $complementFacturation;
  183.     /**
  184.      * @ORM\Column(name="complement_facturation_2", type="string", length=255, nullable=true)
  185.      */
  186.     private $complementFacturation2;
  187.     /**
  188.      * @ORM\ManyToOne(targetEntity="App\Entity\Fournisseurs\Fournisseur", inversedBy="commandesFournisseur")
  189.      * @Assert\NotBlank(message="Fournisseur obligatoire")
  190.      */
  191.     private $fournisseur;
  192.     /**
  193.      * @ORM\Column(name="fournisseur_libelle", type="string", length=255, nullable=true)
  194.      */
  195.     private $fournisseurLibelle;
  196.     /**
  197.      * @ORM\Column(name="fournisseur_numero_facture", type="string", length=255, nullable=true)
  198.      * @Assert\NotBlank(groups={"facture"}, message="N° de facture obligatoire")
  199.      */
  200.     private $fournisseurNumeroFacture;
  201.     /**
  202.      * @ORM\OneToMany(targetEntity="App\Entity\Articles\MouvementStock", mappedBy="commandeFournisseur")
  203.      */
  204.     private $mouvementStock;
  205.     /**
  206.      * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\Reception", mappedBy="commandeFournisseur")
  207.      */
  208.     private $receptions;
  209.     /**
  210.      * @ORM\Column(name="taux_change", type="float", nullable=true)
  211.      */
  212.     private $tauxChange;
  213.     /**
  214.      * @ORM\Column(name="commentaire", type="text", nullable=true)
  215.     */
  216.     private $commentaire;
  217.     /**
  218.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\Commande", inversedBy="commandesFournisseur")
  219.      * @ORM\JoinColumn(nullable=true)
  220.      */
  221.     private $commande;
  222.     /**
  223.      * @ORM\Column(name="date_transfert_compta", type="datetime", nullable=true)
  224.      */
  225.     private $dateTransfertCompta;
  226.     /**
  227.      * @ORM\Column(name="taux_tva_frais_port", type="float", nullable=true)
  228.      */
  229.     private $tauxTvaFraisPort;
  230.     /**
  231.      * @ORM\Column(name="total_frais_port_ttc", type="float", nullable=true)
  232.      */
  233.     private $totalFraisPortTtc;
  234.     /**
  235.      * @ORM\Column(name="total_tva_frais_port", type="float", nullable=true)
  236.      */
  237.     private $totalTvaFraisPort;
  238.     /**
  239.      * @ORM\Column(name="avecTaxe", type="boolean", nullable=true)
  240.      */
  241.     private $avecTaxe;
  242.     /**
  243.      * @ORM\Column(name="accuse_reception", type="boolean", nullable=true)
  244.      */
  245.     private $accuseReception;
  246.     /**
  247.      * @ORM\Column(name="date_accuse_reception", type="datetime", nullable=true)
  248.      */
  249.     private $dateAccuseReception;
  250.     /**
  251.      * @ORM\Column(name="transfert_compta", type="boolean", nullable=true)
  252.      */
  253.     private $transfertCompta;
  254.     /**
  255.     * @ORM\OneToMany(targetEntity="App\Entity\Articles\MouvementStock", mappedBy="factureFournisseur")
  256.     */
  257.     private $mouvementsStock;
  258.     /**
  259.      * @ORM\Column(name="arrondi_tva", type="float", nullable=true)
  260.      */
  261.     private $arrondiTva;
  262.     /**
  263.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\ModeReglement", cascade={"persist"})
  264.      * @Assert\NotBlank(message="Le mode de réglement est obligatoire")
  265.      */
  266.     private $modeReglement;
  267.     /**
  268.     * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\Fabrication", cascade={"persist"}, mappedBy="commandeFournisseur")
  269.     */
  270.     private $fabrications;
  271.     /**
  272.      * @ORM\OneToMany(targetEntity="App\Entity\Utilisateur\HistoriqueIntervention", mappedBy="commandeFournisseur")
  273.      */
  274.     private $historiqueIntervention;
  275.     /**
  276.      * @ORM\Column(name="fraix_fixe", type="float", nullable=true)
  277.      */
  278.     private $fraisFixe 0;
  279.     /**
  280.      * @ORM\Column(name="tva_frais_fixe", type="float", nullable=true)
  281.      */
  282.     private $tvaFraisFixe 0;
  283.     /**
  284.      * @ORM\Column(name="taux_escompte", type="float", nullable=true)
  285.      */
  286.     private $tauxEscompte;
  287.     /**
  288.      * @ORM\Column(name="escompte", type="float", nullable=true)
  289.      */
  290.     private $escompte;
  291.     /**
  292.      * @ORM\ManyToOne(targetEntity="App\Entity\Export\Export")
  293.      * @ORM\JoinColumn(nullable=true)
  294.      */
  295.     private $exportCompta;
  296.     /**
  297.      * @ORM\Column(name="frais_approche", type="float", nullable=true)
  298.      */
  299.     private $fraisApproche;
  300.     public function __construct()
  301.     {
  302.         $this->date                     = new Datetime();
  303.         $this->tauxChange               1;
  304.         $this->transfertCompta          0;
  305.         $this->fraisFixe                0;
  306.         $this->historiqueIntervention   = new ArrayCollection();
  307.         $this->retoursFournisseurs      = new ArrayCollection();
  308.         $this->litiges                  = New ArrayCollection();
  309.         $this->fabrications             = new ArrayCollection();
  310.         $this->mouvementsStock          = new ArrayCollection();
  311.         $this->receptions               = new ArrayCollection();
  312.         $this->mouvementStock           = new ArrayCollection();
  313.         $this->articleCommande          = new ArrayCollection();
  314.     }
  315.     public function getId()
  316.     {
  317.         return $this->id;
  318.     }
  319.     public function setId($id): Commande
  320.     {
  321.         $this->id=$id;
  322.         return $this;
  323.     }
  324.     public function setDateApproximativeReception(?DateTime $dateApproximativeReception): CommandeFournisseur
  325.     {
  326.         $this->dateApproximativeReception $dateApproximativeReception;
  327.         return $this;
  328.     }
  329.     public function getDateApproximativeReception(): ?DateTime
  330.     {
  331.         return $this->dateApproximativeReception;
  332.     }
  333.     public function setDate(?DateTime $date): CommandeFournisseur
  334.     {
  335.         $this->date $date;
  336.         return $this;
  337.     }
  338.     public function getDate(): ?DateTime
  339.     {
  340.         return $this->date;
  341.     }
  342.     public function setDateMaj(?DateTime $dateMaj): CommandeFournisseur
  343.     {
  344.         $this->dateMaj $dateMaj;
  345.         return $this;
  346.     }
  347.     public function getDateMaj(): ?DateTime
  348.     {
  349.         return $this->dateMaj;
  350.     }
  351.     public function setDateSuppression(?DateTime $dateSuppression): CommandeFournisseur
  352.     {
  353.         $this->dateSuppression $dateSuppression;
  354.         return $this;
  355.     }
  356.     public function getDateSuppression(): ?DateTime
  357.     {
  358.         return $this->dateSuppression;
  359.     }
  360.     public function setReference(?string $reference): CommandeFournisseur
  361.     {
  362.         $this->reference $reference;
  363.         return $this;
  364.     }
  365.     public function getReference(): ?string
  366.     {
  367.         return $this->reference;
  368.     }
  369.     public function setTotalTva(?float $totalTva): CommandeFournisseur
  370.     {
  371.         $this->totalTva $totalTva;
  372.         return $this;
  373.     }
  374.     public function getTotalTva(): ?float
  375.     {
  376.         return $this->totalTva;
  377.     }
  378.     public function setFraisPortSupplementaire(?float $fraisPortSupplementaire): CommandeFournisseur
  379.     {
  380.         $this->fraisPortSupplementaire $fraisPortSupplementaire;
  381.         return $this;
  382.     }
  383.     public function getFraisPortSupplementaire(): ?float
  384.     {
  385.         return $this->fraisPortSupplementaire;
  386.     }
  387.     public function setTotalFraisPort(?float $totalFraisPort): CommandeFournisseur
  388.     {
  389.         $this->totalFraisPort $totalFraisPort;
  390.         return $this;
  391.     }
  392.     public function getTotalFraisPort(): ?float
  393.     {
  394.         return $this->totalFraisPort;
  395.     }
  396.     public function setTotalPoids(?float $totalPoids): CommandeFournisseur
  397.     {
  398.         $this->totalPoids $totalPoids;
  399.         return $this;
  400.     }
  401.     public function getTotalPoids(): ?float
  402.     {
  403.         return $this->totalPoids;
  404.     }
  405.     public function setTotalTtc(?float $totalTtc): CommandeFournisseur
  406.     {
  407.         $this->totalTtc $totalTtc;
  408.         return $this;
  409.     }
  410.     public function getTotalTtc(): ?float
  411.     {
  412.         return $this->totalTtc;
  413.     }
  414.     public function setTotal(?float $total): CommandeFournisseur
  415.     {
  416.         $this->total $total;
  417.         return $this;
  418.     }
  419.     public function getTotal(): ?float
  420.     {
  421.         return $this->total;
  422.     }
  423.     public function setNumeroLivraison(?string $numeroLivraison): CommandeFournisseur
  424.     {
  425.         $this->numeroLivraison $numeroLivraison;
  426.         return $this;
  427.     }
  428.     public function getNumeroLivraison(): ?string
  429.     {
  430.         return $this->numeroLivraison;
  431.     }
  432.     public function setRueLivraison(?string $rueLivraison): CommandeFournisseur
  433.     {
  434.         $this->rueLivraison $rueLivraison;
  435.         return $this;
  436.     }
  437.     public function getRueLivraison(): ?string
  438.     {
  439.         return $this->rueLivraison;
  440.     }
  441.     public function setComplementLivraison(?string $complementLivraison): CommandeFournisseur
  442.     {
  443.         $this->complementLivraison $complementLivraison;
  444.         return $this;
  445.     }
  446.     public function getComplementLivraison(): ?string
  447.     {
  448.         return $this->complementLivraison;
  449.     }
  450.     public function setNumeroFacturation(?string $numeroFacturation): CommandeFournisseur
  451.     {
  452.         $this->numeroFacturation $numeroFacturation;
  453.         return $this;
  454.     }
  455.     public function getNumeroFacturation(): ?string
  456.     {
  457.         return $this->numeroFacturation;
  458.     }
  459.     public function setRueFacturation(?string $rueFacturation): CommandeFournisseur
  460.     {
  461.         $this->rueFacturation $rueFacturation;
  462.         return $this;
  463.     }
  464.     public function getRueFacturation(): ?string
  465.     {
  466.         return $this->rueFacturation;
  467.     }
  468.     public function setComplementFacturation(?string $complementFacturation): CommandeFournisseur
  469.     {
  470.         $this->complementFacturation $complementFacturation;
  471.         return $this;
  472.     }
  473.     public function getComplementFacturation(): ?string
  474.     {
  475.         return $this->complementFacturation;
  476.     }
  477.     public function addArticleCommande(ArticleCommande $articleCommande): CommandeFournisseur
  478.     {
  479.         $this->articleCommande[] = $articleCommande;
  480.         $articleCommande->setCommandeFournisseur($this);
  481.         return $this;
  482.     }
  483.     public function removeArticleCommande(ArticleCommande $articleCommande)
  484.     {
  485.         $this->articleCommande->removeElement($articleCommande);
  486.     }
  487.     public function getArticleCommande(): Collection
  488.     {
  489.         return $this->articleCommande;
  490.     }
  491.     public function setUtilisateur(?Utilisateur $utilisateur): CommandeFournisseur
  492.     {
  493.         $this->utilisateur $utilisateur;
  494.         return $this;
  495.     }
  496.     public function getUtilisateur(): ?Utilisateur
  497.     {
  498.         return $this->utilisateur;
  499.     }
  500.     public function setAdresseLivraison(?Adresse $adresseLivraison): CommandeFournisseur
  501.     {
  502.         $this->adresseLivraison $adresseLivraison;
  503.         return $this;
  504.     }
  505.     public function getAdresseLivraison(): ?Adresse
  506.     {
  507.         return $this->adresseLivraison;
  508.     }
  509.     public function setPaysLivraison(?Zone $paysLivraison): CommandeFournisseur
  510.     {
  511.         $this->paysLivraison $paysLivraison;
  512.         return $this;
  513.     }
  514.     public function getPaysLivraison(): ?Zone
  515.     {
  516.         return $this->paysLivraison;
  517.     }
  518.     public function setVilleLivraison(?Zone $villeLivraison): CommandeFournisseur
  519.     {
  520.         $this->villeLivraison $villeLivraison;
  521.         return $this;
  522.     }
  523.     public function getVilleLivraison(): ?Zone
  524.     {
  525.         return $this->villeLivraison;
  526.     }
  527.     public function setCodePostalLivraison(?Zone $codePostalLivraison): CommandeFournisseur
  528.     {
  529.         $this->codePostalLivraison $codePostalLivraison;
  530.         return $this;
  531.     }
  532.     public function getCodePostalLivraison(): ?Zone
  533.     {
  534.         return $this->codePostalLivraison;
  535.     }
  536.     public function setAdresseFacturation(?Adresse $adresseFacturation): CommandeFournisseur
  537.     {
  538.         $this->adresseFacturation $adresseFacturation;
  539.         return $this;
  540.     }
  541.     public function getAdresseFacturation(): ?Adresse
  542.     {
  543.         return $this->adresseFacturation;
  544.     }
  545.     public function setPaysFacturation(?Zone $paysFacturation): CommandeFournisseur
  546.     {
  547.         $this->paysFacturation $paysFacturation;
  548.         return $this;
  549.     }
  550.     public function getPaysFacturation(): ?Zone
  551.     {
  552.         return $this->paysFacturation;
  553.     }
  554.     public function setVilleFacturation(?Zone $villeFacturation): CommandeFournisseur
  555.     {
  556.         $this->villeFacturation $villeFacturation;
  557.         return $this;
  558.     }
  559.     public function getVilleFacturation(): ?Zone
  560.     {
  561.         return $this->villeFacturation;
  562.     }
  563.     public function setCodePostalFacturation(?Zone $codePostalFacturation): CommandeFournisseur
  564.     {
  565.         $this->codePostalFacturation $codePostalFacturation;
  566.         return $this;
  567.     }
  568.     public function getCodePostalFacturation(): ?Zone
  569.     {
  570.         return $this->codePostalFacturation;
  571.     }
  572.     public function setFournisseur(?Fournisseur $fournisseur): CommandeFournisseur
  573.     {
  574.         $this->fournisseur $fournisseur;
  575.         return $this;
  576.     }
  577.     public function getFournisseur(): ?Fournisseur
  578.     {
  579.         return $this->fournisseur;
  580.     }
  581.     public function setStatutCommande(?StatutCommandeFournisseur $statutCommande): CommandeFournisseur
  582.     {
  583.         $this->statutCommande $statutCommande;
  584.         return $this;
  585.     }
  586.     public function getStatutCommande(): ?StatutCommandeFournisseur
  587.     {
  588.         return $this->statutCommande;
  589.     }
  590.     public function addMouvementStock(MouvementStock $mouvementStock): CommandeFournisseur
  591.     {
  592.         $this->mouvementStock[] = $mouvementStock;
  593.         return $this;
  594.     }
  595.     public function removeMouvementStock(MouvementStock $mouvementStock)
  596.     {
  597.         $this->mouvementStock->removeElement($mouvementStock);
  598.     }
  599.     public function getMouvementStock(): Collection
  600.     {
  601.         return $this->mouvementStock;
  602.     }
  603.     public function setTauxChange(?float $tauxChange): CommandeFournisseur
  604.     {
  605.         $this->tauxChange $tauxChange;
  606.         return $this;
  607.     }
  608.     public function getTauxChange(): ?float
  609.     {
  610.         return $this->tauxChange;
  611.     }
  612.     public function setCommentaire(?string $commentaire): CommandeFournisseur
  613.     {
  614.         $this->commentaire $commentaire;
  615.         return $this;
  616.     }
  617.     public function getCommentaire(): ?string
  618.     {
  619.         return $this->commentaire;
  620.     }
  621.     public function setCommande(?Commande $commande): CommandeFournisseur
  622.     {
  623.         $this->commande $commande;
  624.         return $this;
  625.     }
  626.     public function getCommande(): ?Commande
  627.     {
  628.         return $this->commande;
  629.     }
  630.     public function setDateTransfertCompta(?DateTime $dateTransfertCompta): CommandeFournisseur
  631.     {
  632.         $this->dateTransfertCompta $dateTransfertCompta;
  633.         return $this;
  634.     }
  635.     public function getDateTransfertCompta(): ?DateTime
  636.     {
  637.         return $this->dateTransfertCompta;
  638.     }
  639.     public function setTauxTvaFraisPort(?float $tauxTvaFraisPort): CommandeFournisseur
  640.     {
  641.         $this->tauxTvaFraisPort $tauxTvaFraisPort;
  642.         return $this;
  643.     }
  644.     public function getTauxTvaFraisPort(): ?float
  645.     {
  646.         return $this->tauxTvaFraisPort;
  647.     }
  648.     public function setTotalFraisPortTtc(?float $totalFraisPortTtc): CommandeFournisseur
  649.     {
  650.         $this->totalFraisPortTtc $totalFraisPortTtc;
  651.         return $this;
  652.     }
  653.     public function getTotalFraisPortTtc(): ?float
  654.     {
  655.         return $this->totalFraisPortTtc;
  656.     }
  657.     public function setTotalTvaFraisPort(?float $totalTvaFraisPort): CommandeFournisseur
  658.     {
  659.         $this->totalTvaFraisPort $totalTvaFraisPort;
  660.         return $this;
  661.     }
  662.     public function getTotalTvaFraisPort(): ?float
  663.     {
  664.         return $this->totalTvaFraisPort;
  665.     }
  666.     public function setAvecTaxe(?bool $avecTaxe): CommandeFournisseur
  667.     {
  668.         $this->avecTaxe $avecTaxe;
  669.         return $this;
  670.     }
  671.     public function getAvecTaxe(): ?bool
  672.     {
  673.         return $this->avecTaxe;
  674.     }
  675.     public function setTransfertCompta(?bool $transfertCompta): CommandeFournisseur
  676.     {
  677.         $this->transfertCompta $transfertCompta;
  678.         return $this;
  679.     }
  680.     public function getTransfertCompta(): ?bool
  681.     {
  682.         return $this->transfertCompta;
  683.     }
  684.     public function addReception(MouvementStock $reception): CommandeFournisseur
  685.     {
  686.         $this->receptions[] = $reception;
  687.         return $this;
  688.     }
  689.     public function removeReception(MouvementStock $reception)
  690.     {
  691.         $this->receptions->removeElement($reception);
  692.     }
  693.     public function getReceptions(): Collection
  694.     {
  695.         return $this->receptions;
  696.     }
  697.     public function setFournisseurLibelle(?string $fournisseurLibelle): CommandeFournisseur
  698.     {
  699.         $this->fournisseurLibelle $fournisseurLibelle;
  700.         return $this;
  701.     }
  702.     public function getFournisseurLibelle(): ?string
  703.     {
  704.         return $this->fournisseurLibelle;
  705.     }
  706.     public function setFournisseurNumeroFacture(?string $fournisseurNumeroFacture): CommandeFournisseur
  707.     {
  708.         $this->fournisseurNumeroFacture $fournisseurNumeroFacture;
  709.         return $this;
  710.     }
  711.     public function getFournisseurNumeroFacture(): ?string
  712.     {
  713.         return $this->fournisseurNumeroFacture;
  714.     }
  715.     public function addMouvementsStock(MouvementStock $mouvementsStock): CommandeFournisseur
  716.     {
  717.         $this->mouvementsStock[] = $mouvementsStock;
  718.         return $this;
  719.     }
  720.     public function removeMouvementsStock(MouvementStock $mouvementsStock)
  721.     {
  722.         $this->mouvementsStock->removeElement($mouvementsStock);
  723.     }
  724.     public function getMouvementsStock(): Collection
  725.     {
  726.         return $this->mouvementsStock;
  727.     }
  728.     public function setArrondiTVA(?float $arrondiTva): CommandeFournisseur
  729.     {
  730.         $this->arrondiTva $arrondiTva;
  731.         return $this;
  732.     }
  733.     public function getArrondiTva(): ?float
  734.     {
  735.         return $this->arrondiTva;
  736.     }
  737.     public function setModeReglement(?ModeReglement $modeReglement): CommandeFournisseur
  738.     {
  739.         $this->modeReglement $modeReglement;
  740.         return $this;
  741.     }
  742.     public function getModeReglement(): ?ModeReglement
  743.     {
  744.         return $this->modeReglement;
  745.     }
  746.     public function setNumeroReference(?int $numeroReference): CommandeFournisseur
  747.     {
  748.         $this->numeroReference $numeroReference;
  749.         return $this;
  750.     }
  751.     public function getNumeroReference(): ?int
  752.     {
  753.         return $this->numeroReference;
  754.     }
  755.     public function addFabrication(Fabrication $fabrication): CommandeFournisseur
  756.     {
  757.         $this->fabrications[] = $fabrication;
  758.         $fabrication->setCommandeFournisseur($this);
  759.         return $this;
  760.     }
  761.     public function removeFabrication(Fabrication $fabrication)
  762.     {
  763.         $fabrication->setCommandeFournisseur(null);
  764.         //$this->fabrications->removeElement($fabrication);
  765.     }
  766.     public function getFabrications(): Collection
  767.     {
  768.         return $this->fabrications;
  769.     }
  770.     public function setFraisFixe(?float $fraisFixe): CommandeFournisseur
  771.     {
  772.         $this->fraisFixe $fraisFixe;
  773.         return $this;
  774.     }
  775.     public function getFraisFixe(): ?float
  776.     {
  777.         return $this->fraisFixe;
  778.     }
  779.     public function setComplementLivraison2(?string $complementLivraison2): CommandeFournisseur
  780.     {
  781.         $this->complementLivraison2 $complementLivraison2;
  782.         return $this;
  783.     }
  784.     public function getComplementLivraison2(): ?string
  785.     {
  786.         return $this->complementLivraison2;
  787.     }
  788.     public function setComplementFacturation2(?string $complementFacturation2): CommandeFournisseur
  789.     {
  790.         $this->complementFacturation2 $complementFacturation2;
  791.         return $this;
  792.     }
  793.     public function getComplementFacturation2(): ?string
  794.     {
  795.         return $this->complementFacturation2;
  796.     }
  797.     public function addLitige(Litige $litige): CommandeFournisseur
  798.     {
  799.         $this->litiges[] = $litige;
  800.         return $this;
  801.     }
  802.     public function removeLitige(Litige $litige)
  803.     {
  804.         $this->litiges->removeElement($litige);
  805.     }
  806.     public function getLitiges(): Collection
  807.     {
  808.         return $this->litiges;
  809.     }
  810.     public function setAccuseReception(?bool $accuseReception): CommandeFournisseur
  811.     {
  812.         $this->accuseReception $accuseReception;
  813.         if($accuseReception)
  814.             $this->setDateAccuseReception(new Datetime);
  815.         else
  816.             $this->setDateAccuseReception(NULL);
  817.         return $this;
  818.     }
  819.     public function getAccuseReception(): ?bool
  820.     {
  821.         return $this->accuseReception;
  822.     }
  823.     public function setDateAccuseReception(?DateTime $dateAccuseReception): CommandeFournisseur
  824.     {
  825.         $this->dateAccuseReception $dateAccuseReception;
  826.         return $this;
  827.     }
  828.     public function getDateAccuseReception(): ?DateTime
  829.     {
  830.         return $this->dateAccuseReception;
  831.     }
  832.     public function addRetoursFournisseur(RetourFournisseur $retoursFournisseur): CommandeFournisseur
  833.     {
  834.         $this->retoursFournisseurs[] = $retoursFournisseur;
  835.         return $this;
  836.     }
  837.     public function removeRetoursFournisseur(RetourFournisseur $retoursFournisseur)
  838.     {
  839.         $this->retoursFournisseurs->removeElement($retoursFournisseur);
  840.     }
  841.     public function getRetoursFournisseurs(): Collection
  842.     {
  843.         return $this->retoursFournisseurs;
  844.     }
  845.     public function addHistoriqueIntervention(HistoriqueIntervention $historiqueIntervention): CommandeFournisseur
  846.     {
  847.         $this->historiqueIntervention[] = $historiqueIntervention;
  848.         return $this;
  849.     }
  850.     public function removeHistoriqueIntervention(HistoriqueIntervention $historiqueIntervention)
  851.     {
  852.         $this->historiqueIntervention->removeElement($historiqueIntervention);
  853.     }
  854.     public function getHistoriqueIntervention(): Collection
  855.     {
  856.         return $this->historiqueIntervention;
  857.     }
  858.     public function setTvaFraisFixe(?float $tvaFraisFixe): CommandeFournisseur
  859.     {
  860.         $this->tvaFraisFixe $tvaFraisFixe;
  861.         return $this;
  862.     }
  863.     public function getTvaFraisFixe(): ?float
  864.     {
  865.         return $this->tvaFraisFixe;
  866.     }
  867.     public function setTauxEscompte(?float $tauxEscompte): CommandeFournisseur
  868.     {
  869.         $this->tauxEscompte $tauxEscompte;
  870.         return $this;
  871.     }
  872.     public function getTauxEscompte(): ?float
  873.     {
  874.         return $this->tauxEscompte;
  875.     }
  876.     public function setEscompte(?float $escompte): CommandeFournisseur
  877.     {
  878.         $this->escompte $escompte;
  879.         return $this;
  880.     }
  881.     public function getEscompte(): ?float
  882.     {
  883.         return $this->escompte;
  884.     }
  885.     public function setExportCompta(?Export $exportCompta): CommandeFournisseur
  886.     {
  887.         $this->exportCompta $exportCompta;
  888.         return $this;
  889.     }
  890.     public function getExportCompta(): ?Export
  891.     {
  892.         return $this->exportCompta;
  893.     }
  894.     public function setFraisApproche(?float $fraisApproche): CommandeFournisseur
  895.     {
  896.         $this->fraisApproche $fraisApproche;
  897.         return $this;
  898.     }
  899.     public function getFraisApproche(): ?float
  900.     {
  901.         return $this->fraisApproche;
  902.     }
  903.     public function getStatutFabrication(): ?StatutFabrication
  904.     {
  905.         return $this->statutFabrication;
  906.     }
  907.     public function setStatutFabrication(?StatutFabrication $statutFabrication): CommandeFournisseur
  908.     {
  909.         $this->statutFabrication $statutFabrication;
  910.         return $this;
  911.     }
  912.     public function getStatutFabricationMultiple(): ?StatutFabrication
  913.     {
  914.         return $this->statutFabricationMultiple;
  915.     }
  916.     public function setStatutFabricationMultiple(?StatutFabrication $statutFabricationMultiple): ?CommandeFournisseur
  917.     {
  918.         $this->statutFabricationMultiple $statutFabricationMultiple;
  919.         return $this;
  920.     }
  921. }