src/Entity/FraisDeCourtage.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\FraisDeCourtageRepository")
  6.  */
  7. class FraisDeCourtage
  8. {
  9.     /**
  10.      * @ORM\Id()
  11.      * @ORM\GeneratedValue()
  12.      * @ORM\Column(type="integer")
  13.      */
  14.     private $id;
  15.     /**
  16.      * @ORM\Column(type="datetime")
  17.      */
  18.     private $date_saisie;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=true)
  21.      */
  22.     private $ref_fact;
  23.     /**
  24.      * @ORM\ManyToOne(targetEntity="App\Entity\Devise", inversedBy="fraisDeCourtages")
  25.      */
  26.     private $devise;
  27.     /**
  28.      * @ORM\Column(type="text", nullable=true)
  29.      */
  30.     private $object;
  31.     /**
  32.      * @ORM\Column(type="string", length=255, nullable=true)
  33.      */
  34.     private $identifiant;
  35.     /**
  36.      * @ORM\Column(type="text", nullable=true)
  37.      */
  38.     private $description;
  39.     /**
  40.      * @ORM\Column(type="string",length=255,  nullable=true)
  41.      */
  42.     private $volume;
  43.     /**
  44.      * @ORM\Column(type="string",length=255,  nullable=true)
  45.      */
  46.     private $nature;
  47.     /**
  48.      * @ORM\ManyToOne(targetEntity="App\Entity\Unite", inversedBy="fraisDeCourtages")
  49.      */
  50.     private $unite;
  51.     /**
  52.      * @ORM\Column(type="string", length=255, nullable=true)
  53.      */
  54.     private $montant_commissionne;
  55.     /**
  56.      * @ORM\Column(type="string", length=255, nullable=true)
  57.      */
  58.     private $ca_net;
  59.     /**
  60.      * @ORM\Column(type="string", length=255, nullable=true)
  61.      */
  62.     private $tva;
  63.     /**
  64.      * @ORM\Column(type="string", length=255, nullable=true)
  65.      */
  66.     private $total_ht;
  67.     /**
  68.      * @ORM\Column(type="string", length=255, nullable=true)
  69.      */
  70.     private $total_ttc;
  71.     /**
  72.      * @ORM\Column(type="text", nullable=true)
  73.      */
  74.     private $condition_et_mode_de_paiement;
  75.     /**
  76.      * @ORM\Column(type="datetime")
  77.      */
  78.     private $created_at;
  79.     /**
  80.      * @ORM\ManyToOne(targetEntity="App\Entity\Status", inversedBy="fraisDeCourtages")
  81.      */
  82.     private $status;
  83.     /**
  84.      * @ORM\ManyToOne(targetEntity="App\Entity\AdminDonneurOrdre", inversedBy="fraisDeCourtages")
  85.      */
  86.     private $client;
  87.     /**
  88.      * @ORM\ManyToOne(targetEntity="App\Entity\Objet", inversedBy="fraisDeCourtages")
  89.      */
  90.     private $objet;
  91.     /**
  92.      * @ORM\ManyToOne(targetEntity="App\Entity\Devise")
  93.      */
  94.     private $ca_net_devise;
  95.     /**
  96.      * @ORM\Column(type="string", length=255, nullable=true)
  97.      */
  98.     private $qte;
  99.     /**
  100.      * @ORM\ManyToOne(targetEntity="App\Entity\Devise")
  101.      */
  102.     private $montant_devise;
  103.     public function __construct(){
  104.         $this->created_at = new \DateTime('now');
  105.         if (!isset($this->ref_fact)){
  106.             $this->ref_fact 'APDM'.random_int(10,900).date('s');
  107.         }else{
  108.             $this->ref_fact 'APDM'.random_int(10,900).date('s');
  109.         }
  110.     }
  111.     public function getId(): ?int
  112.     {
  113.         return $this->id;
  114.     }
  115.     public function getDateSaisie(): ?\DateTimeInterface
  116.     {
  117.         return $this->date_saisie;
  118.     }
  119.     public function setDateSaisie(\DateTimeInterface $date_saisie): self
  120.     {
  121.         $this->date_saisie $date_saisie;
  122.         return $this;
  123.     }
  124.     public function getRefFact(): ?string
  125.     {
  126.         return $this->ref_fact;
  127.     }
  128.     public function setRefFact(?string $ref_fact): self
  129.     {
  130.         $this->ref_fact $ref_fact;
  131.         return $this;
  132.     }
  133.     public function getNature():?string
  134.     {
  135.         return $this->nature;
  136.     }
  137.     public function setNature(?string  $nature): self
  138.     {
  139.         $this->nature $nature;
  140.         return  $this;
  141.     }
  142.     public function getDevise(): ?Devise
  143.     {
  144.         return $this->devise;
  145.     }
  146.     public function setDevise(?Devise $devise): self
  147.     {
  148.         $this->devise $devise;
  149.         return $this;
  150.     }
  151.     public function getObject(): ?string
  152.     {
  153.         return $this->object;
  154.     }
  155.     public function setObject(?string $object): self
  156.     {
  157.         $this->object $object;
  158.         return $this;
  159.     }
  160.     public function getIdentifiant(): ?string
  161.     {
  162.         return $this->identifiant;
  163.     }
  164.     public function setIdentifiant(?string $identifiant): self
  165.     {
  166.         $this->identifiant $identifiant;
  167.         return $this;
  168.     }
  169.     public function getDescription(): ?string
  170.     {
  171.         return $this->description;
  172.     }
  173.     public function setDescription(?string $description): self
  174.     {
  175.         $this->description $description;
  176.         return $this;
  177.     }
  178.     public function getVolume(): ?string
  179.     {
  180.         return $this->volume;
  181.     }
  182.     public function setVolume(?string $volume): self
  183.     {
  184.         $this->volume $volume;
  185.         return $this;
  186.     }
  187.     public function getUnite(): ?Unite
  188.     {
  189.         return $this->unite;
  190.     }
  191.     public function setUnite(?Unite $unite): self
  192.     {
  193.         $this->unite $unite;
  194.         return $this;
  195.     }
  196.     public function getMontantCommissionne(): ?string
  197.     {
  198.         return $this->montant_commissionne;
  199.     }
  200.     public function setMontantCommissionne(?string $montant_commissionne): self
  201.     {
  202.         $this->montant_commissionne $montant_commissionne;
  203.         return $this;
  204.     }
  205.     public function getCaNet(): ?string
  206.     {
  207.         return $this->ca_net;
  208.     }
  209.     public function setCaNet(?string $ca_net): self
  210.     {
  211.         $this->ca_net $ca_net;
  212.         return $this;
  213.     }
  214.     public function getTva(): ?string
  215.     {
  216.         return $this->tva;
  217.     }
  218.     public function setTva(?string $tva): self
  219.     {
  220.         $this->tva $tva;
  221.         return $this;
  222.     }
  223.     public function getTotalHt(): ?string
  224.     {
  225.         return $this->total_ht;
  226.     }
  227.     public function setTotalHt(?string $total_ht): self
  228.     {
  229.         $this->total_ht $total_ht;
  230.         return $this;
  231.     }
  232.     public function getTotalTtc(): ?string
  233.     {
  234.         return $this->total_ttc;
  235.     }
  236.     public function setTotalTtc(?string $total_ttc): self
  237.     {
  238.         $this->total_ttc $total_ttc;
  239.         return $this;
  240.     }
  241.     public function getConditionEtModeDePaiement(): ?string
  242.     {
  243.         return $this->condition_et_mode_de_paiement;
  244.     }
  245.     public function setConditionEtModeDePaiement(?string $condition_et_mode_de_paiement): self
  246.     {
  247.         $this->condition_et_mode_de_paiement $condition_et_mode_de_paiement;
  248.         return $this;
  249.     }
  250.     
  251.     public function getCreatedAt(): ?\DateTimeInterface
  252.     {
  253.         return $this->created_at;
  254.     }
  255.     public function setCreatedAt(\DateTimeInterface $created_at): self
  256.     {
  257.         $this->created_at $created_at;
  258.         return $this;
  259.     }
  260.     public function getStatus(): ?Status
  261.     {
  262.         return $this->status;
  263.     }
  264.     public function setStatus(?Status $status): self
  265.     {
  266.         $this->status $status;
  267.         return $this;
  268.     }
  269.     public function getClient(): ?AdminDonneurOrdre
  270.     {
  271.         return $this->client;
  272.     }
  273.     public function setClient(?AdminDonneurOrdre $client): self
  274.     {
  275.         $this->client $client;
  276.         return $this;
  277.     }
  278.     public function getObjet(): ?Objet
  279.     {
  280.         return $this->objet;
  281.     }
  282.     public function setObjet(?Objet $objet): self
  283.     {
  284.         $this->objet $objet;
  285.         return $this;
  286.     }
  287.     public function getCaNetDevise(): ?Devise
  288.     {
  289.         return $this->ca_net_devise;
  290.     }
  291.     public function setCaNetDevise(?Devise $ca_net_devise): self
  292.     {
  293.         $this->ca_net_devise $ca_net_devise;
  294.         return $this;
  295.     }
  296.     public function getQte(): ?string
  297.     {
  298.         return $this->qte;
  299.     }
  300.     public function setQte(?string $qte): self
  301.     {
  302.         $this->qte $qte;
  303.         return $this;
  304.     }
  305.     public function getMontantDevise(): ?Devise
  306.     {
  307.         return $this->montant_devise;
  308.     }
  309.     public function setMontantDevise(?Devise $montant_devise): self
  310.     {
  311.         $this->montant_devise $montant_devise;
  312.         return $this;
  313.     }
  314. }