src/Entity/ReceptionDetail.php line 15

Open in your IDE?
  1. <?php
  2. /**
  3.  * ReceptionDetail.php
  4.  * Created by Stéphane Brun
  5.  * Date: 10/07/2018 at 08:40
  6.  */
  7. namespace App\Entity;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * @ORM\Entity(repositoryClass="App\Repository\ReceptionDetailRepository")
  11.  * @ORM\Table(name="reception_detail")
  12.  */
  13. class ReceptionDetail
  14. {
  15.     const HISTORY_WATCH = array(
  16.         'qteRecue' => 'Quantité reçue',
  17.         'reponse' => 'Réponse',
  18.         'aTraiter' => 'A traiter',
  19.     );
  20.     /**
  21.      * @ORM\Column(type="integer")
  22.      * @ORM\Id
  23.      * @ORM\GeneratedValue(strategy="AUTO")
  24.      */
  25.     protected $id;
  26.     /**
  27.      * @ORM\Column(name="flag", type="boolean")
  28.      */
  29.     protected $flag false;
  30.     /**
  31.      * @ORM\Column(name="titre", type="string", length=600, nullable=true)
  32.      */
  33.     protected $titre;
  34.     /**
  35.      * @ORM\Column(name="qte", type="integer")
  36.      */
  37.     protected $qte 0;
  38.     /**
  39.      * @ORM\Column(name="qte_recue", type="integer")
  40.      */
  41.     protected $qteRecue 0;
  42.     /**
  43.      * @ORM\Column(name="qte_recue_ftp", type="integer")
  44.      */
  45.     protected $qteRecueFTP 0;
  46.     /**
  47.      * @ORM\Column(name="qte_retournee", type="integer")
  48.      */
  49.     protected $qteRetournee 0;
  50.     /**
  51.      * @ORM\Column(name="qte_retournee_sadr", type="integer")
  52.      */
  53.     protected $qteRetourneeSADR 0;
  54.     /**
  55.      * @ORM\Column(name="retrait", type="boolean")
  56.      */
  57.     protected $retrait false;
  58. //    /**
  59. //     * @ORM\Column(name="reponse", type="integer")
  60. //     */
  61. //    protected $reponse = 0;
  62.     /**
  63.      * has one CommandeReponse
  64.      *
  65.      * @ORM\ManyToOne(targetEntity="App\Entity\CommandeReponse")
  66.      * @ORM\JoinColumn(name="reponse_id", referencedColumnName="id")
  67.      */
  68.     protected $reponse;
  69.     /**
  70.      * La réponse renvoyé par le fournisseur en cas de commande FTP
  71.      * @ORM\Column(name="reponse_text", type="string", length=600, nullable=true)
  72.      */
  73.     protected $reponseText;
  74.     /**
  75.      * @ORM\Column(name="pvu", type="float")
  76.      */
  77.     protected $pvu 0;
  78.     /**
  79.      * @ORM\Column(name="remise", type="integer")
  80.      */
  81.     protected $remise 40;
  82.     /**
  83.      * @ORM\Column(name="a_traiter", type="boolean")
  84.      */
  85.     protected $aTraiter true;
  86.     /**
  87.      * @ORM\Column(name="coutant", type="float")
  88.      */
  89.     protected $coutant 0;
  90.     /**
  91.      * has one CommandeDetail
  92.      *
  93.      * @ORM\ManyToOne(targetEntity="App\Entity\Commande")
  94.      * @ORM\JoinColumn(name="commande_id", referencedColumnName="id", nullable=true)
  95.      */
  96.     protected $commande;
  97.     /**
  98.      * has one CommandeSpecialeDetail
  99.      *
  100.      * @ORM\ManyToOne(targetEntity="App\Entity\CommandeSpecialeDetail", inversedBy="receptionDetail")
  101.      * @ORM\JoinColumn(name="commande_speciale_detail_id", referencedColumnName="id", nullable=true)
  102.      */
  103.     protected $commandeSpecialeDetail;
  104.     /**
  105.      * has one Titre
  106.      *
  107.      * @ORM\ManyToOne(targetEntity="App\Entity\Titre", cascade={"persist"})
  108.      * @ORM\JoinColumn(name="titre_id", referencedColumnName="TISBN")
  109.      */
  110.     protected $produit;
  111.     /**
  112.      * has one TitreCompany
  113.      *
  114.      * @ORM\ManyToOne(targetEntity="App\Entity\TitreCompany", cascade={"persist"})
  115.      * @ORM\JoinColumn(name="titre_company_id", referencedColumnName="id")
  116.      */
  117.     protected $titreCompany;
  118.     /**
  119.      * has one Company
  120.      *
  121.      * @ORM\ManyToOne(targetEntity="App\Entity\Company")
  122.      * @ORM\JoinColumn(name="company_id", referencedColumnName="id")
  123.      */
  124.     protected $company;
  125.     /**
  126.      * has one Reception
  127.      *
  128.      * @ORM\ManyToOne(targetEntity="App\Entity\Reception", inversedBy="details")
  129.      * @ORM\JoinColumn(name="reception_id", referencedColumnName="id")
  130.      */
  131.     protected $reception;
  132.     /**
  133.      * has one Reception
  134.      *
  135.      * @ORM\ManyToOne(targetEntity="App\Entity\Reception")
  136.      * @ORM\JoinColumn(name="original_reception_id", referencedColumnName="id", nullable=true)
  137.      */
  138.     protected $originalReception;
  139.     /**
  140.      * has one ReceptionDetail
  141.      *
  142.      * @ORM\ManyToOne(targetEntity="App\Entity\CommandeDetail", inversedBy="receptionDetail"))
  143.      * @ORM\JoinColumn(name="original_commande_detail_id", referencedColumnName="id", nullable=true)
  144.      */
  145.     protected $originalCommandeDetail;
  146.     /**
  147.      * has one Etiquette
  148.      *
  149.      * @ORM\Column(name="etiquette_id", type="integer", nullable=true)
  150.      */
  151.     protected $etiquette;
  152.     /**
  153.      * @return mixed
  154.      */
  155.     public function getId()
  156.     {
  157.         return $this->id;
  158.     }
  159.     /**
  160.      * @return mixed
  161.      */
  162.     public function getFlag()
  163.     {
  164.         return $this->flag;
  165.     }
  166.     /**
  167.      * @return mixed
  168.      */
  169.     public function isFlag()
  170.     {
  171.         return $this->getFlag();
  172.     }
  173.     /**
  174.      * @param mixed $flag
  175.      * @return ReceptionDetail
  176.      */
  177.     public function setFlag($flag)
  178.     {
  179.         $this->flag $flag;
  180.         return $this;
  181.     }
  182.     /**
  183.      * @return mixed
  184.      */
  185.     public function getTitre()
  186.     {
  187.         return $this->titre;
  188.     }
  189.     /**
  190.      * @param mixed $titre
  191.      * @return ReceptionDetail
  192.      */
  193.     public function setTitre($titre)
  194.     {
  195.         $this->titre $titre;
  196.         return $this;
  197.     }
  198.     /**
  199.      * @return mixed
  200.      */
  201.     public function getQte()
  202.     {
  203.         return $this->qte;
  204.     }
  205.     /**
  206.      * @param mixed $qte
  207.      * @return ReceptionDetail
  208.      */
  209.     public function setQte($qte)
  210.     {
  211.         $this->qte $qte;
  212.         return $this;
  213.     }
  214.     /**
  215.      * @return mixed
  216.      */
  217.     public function getQteRecue()
  218.     {
  219.         return $this->qteRecue;
  220.     }
  221.     /**
  222.      * @param mixed $qteRecue
  223.      * @return ReceptionDetail
  224.      */
  225.     public function setQteRecue($qteRecue)
  226.     {
  227.         $this->qteRecue $qteRecue;
  228.         return $this;
  229.     }
  230.     /**
  231.      * @return mixed
  232.      */
  233.     public function getQteRecueFTP()
  234.     {
  235.         return $this->qteRecueFTP;
  236.     }
  237.     /**
  238.      * @param mixed $qteRecueFTP
  239.      * @return ReceptionDetail
  240.      */
  241.     public function setQteRecueFTP($qteRecueFTP)
  242.     {
  243.         $this->qteRecueFTP $qteRecueFTP;
  244.         return $this;
  245.     }
  246.     /**
  247.      * @return mixed
  248.      */
  249.     public function getQteRetournee()
  250.     {
  251.         return $this->qteRetournee;
  252.     }
  253.     /**
  254.      * @param mixed $qteRetournee
  255.      * @return ReceptionDetail
  256.      */
  257.     public function setQteRetournee($qteRetournee)
  258.     {
  259.         $this->qteRetournee $qteRetournee;
  260.         return $this;
  261.     }
  262.     /**
  263.      * @return mixed
  264.      */
  265.     public function getQteRetourneeSADR()
  266.     {
  267.         return $this->qteRetourneeSADR;
  268.     }
  269.     /**
  270.      * @param mixed $qteRetourneeSADR
  271.      * @return ReceptionDetail
  272.      */
  273.     public function setQteRetourneeSADR($qteRetourneeSADR)
  274.     {
  275.         $this->qteRetourneeSADR $qteRetourneeSADR;
  276.         return $this;
  277.     }
  278.     /**
  279.      * @return mixed
  280.      */
  281.     public function getRetrait()
  282.     {
  283.         return $this->retrait;
  284.     }
  285.     /**
  286.      * @return mixed
  287.      */
  288.     public function isRetrait()
  289.     {
  290.         return $this->getRetrait();
  291.     }
  292.     /**
  293.      * @param mixed $retrait
  294.      * @return ReceptionDetail
  295.      */
  296.     public function setRetrait($retrait)
  297.     {
  298.         $this->retrait $retrait;
  299.         return $this;
  300.     }
  301.     /**
  302.      * @return mixed
  303.      */
  304.     public function getReponse()
  305.     {
  306.         return $this->reponse;
  307.     }
  308.     /**
  309.      * @param mixed $reponse
  310.      * @return ReceptionDetail
  311.      */
  312.     public function setReponse($reponse)
  313.     {
  314.         $this->reponse $reponse;
  315.         return $this;
  316.     }
  317.     /**
  318.      * @return mixed
  319.      */
  320.     public function getReponseText()
  321.     {
  322.         return $this->reponseText;
  323.     }
  324.     /**
  325.      * @param mixed $reponseText
  326.      */
  327.     public function setReponseText($reponseText): void
  328.     {
  329.         $this->reponseText $reponseText;
  330.     }
  331.     /**
  332.      * @return mixed
  333.      */
  334.     public function getPvu()
  335.     {
  336.         return $this->pvu;
  337.     }
  338.     /**
  339.      * @param mixed $pvu
  340.      * @return ReceptionDetail
  341.      */
  342.     public function setPvu($pvu)
  343.     {
  344.         $this->pvu $pvu;
  345.         return $this;
  346.     }
  347.     /**
  348.      * @return mixed
  349.      */
  350.     public function getRemise()
  351.     {
  352.         return $this->remise;
  353.     }
  354.     /**
  355.      * @param mixed $remise
  356.      * @return ReceptionDetail
  357.      */
  358.     public function setRemise($remise)
  359.     {
  360.         $this->remise $remise;
  361.         return $this;
  362.     }
  363.     /**
  364.      * @return mixed
  365.      */
  366.     public function getATraiter()
  367.     {
  368.         return $this->aTraiter;
  369.     }
  370.     /**
  371.      * @return mixed
  372.      */
  373.     public function isATraiter()
  374.     {
  375.         return $this->getATraiter();
  376.     }
  377.     /**
  378.      * @param mixed $aTraiter
  379.      * @return ReceptionDetail
  380.      */
  381.     public function setATraiter($aTraiter)
  382.     {
  383.         $this->aTraiter $aTraiter;
  384.         return $this;
  385.     }
  386.     /**
  387.      * @return mixed
  388.      */
  389.     public function getCoutant()
  390.     {
  391.         return $this->coutant;
  392.     }
  393.     /**
  394.      * @param mixed $coutant
  395.      * @return ReceptionDetail
  396.      */
  397.     public function setCoutant($coutant)
  398.     {
  399.         $this->coutant $coutant;
  400.         return $this;
  401.     }
  402.     /**
  403.      * @return Commande
  404.      */
  405.     public function getCommande()
  406.     {
  407.         return $this->commande;
  408.     }
  409.     /**
  410.      * @param Commande $commande
  411.      * @return ReceptionDetail
  412.      */
  413.     public function setCommande(Commande $commande)
  414.     {
  415.         $this->commande $commande;
  416.         return $this;
  417.     }
  418.     /**
  419.      * @return Titre
  420.      */
  421.     public function getProduit()
  422.     {
  423.         return $this->produit;
  424.     }
  425.     /**
  426.      * @param Titre $produit
  427.      * @return ReceptionDetail
  428.      */
  429.     public function setProduit(Titre $produit)
  430.     {
  431.         $this->produit $produit;
  432.         return $this;
  433.     }
  434.     /**
  435.      * @return Reception
  436.      */
  437.     public function getReception()
  438.     {
  439.         return $this->reception;
  440.     }
  441.     /**
  442.      * @param Reception $reception
  443.      * @return ReceptionDetail
  444.      */
  445.     public function setReception(Reception $reception)
  446.     {
  447.         $this->reception $reception;
  448.         return $this;
  449.     }
  450.     /**
  451.      * @return Reception
  452.      */
  453.     public function getOriginalReception()
  454.     {
  455.         return $this->originalReception;
  456.     }
  457.     /**
  458.      * @param Reception $originalReception
  459.      * @return ReceptionDetail
  460.      */
  461.     public function setOriginalReception(Reception $originalReception)
  462.     {
  463.         $this->originalReception $originalReception;
  464.         return $this;
  465.     }
  466.     /**
  467.      * @return CommandeDetail
  468.      */
  469.     public function getOriginalCommandeDetail()
  470.     {
  471.         return $this->originalCommandeDetail;
  472.     }
  473.     /**
  474.      * @param CommandeDetail $originalCommandeDetail
  475.      * @return ReceptionDetail
  476.      */
  477.     public function setOriginalCommandeDetail(CommandeDetail $originalCommandeDetail)
  478.     {
  479.         $this->originalCommandeDetail $originalCommandeDetail;
  480.         return $this;
  481.     }
  482.     /**
  483.      * @return mixed
  484.      */
  485.     public function getEtiquette()
  486.     {
  487.         return $this->etiquette;
  488.     }
  489.     /**
  490.      * @param mixed $etiquette
  491.      * @return ReceptionDetail
  492.      */
  493.     public function setEtiquette($etiquette)
  494.     {
  495.         $this->etiquette $etiquette;
  496.         return $this;
  497.     }
  498.     /**
  499.      * @return TitreCompany
  500.      */
  501.     public function getTitreCompany()
  502.     {
  503.         return $this->titreCompany;
  504.     }
  505.     /**
  506.      * @param TitreCompany $titreCompany
  507.      * @return ReceptionDetail
  508.      */
  509.     public function setTitreCompany(TitreCompany $titreCompany)
  510.     {
  511.         $this->titreCompany $titreCompany;
  512.         return $this;
  513.     }
  514.     /**
  515.      * @return Company
  516.      */
  517.     public function getCompany()
  518.     {
  519.         return $this->company;
  520.     }
  521.     /**
  522.      * @param Company $company
  523.      * @return ReceptionDetail
  524.      */
  525.     public function setCompany(Company $company)
  526.     {
  527.         $this->company $company;
  528.         return $this;
  529.     }
  530.     /**
  531.      * @return CommandeSpecialeDetail
  532.      */
  533.     public function getCommandeSpecialeDetail()
  534.     {
  535.         return $this->commandeSpecialeDetail;
  536.     }
  537.     /**
  538.      * @param CommandeSpecialeDetail $commandeSpecialeDetail
  539.      * @return ReceptionDetail
  540.      */
  541.     public function setCommandeSpecialeDetail(CommandeSpecialeDetail $commandeSpecialeDetail)
  542.     {
  543.         $this->commandeSpecialeDetail $commandeSpecialeDetail;
  544.         return $this;
  545.     }
  546. }