src/Entity/GestionComerciale/ArticleCommande.php line 35

Open in your IDE?
  1. <?php
  2. namespace App\Entity\GestionComerciale;
  3. use App\Entity\Articles\Article;
  4. use App\Entity\Articles\ArticleAssocie;
  5. use App\Entity\Articles\ArticleComposant;
  6. use App\Entity\Articles\ConditionAchat;
  7. use App\Entity\Articles\MouvementStock;
  8. use App\Entity\Articles\NumeroSerie;
  9. use App\Entity\Ged\Fichier;
  10. use App\Entity\Litiges\Litige;
  11. use App\Entity\MarketPlace\ArticleMarketPlace;
  12. use App\Entity\Taxes\Taxe;
  13. use App\Entity\Transporteurs\Transporteur;
  14. use App\Entity\Utilisateur\Intervention;
  15. use DateTime;
  16. use Doctrine\Common\Collections\ArrayCollection;
  17. use Doctrine\Common\Collections\Collection;
  18. use Doctrine\ORM\Mapping as ORM;
  19. use Gedmo\Mapping\Annotation as Gedmo;
  20. use Symfony\Component\Validator\Constraints as Assert;
  21. use App\Entity\Remises\Remise;
  22. use Symfony\Component\Validator\Constraints\IsTrue;
  23. /**
  24.  * ArticleCommande
  25.  *
  26.  * @ORM\Table("commerciale__article_commande",indexes={
  27.  *      @ORM\Index(name="etiquette_idx", columns={"etiquettes"})
  28.  * })
  29.  * @ORM\Entity(repositoryClass="App\Repository\GestionComerciale\ArticleCommandeRepository")
  30.  */
  31. class ArticleCommande
  32. {
  33.     /**
  34.      * @ORM\Column(name="id", type="integer")
  35.      * @ORM\Id
  36.      * @ORM\GeneratedValue(strategy="AUTO")
  37.      */
  38.     private $id;
  39.     /**
  40.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\Article", inversedBy="articleCommande")
  41.      * @ORM\JoinColumn(nullable=true)
  42.      */
  43.     private $article;
  44.     /**
  45.      * @ORM\Column(name="seller_product_id", type="string", nullable=true)
  46.      */
  47.     private $seller_product_id;
  48.     /**
  49.      * @ORM\ManyToOne(targetEntity="App\Entity\Transporteurs\Transporteur")
  50.      * @ORM\JoinColumn(nullable=true)
  51.      */
  52.     private $transporteur;
  53.     /**
  54.      * @ORM\OneToMany(targetEntity="App\Entity\Utilisateur\Intervention", mappedBy="articleCommande")
  55.      * @ORM\JoinColumn(nullable=true)
  56.      */
  57.     private $interventions;
  58.     /**
  59.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\ArticleComposant", inversedBy="articlesCommande")
  60.      * @ORM\JoinColumn(nullable=true)
  61.      */
  62.     private $articleComposant;
  63.     /**
  64.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\ArticleAssocie", inversedBy="articlesCommande")
  65.      * @ORM\JoinColumn(nullable=true)
  66.      */
  67.     private $articleAssocie;
  68.     /**
  69.      * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\ArticleCommandeEmplacement", cascade={"persist","remove"}, mappedBy="articleCommande")
  70.      */
  71.     private $articleCommandeEmplacement;
  72.     /**
  73.      * @ORM\OneToMany(targetEntity="App\Entity\Articles\NumeroSerie", cascade={"remove"} ,mappedBy="articleCommande")
  74.      */
  75.     private $numeroSerie;
  76.     /**
  77.      * @ORM\ManyToOne(targetEntity="App\Entity\Remises\Remise", inversedBy="articleCommande")
  78.      * @ORM\JoinColumn(nullable=true)
  79.      */
  80.     private $remiseInitial;
  81.     /**
  82.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\Commande", cascade={"persist"}, inversedBy="articleCommande")
  83.      * @ORM\JoinColumn(nullable=true)
  84.      */
  85.     private $commande;
  86.     /**
  87.      * @ORM\ManyToOne(targetEntity="App\Entity\Litiges\Litige", cascade={"persist"}, inversedBy="articleCommande")
  88.      * @ORM\JoinColumn(nullable=true)
  89.      */
  90.     private $litige;
  91.     /**
  92.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\CommandeFournisseur", inversedBy="articleCommande")
  93.      * @ORM\JoinColumn(nullable=true)
  94.      */
  95.     private $commandeFournisseur;
  96.     /**
  97.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\Fabrication", inversedBy="articleCommande")
  98.      * @ORM\JoinColumn(nullable=true)
  99.      */
  100.     private $fabrication;
  101.     /**
  102.      * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\Fabrication", mappedBy="articleCommandeCommandeClient")
  103.      */
  104.     private $fabricationArticleCommandeCommandeClient;
  105.     /**
  106.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\FabricationMultiple", inversedBy="articleCommandes")
  107.      * @ORM\JoinColumn(nullable=true)
  108.      */
  109.     private $fabricationMultiple;
  110.     /**
  111.      * @ORM\Column(name="libelle", type="string", length=255)
  112.      * @Assert\NotBlank(message="Libelle obligatoire")
  113.      */
  114.     private $libelle;
  115.     /**
  116.      * @ORM\Column(name="libelle_secondaire", type="string", length=255, nullable=true)
  117.      */
  118.     private $libelleSecondaire;
  119.     /**
  120.      * @ORM\Column(name="numero_serie", type="string", length=255, nullable=true)
  121.      */
  122.     private $numSerie;
  123.     /**
  124.      * @ORM\Column(name="commentaire", type="text", nullable=true)
  125.      */
  126.     private $commentaire;
  127.     /**
  128.      * @ORM\Column(name="commentaire_prive", type="text", nullable=true)
  129.      */
  130.     private $commentairePrive;
  131.     /**
  132.      * @ORM\Column(name="commentaire_suppl", type="text", nullable=true)
  133.      */
  134.     private $commentaireSuppl;
  135.     /**
  136.      * @ORM\Column(name="date", type="datetime")
  137.      */
  138.     private $date;
  139.     /**
  140.      * @ORM\Column(name="date_supression", type="datetime", nullable=true)
  141.      */
  142.     private $dateSuppression;
  143.     /**
  144.      * @ORM\Column(name="date_maj", type="datetime", nullable=true)
  145.      * @Gedmo\Timestampable(on="update")
  146.      */
  147.     private $dateMaj;
  148.     /**
  149.      * @ORM\Column(name="date_maj_prix", type="datetime", nullable=true)
  150.      */
  151.     private $dateMajPrix;
  152.     /**
  153.      * @ORM\Column(name="date_priorisation", type="datetime", nullable=true)
  154.      */
  155.     private $datePriorisation;
  156.     /**
  157.      * @ORM\Column(name="reference", type="string", length=255, nullable=true)
  158.      */
  159.     private $reference;
  160.     /**
  161.      * @ORM\Column(name="reference_client", type="string", length=255, nullable=true)
  162.      */
  163.     private $referenceClient;
  164.     /**
  165.      * @ORM\Column(name="reference_fournisseur", type="string", length=255, nullable=true)
  166.      */
  167.     private $referenceFournisseur;
  168.     /**
  169.      * @ORM\Column(name="prix_base", type="float", nullable=true)
  170.      * @Assert\NotBlank(message="Prix de base obligatoire")
  171.      */
  172.     private $prixBase;
  173.     /**
  174.      * @ORM\Column(name="prix_unitaire_ttc", type="float", nullable=true)
  175.      */
  176.     private $prixUnitaireTtc;
  177.     /**
  178.      * @ORM\Column(name="description", type="text", nullable=true)
  179.      */
  180.     private $description;
  181.     /**
  182.      * @ORM\Column(name="description_courte", type="text", nullable=true)
  183.      */
  184.     private $descriptionCourte;
  185.     /**
  186.      * @ORM\Column(name="largeur", type="float", nullable=true)
  187.      */
  188.     private $largeur;
  189.     /**
  190.      * @ORM\Column(name="profondeur", type="float", nullable=true)
  191.      */
  192.     private $profondeur;
  193.     /**
  194.      * @ORM\Column(name="hauteur", type="float", nullable=true)
  195.      */
  196.     private $hauteur;
  197.     /**
  198.      * @ORM\Column(name="poids", type="float", nullable=true)
  199.      */
  200.     private $poids;
  201.     /**
  202.      * @ORM\Column(name="a_consigner", type="boolean", nullable=true)
  203.      */
  204.     private $aConsigner;
  205.     /**
  206.      * @ORM\Column(name="forcer", type="boolean", nullable=true)
  207.      */
  208.     private $force;
  209.     /**
  210.      * @ORM\Column(name="bloquer", type="boolean", nullable=true, options={"default" : 0})
  211.      */
  212.     private $bloquer;
  213.     /**
  214.      * @ORM\Column(name="consigne", type="boolean", nullable=true)
  215.      */
  216.     private $consigne;
  217.     /**
  218.      * @ORM\Column(name="tva_achat", type="float", nullable=true)
  219.      */
  220.     private $tvaAchat;
  221.     /**
  222.      * @ORM\Column(name="tva_vente", type="float", nullable=true)
  223.      */
  224.     private $tvaVente;
  225.     /**
  226.      * @ORM\Column(name="quantite", type="float")
  227.      */
  228.     private $quantite;
  229.     /**
  230.      * @ORM\Column(name="coefficient_conditionnement", type="float", nullable=true)
  231.      */
  232.     private $coefficientConditionnement;
  233.     /**
  234.      * @ORM\Column(name="quantite_dispo", type="float", nullable=true)
  235.      */
  236.     private $quantiteDispo;
  237.     /**
  238.      * @ORM\Column(name="quantite_deja_preparee_simplifie", type="float", nullable=true)
  239.      */
  240.     private $quantiteDejaPrepareeSimplifie;
  241.     /**
  242.      * @ORM\Column(name="quantite_deja_preparee", type="float", nullable=true)
  243.      */
  244.     private $quantiteDejaPreparee;
  245.     /**
  246.      * @ORM\Column(name="maj_quantite_deja_preparee", type="boolean", nullable=true)
  247.      */
  248.     private $majQuantiteDejaPreparee;
  249.     /**
  250.      * @ORM\Column(name="ral_client", type="float", nullable=true)
  251.      */
  252.     private $ralClient;
  253.     /**
  254.      * @ORM\Column(name="ral", type="float", nullable=true)
  255.      */
  256.     private $ral;
  257.     /**
  258.      * @ORM\Column(name="rar", type="float", nullable=true)
  259.      */
  260.     private $rar;
  261.     /**
  262.      * @ORM\Column(name="quantite_reprise", type="float", nullable=true)
  263.      */
  264.     private $quantiteReprise;
  265.     /**
  266.      * @ORM\Column(name="remise", type="float", nullable=true)
  267.      */
  268.     private $remise;
  269.     /**
  270.      * @ORM\Column(name="remise_supplementaire", type="float", nullable=true)
  271.      */
  272.     private $remiseSupplementaire;
  273.     /**
  274.      * @ORM\Column(name="position", type="integer", nullable=true)
  275.      */
  276.     private $position;
  277.     /**
  278.      * @var float
  279.      *
  280.      */
  281.     private $prixRemise;//Prix remisé
  282.     /**
  283.      * @var float
  284.      *
  285.      */
  286.     private $marge;
  287.     /**
  288.      * @var float
  289.      *
  290.      * @ORM\Column(name="total_ht", type="float", nullable=true)
  291.      */
  292.     private $totalHt;
  293.     /**
  294.      * @var float
  295.      *
  296.      * @ORM\Column(name="total_with_tax", type="float", nullable=true)
  297.      */
  298.     private $totalWithTax;
  299.     /**
  300.      * @var float
  301.      */
  302.     private $totalTTC;
  303.     /**
  304.      * @ORM\Column(name="tva", type="float", nullable=true)
  305.      */
  306.     private $tva;
  307.     /**
  308.      * @ORM\ManyToOne(targetEntity="App\Entity\Taxes\Taxe")
  309.      * @ORM\JoinColumn(nullable=true)
  310.      */
  311.     private $taxe;
  312.     /**
  313.      * @ORM\ManyToOne(targetEntity="Devis", inversedBy="articlesCommande")
  314.      * @ORM\JoinColumn(name="devis_id", referencedColumnName="id")
  315.      */
  316.     protected $devis;
  317.     /**
  318.      * @ORM\Column(name="pump", type="float", nullable=true)
  319.      */
  320.     private $pump;
  321.     /**
  322.      * @ORM\Column(name="cump", type="float", nullable=true)
  323.      */
  324.     private $cump;
  325.     /**
  326.      * @ORM\Column(name="etiquettes", type="integer", nullable=true)
  327.      */
  328.     private $etiquettes;
  329.     /**
  330.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\ArticleCommande", cascade={"persist"})
  331.      * @ORM\JoinColumn(nullable=true)
  332.      */
  333.     private $articleCommandeParent;
  334.     /**
  335.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\ArticleCommande", inversedBy="articlesCommande")
  336.      * @ORM\JoinColumn(nullable=true)
  337.      */
  338.     private $articleCommande;
  339.     /**
  340.      * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\ArticleCommande", mappedBy="articleCommande")
  341.      */
  342.     private $articlesCommande;
  343.     /**
  344.      * @ORM\Column(name="generer_fabriquer", type="integer", nullable=true)
  345.      */
  346.     private $genererFabriquer;
  347.     /**
  348.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\ConditionAchat", inversedBy="articlesCommande")
  349.      * @ORM\JoinColumn(nullable=true)
  350.      */
  351.     private $conditionAchat;
  352.     /**
  353.      * @ORM\OneToMany(targetEntity="App\Entity\Articles\MouvementStock", cascade={"persist"}, mappedBy="articleCommande")
  354.      */
  355.     private $mouvementsStock;
  356.     /**
  357.      * @ORM\ManyToMany(targetEntity="App\Entity\Articles\MouvementStock", cascade={"persist"})
  358.      * @ORM\JoinColumn(nullable=true)
  359.      */
  360.     private $mouvementsStockFF;
  361.     /**
  362.      * @ORM\Column(name="maj_condition_achat", type="text", nullable=true)
  363.      */
  364.     private $majCondAchat;
  365.     /**
  366.      * @ORM\Column(name="checked", type="boolean", nullable=true)
  367.      */
  368.     private $checked;
  369.     /**
  370.      * @ORM\Column(name="frais_annexes", type="float", nullable=true)
  371.      */
  372.     private $fraisAnnexes;
  373.     /**
  374.      * @ORM\Column(name="frais_port", type="float", nullable=true)
  375.      */
  376.     private $fraisPort;
  377.     /**
  378.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\ArticleCommande")
  379.      * @ORM\JoinColumn(nullable=true)
  380.      */
  381.     private $articleCommandeRepris;
  382.     /**
  383.      * @ORM\Column(name="reste_a_reprendre", type="float", nullable=true)
  384.      */
  385.     private $resteAreprendre;
  386.     /**
  387.      * @ORM\Column(name="date_livraison_theorique", type="datetime", nullable=true)
  388.      */
  389.     private $dateLivraisonTheorique;
  390.     /**
  391.      * @ORM\Column(name="date_expedition_theorique", type="datetime", nullable=true)
  392.      */
  393.     private $dateExpeditionTheorique;
  394.     /**
  395.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\ArticleCommande")
  396.      * @ORM\JoinColumn(nullable=true)
  397.      */
  398.     private $articleCommandeAssocie;
  399.     /**
  400.      * @ORM\Column(name="ecocontribution", type="float", nullable=true)
  401.      */
  402.     private $ecocontribution;
  403.     /**
  404.      * @ORM\ManyToOne(targetEntity="App\Entity\MarketPlace\ArticleMarketPlace")
  405.      * @ORM\JoinColumn(nullable=true)
  406.      */
  407.     private $articleMarketPlace;
  408.     /**
  409.      * @ORM\Column(name="id_import", type="string",length=255, nullable=true)
  410.      */
  411.     private $idImport;
  412.     /**
  413.      * @ORM\Column(name="commision_montant", type="float", nullable=true)
  414.      */
  415.     private $commissionMontant;
  416.     /**
  417.      * @ORM\Column(name="commision_taux_tva", type="float", nullable=true)
  418.      */
  419.     private $commissionTauxTva;
  420.     /**
  421.      * @ORM\Column(name="commision_tva", type="float", nullable=true)
  422.      */
  423.     private $commissionTva;
  424.     /**
  425.      * @ORM\Column(name="remboursement_montant", type="float", nullable=true)
  426.      */
  427.     private $remboursementMontant;
  428.     /**
  429.      * @ORM\Column(name="remboursement_commision_montant_ht", type="float", nullable=true)
  430.      */
  431.     private $remboursementCommissionMontantHt;
  432.     /**
  433.      * @ORM\Column(name="remboursement_commision_tva", type="float", nullable=true)
  434.      */
  435.     private $remboursementCommissionTva;
  436.     /**
  437.      * @ORM\Column(name="date_approximative_reception", type="datetime", nullable=true)
  438.      */
  439.     private $dateApproximativeReception;
  440.     /**
  441.      * @ORM\Column(name="prix_achat_unitaire_avec_frais", type="float", nullable=true)
  442.      */
  443.     private $prixAchatUnitaireAvecFrais;
  444.     /**
  445.      * @ORM\Column(name="ajouter_frais_prix_achat", type="boolean", nullable=true)
  446.      */
  447.     private $ajouterFraisPrixAchat;
  448.     /**
  449.      * @ORM\Column(name="total_ttc_devise", type="float", nullable=true)
  450.      */
  451.     private $totalTtcDevise;
  452.     /**
  453.      * @ORM\Column(name="taux_change", type="float", nullable=true)
  454.      */
  455.     private $tauxChange;
  456.     /**
  457.      * @ORM\ManyToOne(targetEntity="App\Entity\Ged\Fichier")
  458.      * @ORM\JoinColumn(nullable=true)
  459.      */
  460.     private $fichier null;
  461.     /**
  462.      * @ORM\Column(name="fabrication_etiquette", type="string",length=3, nullable=true)
  463.      */
  464.     private $fabricationEtiquette;
  465.     /**
  466.      * @ORM\Column(type="float", nullable=true)
  467.      */
  468.     private $prixAvecRemise;
  469.     public function __construct()
  470.     {
  471.         $this->date                          = new Datetime();
  472.         $this->dateExpeditionTheorique       = new Datetime();
  473.         $this->ral                           $this->quantite;
  474.         $this->etiquettes                    0;
  475.         $this->force                         false;
  476.         $this->bloquer                         false;
  477.         $this->majCondAchat                  'rien';
  478.         $this->coefficientConditionnement    1;
  479.         $this->quantiteDejaPreparee          0;
  480.         $this->cump                          0;
  481.         $this->quantiteDejaPrepareeSimplifie 0;
  482.         $this->ecocontribution               0;
  483.         $this->interventions                 = new ArrayCollection();
  484.         $this->articleCommandeEmplacement    = new ArrayCollection();
  485.         $this->mouvementsStockFF             = new ArrayCollection();
  486.         $this->mouvementsStock               = new ArrayCollection();
  487.         //$this->articleCommande              = new ArrayCollection();
  488.         $this->numeroSerie = new ArrayCollection();
  489.         $this->fabricationArticleCommandeCommandeClient = new ArrayCollection();
  490.         $this->articlesCommande = new ArrayCollection();
  491.     }
  492.     public function setId($id): ArticleCommande
  493.     {
  494.         $this->id $id;
  495.         return $this;
  496.     }
  497.     /**
  498.      * @IsTrue(message="La quantité reprise n'est pas valide.")
  499.      */
  500.     public function isQuantiteRepriseIsValid(): bool
  501.     {
  502.         //echo "<div>RAR ".$this->rar."</div>";
  503.         //echo "<div>quantiteReprise ".$this->quantiteReprise."</div>";
  504.         //echo "<div>".is_int($this->rar)."</div>";
  505.         if ($this->rar $this->quantiteReprise or $this->rar or ! is_int($this->rar)) {
  506.             return true;
  507.         } else {
  508.             return true;
  509.         }
  510.     }
  511.     public function getId(): ?int
  512.     {
  513.         return $this->id;
  514.     }
  515.     public function setQuantite(int $quantite): ArticleCommande
  516.     {
  517.         $this->quantite $quantite;
  518.         if ($this->resteAreprendre === null) {
  519.             $this->resteAreprendre $quantite;
  520.         }
  521.         return $this;
  522.     }
  523.     public function getQuantite(): int
  524.     {
  525.         return $this->quantite;
  526.     }
  527.     public function setCommande(?Commande $commande): ArticleCommande
  528.     {
  529.         $this->commande $commande;
  530.         return $this;
  531.     }
  532.     public function getCommande(): ?Commande
  533.     {
  534.         return $this->commande;
  535.     }
  536.     public function setArticle(?Article $article): ArticleCommande
  537.     {
  538.         $this->article $article;
  539.         return $this;
  540.     }
  541.     public function getArticle(): ?Article
  542.     {
  543.         return $this->article;
  544.     }
  545.     public function setRemise(?float $remise): ArticleCommande
  546.     {
  547.         $this->remise $remise;
  548.         return $this;
  549.     }
  550.     public function getRemise(): ?float
  551.     {
  552.         return $this->remise;
  553.     }
  554.     public function setPosition(?int $position): ArticleCommande
  555.     {
  556.         $this->position $position;
  557.         return $this;
  558.     }
  559.     public function getPosition(): ?int
  560.     {
  561.         return $this->position;
  562.     }
  563.     public function setTotalHt(?float $totalHt)
  564.     {
  565.         $this->totalHt $totalHt;
  566.         return $this;
  567.     }
  568.     public function getPrixRemise($round 2): ?float
  569.     {
  570.         $total $this->prixBase * (- ($this->remise 100));
  571.         //return $total;
  572.         $prixRemise $total * (- ($this->remiseSupplementaire 100));
  573.         return round($prixRemise$round);
  574.         //return $this->totalHt;
  575.     }
  576.     public function getMarge(): ?float
  577.     {
  578.         $total $this->getPrixRemise() - $this->pump;
  579.         return $total;
  580.         //return $this->totalHt;
  581.     }
  582.     public function getTotalHt($round 2): ?float
  583.     {
  584.         $total $this->quantite * ($this->getPrixRemise($round) + $this->getEcocontribution());
  585.         if ( ! empty($this->getCoefficientConditionnement())) {
  586.             $total $total floatval($this->getCoefficientConditionnement());
  587.         }
  588.         return round($total$round);
  589.         //return $this->totalHt;
  590.     }
  591.     public function getTotalHtV2(): ?float
  592.     {
  593.         //$total = $this->quantite * $this->getPrixRemise();
  594.         //return $total;
  595.         return $this->totalHt;
  596.     }
  597.     public function getTotalTTCV2(): ?float
  598.     {
  599.         $total $this->getTotalHtV2() * (+ ($this->tva 100));
  600.         return $total;
  601.         //return $this->totalHt;
  602.     }
  603.     public function getTotalTTC(): ?float
  604.     {
  605.         $total $this->gettotalHT() * (+ ($this->tva 100));
  606.         return $total;
  607.         //return $this->totalHt;
  608.     }
  609.     public function setTva(?float $tva): ArticleCommande
  610.     {
  611.         if ($tva == '') {
  612.             $tva null;
  613.         }
  614.         $this->tva $tva;
  615.         return $this;
  616.     }
  617.     public function getTva(): ?float
  618.     {
  619.         return $this->tva;
  620.     }
  621.     public function setDevis(?Devis $devis): ArticleCommande
  622.     {
  623.         $this->devis $devis;
  624.         return $this;
  625.     }
  626.     public function getDevis(): ?Devis
  627.     {
  628.         return $this->devis;
  629.     }
  630.     public function setLibelle(string $libelle): ArticleCommande
  631.     {
  632.         $this->libelle $libelle;
  633.         return $this;
  634.     }
  635.     public function getLibelle(): string
  636.     {
  637.         return $this->libelle;
  638.     }
  639.     public function setDate(DateTime $date): ArticleCommande
  640.     {
  641.         $this->date $date;
  642.         return $this;
  643.     }
  644.     public function getDate(): DateTime
  645.     {
  646.         return $this->date;
  647.     }
  648.     public function setDateSuppression(?DateTime $dateSuppression): ArticleCommande
  649.     {
  650.         $this->dateSuppression $dateSuppression;
  651.         return $this;
  652.     }
  653.     public function getDateSuppression(): ?DateTime
  654.     {
  655.         return $this->dateSuppression;
  656.     }
  657.     public function setDateMaj(?DateTime $dateMaj): ArticleCommande
  658.     {
  659.         $this->dateMaj $dateMaj;
  660.         return $this;
  661.     }
  662.     public function getDateMaj(): ?DateTime
  663.     {
  664.         return $this->dateMaj;
  665.     }
  666.     public function setDateMajPrix(?DateTime $dateMajPrix): ArticleCommande
  667.     {
  668.         $this->dateMajPrix $dateMajPrix;
  669.         return $this;
  670.     }
  671.     public function getDateMajPrix(): ?DateTime
  672.     {
  673.         return $this->dateMajPrix;
  674.     }
  675.     public function setReference(?string $reference): ArticleCommande
  676.     {
  677.         $this->reference $reference;
  678.         return $this;
  679.     }
  680.     public function getReference(): ?string
  681.     {
  682.         return $this->reference;
  683.     }
  684.     public function setReferenceClient(?string $referenceClient): ArticleCommande
  685.     {
  686.         $this->referenceClient $referenceClient;
  687.         return $this;
  688.     }
  689.     public function getReferenceClient(): ?string
  690.     {
  691.         return $this->referenceClient;
  692.     }
  693.     public function setReferenceFournisseur(?string $referenceFournisseur): ArticleCommande
  694.     {
  695.         $this->referenceFournisseur $referenceFournisseur;
  696.         return $this;
  697.     }
  698.     public function getReferenceFournisseur(): ?string
  699.     {
  700.         return $this->referenceFournisseur;
  701.     }
  702.     public function setPrixBase(?float $prixBase): ArticleCommande
  703.     {
  704.         $this->prixBase $prixBase;
  705.         return $this;
  706.     }
  707.     public function getPrixBase(): ?float
  708.     {
  709.         return $this->prixBase;
  710.     }
  711.     public function setDescription(?string $description): ArticleCommande
  712.     {
  713.         $this->description $description;
  714.         return $this;
  715.     }
  716.     public function getDescription(): ?string
  717.     {
  718.         return $this->description;
  719.     }
  720.     public function setDescriptionCourte(?string $descriptionCourte): ArticleCommande
  721.     {
  722.         $this->descriptionCourte $descriptionCourte;
  723.         return $this;
  724.     }
  725.     public function getDescriptionCourte(): ?string
  726.     {
  727.         return $this->descriptionCourte;
  728.     }
  729.     public function setLargeur(?float $largeur): ArticleCommande
  730.     {
  731.         $this->largeur $largeur;
  732.         return $this;
  733.     }
  734.     public function getLargeur(): ?float
  735.     {
  736.         return $this->largeur;
  737.     }
  738.     public function setProfondeur(?float $profondeur): ArticleCommande
  739.     {
  740.         $this->profondeur $profondeur;
  741.         return $this;
  742.     }
  743.     public function getProfondeur(): ?float
  744.     {
  745.         return $this->profondeur;
  746.     }
  747.     public function setHauteur(?float $hauteur): ArticleCommande
  748.     {
  749.         $this->hauteur $hauteur;
  750.         return $this;
  751.     }
  752.     public function getHauteur(): ?float
  753.     {
  754.         return $this->hauteur;
  755.     }
  756.     public function setPoids(?float $poids): ArticleCommande
  757.     {
  758.         $this->poids $poids;
  759.         return $this;
  760.     }
  761.     public function getPoids(): ?float
  762.     {
  763.         return $this->poids;
  764.     }
  765.     public function setAConsigner(?bool $aConsigner): ArticleCommande
  766.     {
  767.         $this->aConsigner $aConsigner;
  768.         return $this;
  769.     }
  770.     public function getAConsigner(): ?bool
  771.     {
  772.         return $this->aConsigner;
  773.     }
  774.     public function setConsigne(?bool $consigne): ArticleCommande
  775.     {
  776.         $this->consigne $consigne;
  777.         return $this;
  778.     }
  779.     public function getConsigne(): ?bool
  780.     {
  781.         return $this->consigne;
  782.     }
  783.     public function setTvaAchat(?float $tvaAchat): ArticleCommande
  784.     {
  785.         $this->tvaAchat $tvaAchat;
  786.         return $this;
  787.     }
  788.     public function getTvaAchat(): ?float
  789.     {
  790.         return $this->tvaAchat;
  791.     }
  792.     public function setTvaVente(?float $tvaVente): ArticleCommande
  793.     {
  794.         $this->tvaVente $tvaVente;
  795.         return $this;
  796.     }
  797.     public function getTvaVente(): ?float
  798.     {
  799.         return $this->tvaVente;
  800.     }
  801.     public function setPump(?float $pump): ArticleCommande
  802.     {
  803.         $this->pump $pump;
  804.         return $this;
  805.     }
  806.     public function getPump(): ?float
  807.     {
  808.         return $this->pump;
  809.     }
  810.     public function setCommentaire(?string $commentaire): ArticleCommande
  811.     {
  812.         $this->commentaire $commentaire;
  813.         return $this;
  814.     }
  815.     public function getCommentaire(): ?string
  816.     {
  817.         return $this->commentaire;
  818.     }
  819.     public function setCommandeFournisseur(?CommandeFournisseur $commandeFournisseur): ArticleCommande
  820.     {
  821.         $this->commandeFournisseur $commandeFournisseur;
  822.         return $this;
  823.     }
  824.     public function getCommandeFournisseur(): ?CommandeFournisseur
  825.     {
  826.         return $this->commandeFournisseur;
  827.     }
  828.     public function setRal(?int $ral): ArticleCommande
  829.     {
  830.         $this->ral $ral;
  831.         return $this;
  832.     }
  833.     public function getRal(): ?int
  834.     {
  835.         return $this->ral;
  836.     }
  837.     public function setNumSerie(?string $numSerie): ArticleCommande
  838.     {
  839.         $this->numSerie $numSerie;
  840.         return $this;
  841.     }
  842.     public function getNumSerie(): ?string
  843.     {
  844.         return $this->numSerie;
  845.     }
  846.     public function addNumeroSerie(NumeroSerie $numeroSerie): ArticleCommande
  847.     {
  848.         $this->numeroSerie[] = $numeroSerie;
  849.         return $this;
  850.     }
  851.     public function removeNumeroSerie(NumeroSerie $numeroSerie)
  852.     {
  853.         $this->numeroSerie->removeElement($numeroSerie);
  854.     }
  855.     public function getNumeroSerie(): Collection
  856.     {
  857.         return $this->numeroSerie;
  858.     }
  859.     public function setRalClient(?int $ralClient): ArticleCommande
  860.     {
  861.         $this->ralClient $ralClient;
  862.         return $this;
  863.     }
  864.     public function getRalClient(): ?int
  865.     {
  866.         return $this->ralClient;
  867.     }
  868.     public function setRar(?int $rar): ArticleCommande
  869.     {
  870.         $this->rar $rar;
  871.         return $this;
  872.     }
  873.     public function getRar(): ?int
  874.     {
  875.         return $this->rar;
  876.     }
  877.     public function setQuantiteReprise(?int $quantiteReprise): ArticleCommande
  878.     {
  879.         $this->quantiteReprise $quantiteReprise;
  880.         return $this;
  881.     }
  882.     public function getQuantiteReprise(): ?int
  883.     {
  884.         return $this->quantiteReprise;
  885.     }
  886.     public function setFabrication(?Fabrication $fabrication): ArticleCommande
  887.     {
  888.         $this->fabrication $fabrication;
  889.         return $this;
  890.     }
  891.     public function getFabrication(): ?Fabrication
  892.     {
  893.         return $this->fabrication;
  894.     }
  895.     public function setRemiseInitial(?Remise $remiseInitial): ArticleCommande
  896.     {
  897.         $this->remiseInitial $remiseInitial;
  898.         return $this;
  899.     }
  900.     public function getRemiseInitial(): ?Remise
  901.     {
  902.         return $this->remiseInitial;
  903.     }
  904.     public function setEtiquettes(?int $etiquettes): ArticleCommande
  905.     {
  906.         $this->etiquettes $etiquettes;
  907.         return $this;
  908.     }
  909.     public function getEtiquettes(): ?int
  910.     {
  911.         return $this->etiquettes;
  912.     }
  913.     public function setArticleCommande(?ArticleCommande $articleCommande): ArticleCommande
  914.     {
  915.         $this->articleCommande $articleCommande;
  916.         return $this;
  917.     }
  918.     public function getArticleCommande(): ?ArticleCommande
  919.     {
  920.         return $this->articleCommande;
  921.     }
  922.     public function addArticlesCommande(ArticleCommande $articlesCommande): ArticleCommande
  923.     {
  924.         $this->articlesCommande[] = $articlesCommande;
  925.         return $this;
  926.     }
  927.     public function removeArticlesCommande(ArticleCommande $articlesCommande)
  928.     {
  929.         $this->articlesCommande->removeElement($articlesCommande);
  930.     }
  931.     public function getArticlesCommande(): Collection
  932.     {
  933.         return $this->articlesCommande;
  934.     }
  935.     public function setLibelleSecondaire(?string $libelleSecondaire): ArticleCommande
  936.     {
  937.         $this->libelleSecondaire $libelleSecondaire;
  938.         return $this;
  939.     }
  940.     public function getLibelleSecondaire(): ?string
  941.     {
  942.         return $this->libelleSecondaire;
  943.     }
  944.     public function setGenererFabriquer(?int $genererFabriquer): ArticleCommande
  945.     {
  946.         $this->genererFabriquer $genererFabriquer;
  947.         return $this;
  948.     }
  949.     public function getGenererFabriquer(): ?int
  950.     {
  951.         return $this->genererFabriquer;
  952.     }
  953.     public function setForce(?bool $force): ArticleCommande
  954.     {
  955.         $this->force $force;
  956.         return $this;
  957.     }
  958.     public function getForce(): ?bool
  959.     {
  960.         return $this->force;
  961.     }
  962.     public function setRemiseSupplementaire(?float $remiseSupplementaire): ArticleCommande
  963.     {
  964.         $this->remiseSupplementaire $remiseSupplementaire;
  965.         return $this;
  966.     }
  967.     public function getRemiseSupplementaire(): ?float
  968.     {
  969.         return $this->remiseSupplementaire;
  970.     }
  971.     public function setConditionAchat(?ConditionAchat $conditionAchat): ArticleCommande
  972.     {
  973.         $this->conditionAchat $conditionAchat;
  974.         return $this;
  975.     }
  976.     public function getConditionAchat(): ?ConditionAchat
  977.     {
  978.         return $this->conditionAchat;
  979.     }
  980.     public function setMajCondAchat(?string $majCondAchat): ArticleCommande
  981.     {
  982.         $this->majCondAchat $majCondAchat;
  983.         return $this;
  984.     }
  985.     public function getMajCondAchat(): ?string
  986.     {
  987.         return $this->majCondAchat;
  988.     }
  989.     public function addMouvementsStock(MouvementStock $mouvementsStock): ArticleCommande
  990.     {
  991.         $this->mouvementsStock[] = $mouvementsStock;
  992.         return $this;
  993.     }
  994.     public function removeMouvementsStock(MouvementStock $mouvementsStock)
  995.     {
  996.         $this->mouvementsStock->removeElement($mouvementsStock);
  997.     }
  998.     public function getMouvementsStock(): Collection
  999.     {
  1000.         return $this->mouvementsStock;
  1001.     }
  1002.     public function addMouvementsStockFF(MouvementStock $mouvementsStockFF): ArticleCommande
  1003.     {
  1004.         $this->mouvementsStockFF[] = $mouvementsStockFF;
  1005.         $mouvementsStockFF->setArticleCommande($this);
  1006.         return $this;
  1007.     }
  1008.     public function removeMouvementsStockFF(MouvementStock $mouvementsStockFF)
  1009.     {
  1010.         $this->mouvementsStockFF->removeElement($mouvementsStockFF);
  1011.     }
  1012.     public function getMouvementsStockFF(): Collection
  1013.     {
  1014.         return $this->mouvementsStockFF;
  1015.     }
  1016.     public function setCommentaireSuppl(?string $commentaireSuppl): ArticleCommande
  1017.     {
  1018.         $this->commentaireSuppl $commentaireSuppl;
  1019.         return $this;
  1020.     }
  1021.     public function getCommentaireSuppl(): ?string
  1022.     {
  1023.         return $this->commentaireSuppl;
  1024.     }
  1025.     public function addArticleCommandeEmplacement(ArticleCommandeEmplacement $articleCommandeEmplacement): ArticleCommande
  1026.     {
  1027.         $this->articleCommandeEmplacement[] = $articleCommandeEmplacement;
  1028.         return $this;
  1029.     }
  1030.     public function removeArticleCommandeEmplacement(ArticleCommandeEmplacement $articleCommandeEmplacement)
  1031.     {
  1032.         if (is_object($this->articleCommandeEmplacement)) {
  1033.             $this->articleCommandeEmplacement->removeElement($articleCommandeEmplacement);
  1034.         }
  1035.     }
  1036.     public function getArticleCommandeEmplacement(): Collection
  1037.     {
  1038.         return $this->articleCommandeEmplacement;
  1039.     }
  1040.     public function setChecked(?bool $checked): ArticleCommande
  1041.     {
  1042.         $this->checked $checked;
  1043.         return $this;
  1044.     }
  1045.     public function getChecked(): ?bool
  1046.     {
  1047.         return $this->checked;
  1048.     }
  1049.     public function setArticleCommandeParent(?ArticleCommande $articleCommandeParent): ArticleCommande
  1050.     {
  1051.         if (is_object($articleCommandeParent)) {
  1052.             $articleCommandeParent->setDatePriorisation(null);
  1053.             $articleCommandeParent->setMajQuantiteDejaPreparee(true);
  1054.             //$articleCommandeParent->setQuantiteDejaPreparee(floatval($articleCommandeParent->getQuantiteDejaPreparee()) + floatval($this->getQuantite()));
  1055.             if ($this->articleCommandeParent != $articleCommandeParent) {
  1056.                 $articleCommandeParent->setQuantiteDejaPreparee(floatval($articleCommandeParent->getQuantiteDejaPreparee()) + floatval($this->getQuantite()));
  1057.             }
  1058.         }
  1059.         $this->articleCommandeParent $articleCommandeParent;
  1060.         return $this;
  1061.     }
  1062.     public function setFraisAnnexes(?float $fraisAnnexes): ArticleCommande
  1063.     {
  1064.         $this->fraisAnnexes $fraisAnnexes;
  1065.         return $this;
  1066.     }
  1067.     public function getArticleCommandeParent(): ?ArticleCommande
  1068.     {
  1069.         return $this->articleCommandeParent;
  1070.     }
  1071.     public function getFraisAnnexes(): ?float
  1072.     {
  1073.         return $this->fraisAnnexes;
  1074.     }
  1075.     public function setArticleComposant(?ArticleComposant $articleComposant): ArticleCommande
  1076.     {
  1077.         $this->articleComposant $articleComposant;
  1078.         return $this;
  1079.     }
  1080.     public function getArticleComposant(): ?ArticleComposant
  1081.     {
  1082.         return $this->articleComposant;
  1083.     }
  1084.     public function addIntervention(Intervention $intervention): ArticleCommande
  1085.     {
  1086.         $this->interventions[] = $intervention;
  1087.         return $this;
  1088.     }
  1089.     public function setResteAreprendre(?float $resteAreprendre): ArticleCommande
  1090.     {
  1091.         $this->resteAreprendre $resteAreprendre;
  1092.         return $this;
  1093.     }
  1094.     public function removeIntervention(Intervention $intervention)
  1095.     {
  1096.         $this->interventions->removeElement($intervention);
  1097.     }
  1098.     public function getInterventions(): Collection
  1099.     {
  1100.         return $this->interventions;
  1101.     }
  1102.     public function getLibelleConstruit(): string
  1103.     {
  1104.         return $this->libelle." ".$this->libelleSecondaire." (".$this->quantite."H)";
  1105.     }
  1106.     public function getResteAreprendre(): ?float
  1107.     {
  1108.         return $this->resteAreprendre;
  1109.     }
  1110.     public function setArticleCommandeRepris(?ArticleCommande $articleCommandeRepris): ArticleCommande
  1111.     {
  1112.         $this->articleCommandeRepris $articleCommandeRepris;
  1113.         return $this;
  1114.     }
  1115.     public function getArticleCommandeRepris(): ?ArticleCommande
  1116.     {
  1117.         return $this->articleCommandeRepris;
  1118.     }
  1119.     public function setTaxe(?Taxe $taxe): ArticleCommande
  1120.     {
  1121.         $this->taxe $taxe;
  1122.         return $this;
  1123.     }
  1124.     public function getTaxe(): ?Taxe
  1125.     {
  1126.         return $this->taxe;
  1127.     }
  1128.     public function setQuantiteDispo(?float $quantiteDispo): ArticleCommande
  1129.     {
  1130.         $this->quantiteDispo $quantiteDispo;
  1131.         if ($quantiteDispo != '' && $quantiteDispo != 0) {
  1132.             $this->setDatePriorisation(new Datetime);
  1133.         }
  1134.         return $this;
  1135.     }
  1136.     public function getQuantiteDispo(): ?float
  1137.     {
  1138.         return $this->quantiteDispo;
  1139.     }
  1140.     public function setCump(?float $cump): ArticleCommande
  1141.     {
  1142.         $this->cump $cump;
  1143.         return $this;
  1144.     }
  1145.     public function getCump(): ?float
  1146.     {
  1147.         return $this->cump;
  1148.     }
  1149.     public function setDatePriorisation(?DateTime $datePriorisation): ArticleCommande
  1150.     {
  1151.         $this->datePriorisation $datePriorisation;
  1152.         return $this;
  1153.     }
  1154.     public function getDatePriorisation(): ?DateTime
  1155.     {
  1156.         return $this->datePriorisation;
  1157.     }
  1158.     public function setCoefficientConditionnement(?float $coefficientConditionnement): ArticleCommande
  1159.     {
  1160.         $this->coefficientConditionnement $coefficientConditionnement;
  1161.         return $this;
  1162.     }
  1163.     public function getCoefficientConditionnement(): ?float
  1164.     {
  1165.         return $this->coefficientConditionnement;
  1166.     }
  1167.     public function setQuantiteDejaPreparee(?float $quantiteDejaPreparee): ArticleCommande
  1168.     {
  1169.         $this->quantiteDejaPreparee $quantiteDejaPreparee;
  1170.         return $this;
  1171.     }
  1172.     public function getQuantiteDejaPreparee(): ?float
  1173.     {
  1174.         return $this->quantiteDejaPreparee;
  1175.     }
  1176.     public function setMajQuantiteDejaPreparee(?bool $majQuantiteDejaPreparee): ArticleCommande
  1177.     {
  1178.         $this->majQuantiteDejaPreparee $majQuantiteDejaPreparee;
  1179.         return $this;
  1180.     }
  1181.     public function getMajQuantiteDejaPreparee(): ?bool
  1182.     {
  1183.         return $this->majQuantiteDejaPreparee;
  1184.     }
  1185.     public function setLitige(?Litige $litige): ArticleCommande
  1186.     {
  1187.         $this->litige $litige;
  1188.         return $this;
  1189.     }
  1190.     public function getLitige(): ?Litige
  1191.     {
  1192.         return $this->litige;
  1193.     }
  1194.     public function setCommentairePrive(?string $commentairePrive): ArticleCommande
  1195.     {
  1196.         $this->commentairePrive $commentairePrive;
  1197.         return $this;
  1198.     }
  1199.     public function getCommentairePrive(): ?string
  1200.     {
  1201.         return $this->commentairePrive;
  1202.     }
  1203.     public function setFraisPort(?float $fraisPort): ArticleCommande
  1204.     {
  1205.         $this->fraisPort $fraisPort;
  1206.         return $this;
  1207.     }
  1208.     public function getFraisPort(): ?float
  1209.     {
  1210.         return $this->fraisPort;
  1211.     }
  1212.     public function setTransporteur(?Transporteur $transporteur): ArticleCommande
  1213.     {
  1214.         $this->transporteur $transporteur;
  1215.         return $this;
  1216.     }
  1217.     public function getTransporteur(): ?Transporteur
  1218.     {
  1219.         return $this->transporteur;
  1220.     }
  1221.     public function setDateLivraisonTheorique(?DateTime $dateLivraisonTheorique): ArticleCommande
  1222.     {
  1223.         $this->dateLivraisonTheorique $dateLivraisonTheorique;
  1224.         return $this;
  1225.     }
  1226.     public function getDateLivraisonTheorique(): ?DateTime
  1227.     {
  1228.         return $this->dateLivraisonTheorique;
  1229.     }
  1230.     public function setArticleAssocie(?ArticleAssocie $articleAssocie): ArticleCommande
  1231.     {
  1232.         $this->articleAssocie $articleAssocie;
  1233.         return $this;
  1234.     }
  1235.     public function getArticleAssocie(): ?ArticleAssocie
  1236.     {
  1237.         return $this->articleAssocie;
  1238.     }
  1239.     public function setArticleCommandeAssocie(?ArticleCommande $articleCommandeAssocie): ArticleCommande
  1240.     {
  1241.         $this->articleCommandeAssocie $articleCommandeAssocie;
  1242.         return $this;
  1243.     }
  1244.     public function getArticleCommandeAssocie(): ?ArticleCommande
  1245.     {
  1246.         return $this->articleCommandeAssocie;
  1247.     }
  1248.     public function setQuantiteDejaPrepareeSimplifie(?float $quantiteDejaPrepareeSimplifie): ArticleCommande
  1249.     {
  1250.         $this->quantiteDejaPrepareeSimplifie $quantiteDejaPrepareeSimplifie;
  1251.         return $this;
  1252.     }
  1253.     public function getQuantiteDejaPrepareeSimplifie(): ?float
  1254.     {
  1255.         return $this->quantiteDejaPrepareeSimplifie;
  1256.     }
  1257.     public function setEcocontribution(?float $ecocontribution): ArticleCommande
  1258.     {
  1259.         $this->ecocontribution $ecocontribution;
  1260.         return $this;
  1261.     }
  1262.     public function getEcocontribution(): ?float
  1263.     {
  1264.         return $this->ecocontribution;
  1265.     }
  1266.     public function setDateExpeditionTheorique(?DateTime $dateExpeditionTheorique): ArticleCommande
  1267.     {
  1268.         $this->dateExpeditionTheorique $dateExpeditionTheorique;
  1269.         return $this;
  1270.     }
  1271.     public function getDateExpeditionTheorique(): ?DateTime
  1272.     {
  1273.         return $this->dateExpeditionTheorique;
  1274.     }
  1275.     public function setArticleMarketPlace(?ArticleMarketPlace $articleMarketPlace): ArticleCommande
  1276.     {
  1277.         $this->articleMarketPlace $articleMarketPlace;
  1278.         return $this;
  1279.     }
  1280.     public function getArticleMarketPlace(): ?ArticleMarketPlace
  1281.     {
  1282.         return $this->articleMarketPlace;
  1283.     }
  1284.     public function setIdImport(?string $idImport): ArticleCommande
  1285.     {
  1286.         $this->idImport $idImport;
  1287.         return $this;
  1288.     }
  1289.     public function getIdImport(): ?string
  1290.     {
  1291.         return $this->idImport;
  1292.     }
  1293.     public function setPrixUnitaireTtc(?float $prixUnitaireTtc): ArticleCommande
  1294.     {
  1295.         $this->prixUnitaireTtc $prixUnitaireTtc;
  1296.         return $this;
  1297.     }
  1298.     public function getPrixUnitaireTtc(): ?float
  1299.     {
  1300.         return $this->prixUnitaireTtc;
  1301.     }
  1302.     public function setTotalWithTax(?float $totalWithTax): ArticleCommande
  1303.     {
  1304.         $this->totalWithTax $totalWithTax;
  1305.         return $this;
  1306.     }
  1307.     public function getTotalWithTax(): ?float
  1308.     {
  1309.         return $this->totalWithTax;
  1310.     }
  1311.     public function setCommissionMontant(?float $commissionMontant): ArticleCommande
  1312.     {
  1313.         $this->commissionMontant $commissionMontant;
  1314.         return $this;
  1315.     }
  1316.     public function getCommissionMontant(): ?float
  1317.     {
  1318.         return $this->commissionMontant;
  1319.     }
  1320.     public function setCommissionTauxTva(?float $commissionTauxTva): ArticleCommande
  1321.     {
  1322.         $this->commissionTauxTva $commissionTauxTva;
  1323.         return $this;
  1324.     }
  1325.     public function getCommissionTauxTva(): ?float
  1326.     {
  1327.         return $this->commissionTauxTva;
  1328.     }
  1329.     public function setCommissionTva(?float $commissionTva): ArticleCommande
  1330.     {
  1331.         $this->commissionTva $commissionTva;
  1332.         return $this;
  1333.     }
  1334.     public function getCommissionTva(): ?float
  1335.     {
  1336.         return $this->commissionTva;
  1337.     }
  1338.     public function setRemboursementMontant(?float $remboursementMontant): ArticleCommande
  1339.     {
  1340.         $this->remboursementMontant $remboursementMontant;
  1341.         return $this;
  1342.     }
  1343.     public function getRemboursementMontant(): ?float
  1344.     {
  1345.         return $this->remboursementMontant;
  1346.     }
  1347.     public function setRemboursementCommissionMontantHt(?float $remboursementCommissionMontantHt): ArticleCommande
  1348.     {
  1349.         $this->remboursementCommissionMontantHt $remboursementCommissionMontantHt;
  1350.         return $this;
  1351.     }
  1352.     public function getRemboursementCommissionMontantHt(): ?float
  1353.     {
  1354.         return $this->remboursementCommissionMontantHt;
  1355.     }
  1356.     public function setRemboursementCommissionTva(?float $remboursementCommissionTva): ArticleCommande
  1357.     {
  1358.         $this->remboursementCommissionTva $remboursementCommissionTva;
  1359.         return $this;
  1360.     }
  1361.     public function getRemboursementCommissionTva(): ?float
  1362.     {
  1363.         return $this->remboursementCommissionTva;
  1364.     }
  1365.     public function setSellerProductId(?string $sellerProductId): ArticleCommande
  1366.     {
  1367.         $this->seller_product_id $sellerProductId;
  1368.         return $this;
  1369.     }
  1370.     public function getSellerProductId(): ?string
  1371.     {
  1372.         return $this->seller_product_id;
  1373.     }
  1374.     public function setDateApproximativeReception(?DateTime $dateApproximativeReception): ArticleCommande
  1375.     {
  1376.         $this->dateApproximativeReception $dateApproximativeReception;
  1377.         return $this;
  1378.     }
  1379.     public function getDateApproximativeReception(): ?DateTime
  1380.     {
  1381.         return $this->dateApproximativeReception;
  1382.     }
  1383.     public function setPrixAchatUnitaireAvecFrais(?float $prixAchatUnitaireAvecFrais): ArticleCommande
  1384.     {
  1385.         $this->prixAchatUnitaireAvecFrais $prixAchatUnitaireAvecFrais;
  1386.         return $this;
  1387.     }
  1388.     public function getPrixAchatUnitaireAvecFrais(): ?float
  1389.     {
  1390.         return $this->prixAchatUnitaireAvecFrais;
  1391.     }
  1392.     public function setAjouterFraisPrixAchat(?bool $ajouterFraisPrixAchat): ArticleCommande
  1393.     {
  1394.         $this->ajouterFraisPrixAchat $ajouterFraisPrixAchat;
  1395.         return $this;
  1396.     }
  1397.     public function getAjouterFraisPrixAchat(): ?bool
  1398.     {
  1399.         return $this->ajouterFraisPrixAchat;
  1400.     }
  1401.     public function setTotalTtcDevise(?float $totalTtcDevise): ArticleCommande
  1402.     {
  1403.         $this->totalTtcDevise $totalTtcDevise;
  1404.         return $this;
  1405.     }
  1406.     public function getTotalTtcDevise(): ?float
  1407.     {
  1408.         return $this->totalTtcDevise;
  1409.     }
  1410.     public function setTauxChange(?float $tauxChange): ArticleCommande
  1411.     {
  1412.         $this->tauxChange $tauxChange;
  1413.         return $this;
  1414.     }
  1415.     public function getTauxChange(): ?float
  1416.     {
  1417.         return $this->tauxChange;
  1418.     }
  1419.     public function getFabricationMultiple(): ?FabricationMultiple
  1420.     {
  1421.         return $this->fabricationMultiple;
  1422.     }
  1423.     public function setFabricationMultiple(?FabricationMultiple $fabricationMultiple): ?ArticleCommande
  1424.     {
  1425.         $this->fabricationMultiple $fabricationMultiple;
  1426.         return $this;
  1427.     }
  1428.     public function getFichier(): ?Fichier
  1429.     {
  1430.         return $this->fichier;
  1431.     }
  1432.     public function setFichier(?Fichier $fichier)
  1433.     {
  1434.         $this->fichier $fichier;
  1435.         return $this;
  1436.     }
  1437.     public function getFabricationEtiquette()
  1438.     {
  1439.         return $this->fabricationEtiquette;
  1440.     }
  1441.     public function setFabricationEtiquette($fabricationEtiquette)
  1442.     {
  1443.         $this->fabricationEtiquette $fabricationEtiquette;
  1444.         return $this;
  1445.     }
  1446.     public function isAConsigner(): ?bool
  1447.     {
  1448.         return $this->aConsigner;
  1449.     }
  1450.     public function isForce(): ?bool
  1451.     {
  1452.         return $this->force;
  1453.     }
  1454.     public function isBloquer(): ?bool
  1455.     {
  1456.         return $this->bloquer;
  1457.     }
  1458.     public function setBloquer(?bool $bloquer): self
  1459.     {
  1460.         $this->bloquer $bloquer;
  1461.         return $this;
  1462.     }
  1463.     public function isConsigne(): ?bool
  1464.     {
  1465.         return $this->consigne;
  1466.     }
  1467.     public function isMajQuantiteDejaPreparee(): ?bool
  1468.     {
  1469.         return $this->majQuantiteDejaPreparee;
  1470.     }
  1471.     public function isChecked(): ?bool
  1472.     {
  1473.         return $this->checked;
  1474.     }
  1475.     public function isAjouterFraisPrixAchat(): ?bool
  1476.     {
  1477.         return $this->ajouterFraisPrixAchat;
  1478.     }
  1479.     /**
  1480.      * @return Collection<int, Fabrication>
  1481.      */
  1482.     public function getFabricationArticleCommandeCommandeClient(): Collection
  1483.     {
  1484.         return $this->fabricationArticleCommandeCommandeClient;
  1485.     }
  1486.     public function addFabricationArticleCommandeCommandeClient(Fabrication $fabricationArticleCommandeCommandeClient): self
  1487.     {
  1488.         if (!$this->fabricationArticleCommandeCommandeClient->contains($fabricationArticleCommandeCommandeClient)) {
  1489.             $this->fabricationArticleCommandeCommandeClient[] = $fabricationArticleCommandeCommandeClient;
  1490.             $fabricationArticleCommandeCommandeClient->setArticleCommandeCommandeClient($this);
  1491.         }
  1492.         return $this;
  1493.     }
  1494.     public function removeFabricationArticleCommandeCommandeClient(Fabrication $fabricationArticleCommandeCommandeClient): self
  1495.     {
  1496.         if ($this->fabricationArticleCommandeCommandeClient->removeElement($fabricationArticleCommandeCommandeClient)) {
  1497.             // set the owning side to null (unless already changed)
  1498.             if ($fabricationArticleCommandeCommandeClient->getArticleCommandeCommandeClient() === $this) {
  1499.                 $fabricationArticleCommandeCommandeClient->setArticleCommandeCommandeClient(null);
  1500.             }
  1501.         }
  1502.         return $this;
  1503.     }
  1504.     public function getPrixAvecRemise(): ?float
  1505.     {
  1506.         return $this->prixAvecRemise;
  1507.     }
  1508.     public function setPrixAvecRemise(?float $prixAvecRemise): self
  1509.     {
  1510.         $this->prixAvecRemise $prixAvecRemise;
  1511.         return $this;
  1512.     }
  1513. }