src/Entity/GestionComerciale/LCR.php line 25

Open in your IDE?
  1. <?php
  2. namespace App\Entity\GestionComerciale;
  3. use App\Entity\Clients\Client;
  4. use App\Entity\FO\CompteBancaire;
  5. use App\Entity\Utilisateur\Utilisateur;
  6. use DateTime;
  7. use Doctrine\Common\Collections\ArrayCollection;
  8. use Doctrine\Common\Collections\Collection;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Gedmo\Mapping\Annotation as Gedmo;
  11. use Symfony\Component\Validator\Constraints as Assert;
  12. use App\Annotations\SecuredEntity;
  13. use App\Entity\Articles\Devise;
  14. /**
  15.  * LCR
  16.  *
  17.  * @ORM\Table("commerciale__lcr")
  18.  * @ORM\Entity(repositoryClass="App\Repository\GestionComerciale\LCRRepository")
  19.  * @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
  20.  * @SecuredEntity(name="LCR", group="COMPTABILITE")
  21.  */
  22. class LCR
  23. {
  24.     /**
  25.      * @ORM\Column(name="id", type="integer")
  26.      * @ORM\Id
  27.      * @ORM\GeneratedValue(strategy="AUTO")
  28.      */
  29.     private $id;
  30.     /**
  31.      * @ORM\Column(name="nomClient", type="string", length=255)
  32.      */
  33.     private $nomClient;
  34.     /**
  35.      * @ORM\Column(name="numPiece", type="string", length=255)
  36.      */
  37.     private $numPiece;
  38.     /**
  39.      * @ORM\Column(name="numTraite", type="string", length=255)
  40.      */
  41.     private $numTraite;
  42.     /**
  43.      * @ORM\Column(name="date", type="datetime")
  44.      */
  45.     private $date;
  46.     
  47.     /**
  48.      * @ORM\Column(name="date_suppression", type="datetime", nullable=true)
  49.      */
  50.     private $dateSuppression;
  51.     /**
  52.      * @ORM\Column(name="date_maj", type="datetime", nullable=true)
  53.      * @Gedmo\Timestampable(on="update")
  54.      */
  55.     private $dateMaj
  56.     /**
  57.      * @ORM\Column(name="dateEcheance", type="datetime")
  58.      */
  59.     private $dateEcheance;
  60.     /**
  61.      * @ORM\Column(name="codeAgence", type="string", length=255, nullable=true)
  62.      */
  63.     private $codeAgence;
  64.     /**
  65.      * @ORM\Column(name="nomAgence", type="string", length=255, nullable=true)
  66.      */
  67.     private $nomAgence;
  68.     /**
  69.      * @var float
  70.      * @Assert\NotBlank(message="Merci de renseigner un montant")
  71.      * @ORM\Column(name="montant", type="float")
  72.      */
  73.     private $montant;
  74.     /**
  75.      * @ORM\Column(name="domiciliation", type="string", length=255, nullable=true)
  76.      */
  77.     private $domiciliation;
  78.     
  79.     /**
  80.      * @ORM\Column(name="domiciliation2", type="string", length=255, nullable=true)
  81.      */
  82.     private $domiciliation2;
  83.     /**
  84.      * @ORM\Column(name="bor", type="boolean")
  85.      */
  86.     private $bor;
  87.     /**
  88.      * @ORM\Column(name="codeEtablissement", type="string", length=255, nullable=true)
  89.      */
  90.     private $codeEtablissement;
  91.     /**
  92.      * @ORM\Column(name="codeGuichet", type="string", length=255, nullable=true)
  93.      */
  94.     private $codeGuichet;
  95.     /**
  96.      * @ORM\Column(name="numCompte", type="string", length=255, nullable=true)
  97.      */
  98.     private $numCompte;
  99.     /**
  100.      * @ORM\Column(name="cleCompte", type="string", length=255, nullable=true)
  101.      */
  102.     private $cleCompte;
  103.     /**
  104.      * @ORM\Column(name="IBAN", type="string", length=255, nullable=true)
  105.      */
  106.     private $iBAN;
  107.     /**
  108.      * @ORM\Column(name="BIC", type="string", length=255, nullable=true)
  109.      */
  110.     private $bIC;
  111.     /**
  112.      * @ORM\Column(name="numRUM", type="string", length=255, nullable=true)
  113.      */
  114.     private $numRUM;
  115.     /**
  116.      * @ORM\Column(name="dateContrat", type="datetime", nullable=true)
  117.      */
  118.     private $dateContrat;
  119.     /**
  120.      * @ORM\Column(name="lieuContrat", type="string", length=255, nullable=true)
  121.      */
  122.     private $lieuContrat;
  123.     /**
  124.      * @ORM\Column(name="refTire", type="string", length=255, nullable=true)
  125.      */
  126.     private $refTire;
  127.     /**
  128.      * @ORM\Column(name="refTireur", type="string", length=255, nullable=true)
  129.      */
  130.     private $refTireur;
  131.     /**
  132.      * @ORM\Column(name="codeBanque", type="string", length=255, nullable=true)
  133.      */
  134.     private $codeBanque;
  135.     /**
  136.      * @ORM\Column(name="codeTransfert", type="string", length=255, nullable=true)
  137.      */
  138.     private $codeTransfert;
  139.     
  140.     /**
  141.      * @ORM\Column(name="codeAcceptation", type="string", length=255, nullable=true)
  142.      */
  143.     private $codeAcceptation;
  144.     
  145.     /**
  146.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="lcrs")
  147.      * @ORM\JoinColumn(nullable=true)
  148.      */
  149.     private $utilisateur;
  150.     
  151.     /**
  152.      * @ORM\ManyToOne(targetEntity="App\Entity\Clients\Client", inversedBy="lcrs")
  153.      * @ORM\JoinColumn(nullable=true)
  154.      */
  155.     private $client;
  156.     
  157.     /**
  158.      * @ORM\ManyToOne(targetEntity="App\Entity\Articles\Devise", inversedBy="lcrs")
  159.      * @ORM\JoinColumn(nullable=true)
  160.      */
  161.     private $devise;
  162.     
  163.     /**
  164.     * @ORM\OneToMany(targetEntity="App\Entity\GestionComerciale\Commande", cascade={"persist"}, mappedBy="lcr")
  165.     */
  166.     private $factures;
  167.     
  168.     /**
  169.      * @ORM\ManyToOne(targetEntity="App\Entity\GestionComerciale\BordereauLCR", inversedBy="LCRs")
  170.      * @ORM\JoinColumn(nullable=true)
  171.      */
  172.     private $bordereauLCR;
  173.     
  174.     /**
  175.      * @ORM\ManyToOne(targetEntity="App\Entity\FO\CompteBancaire", inversedBy="lcrs")
  176.      * @ORM\JoinColumn(nullable=true)
  177.      */
  178.     private $compteBancaireSociete;
  179.     
  180.     /**
  181.      * @ORM\Column(name="transfert_compta", type="boolean")
  182.      */
  183.     private $transfertCompta;
  184.     
  185.     public function __construct()
  186.     {
  187.         $this->date             = new Datetime();
  188.         $this->dateEcheance     = new Datetime();
  189.         $this->numPiece         "numPiece";
  190.         //$this->numTraite = "numTraite";
  191.         $this->bor              false;
  192.         $this->transfertCompta  false;
  193.         $this->factures         = new ArrayCollection();
  194.     }
  195.     public function getId(): int
  196.     {
  197.         return $this->id;
  198.     }
  199.     public function setNomClient(string $nomClient): LCR
  200.     {
  201.         $this->nomClient $nomClient;
  202.         return $this;
  203.     }
  204.     public function getNomClient(): string
  205.     {
  206.         return $this->nomClient;
  207.     }
  208.     public function setNumPiece(string $numPiece): LCR
  209.     {
  210.         $this->numPiece $numPiece;
  211.         return $this;
  212.     }
  213.     public function getNumPiece(): string
  214.     {
  215.         return $this->numPiece;
  216.     }
  217.     public function setNumTraite(string $numTraite): LCR
  218.     {
  219.         $this->numTraite $numTraite;
  220.         return $this;
  221.     }
  222.     public function getNumTraite(): string
  223.     {
  224.         return $this->numTraite;
  225.     }
  226.     public function setDate(DateTime $date)
  227.     {
  228.         $this->date $date;
  229.         return $this;
  230.     }
  231.     public function getDate(): DateTime
  232.     {
  233.         return $this->date;
  234.     }
  235.     public function setDateEcheance(DateTime $dateEcheance): LCR
  236.     {
  237.         $this->dateEcheance $dateEcheance;
  238.         return $this;
  239.     }
  240.     public function getDateEcheance(): DateTime
  241.     {
  242.         return $this->dateEcheance;
  243.     }
  244.     public function setCodeAgence(?string $codeAgence): LCR
  245.     {
  246.         $this->codeAgence $codeAgence;
  247.         return $this;
  248.     }
  249.     public function getCodeAgence(): ?string
  250.     {
  251.         return $this->codeAgence;
  252.     }
  253.     public function setNomAgence(?string $nomAgence): LCR
  254.     {
  255.         $this->nomAgence $nomAgence;
  256.         return $this;
  257.     }
  258.     public function getNomAgence(): ?string
  259.     {
  260.         return $this->nomAgence;
  261.     }
  262.     public function setMontant(float $montant): LCR
  263.     {
  264.         $this->montant $montant;
  265.         return $this;
  266.     }
  267.     public function getMontant(): float
  268.     {
  269.         return $this->montant;
  270.     }
  271.     public function setDomiciliation(?string $domiciliation): LCR
  272.     {
  273.         $this->domiciliation $domiciliation;
  274.         return $this;
  275.     }
  276.     public function getDomiciliation(): ?string
  277.     {
  278.         return $this->domiciliation;
  279.     }
  280.     public function setBor(bool $bor): LCR
  281.     {
  282.         $this->bor $bor;
  283.         return $this;
  284.     }
  285.     public function getBor(): bool
  286.     {
  287.         return $this->bor;
  288.     }
  289.     public function setCodeEtablissement(string $codeEtablissement): LCR
  290.     {
  291.         $this->codeEtablissement $codeEtablissement;
  292.         return $this;
  293.     }
  294.     public function getCodeEtablissement(): string
  295.     {
  296.         return $this->codeEtablissement;
  297.     }
  298.     public function setCodeGuichet(?string $codeGuichet): LCR
  299.     {
  300.         $this->codeGuichet $codeGuichet;
  301.         return $this;
  302.     }
  303.     public function getCodeGuichet(): ?string
  304.     {
  305.         return $this->codeGuichet;
  306.     }
  307.     public function setNumCompte(?string $numCompte): LCR
  308.     {
  309.         $this->numCompte $numCompte;
  310.         return $this;
  311.     }
  312.     public function getNumCompte(): ?string
  313.     {
  314.         return $this->numCompte;
  315.     }
  316.     public function setCleCompte(?string $cleCompte): LCR
  317.     {
  318.         $this->cleCompte $cleCompte;
  319.         return $this;
  320.     }
  321.     public function getCleCompte(): ?string
  322.     {
  323.         return $this->cleCompte;
  324.     }
  325.     public function setIBAN(?string $iBAN): LCR
  326.     {
  327.         $this->iBAN $iBAN;
  328.         return $this;
  329.     }
  330.     public function getIBAN(): ?string
  331.     {
  332.         return $this->iBAN;
  333.     }
  334.     public function setBIC(?string $bIC): LCR
  335.     {
  336.         $this->bIC $bIC;
  337.         return $this;
  338.     }
  339.     public function getBIC(): ?string
  340.     {
  341.         return $this->bIC;
  342.     }
  343.     public function setNumRUM(?string $numRUM): LCR
  344.     {
  345.         $this->numRUM $numRUM;
  346.         return $this;
  347.     }
  348.     public function getNumRUM(): ?string
  349.     {
  350.         return $this->numRUM;
  351.     }
  352.     public function setDateContrat(?DateTime $dateContrat): LCR
  353.     {
  354.         $this->dateContrat $dateContrat;
  355.         return $this;
  356.     }
  357.     public function getDateContrat(): ?DateTime
  358.     {
  359.         return $this->dateContrat;
  360.     }
  361.     public function setLieuContrat(?string $lieuContrat): LCR
  362.     {
  363.         $this->lieuContrat $lieuContrat;
  364.         return $this;
  365.     }
  366.     public function getLieuContrat(): ?string
  367.     {
  368.         return $this->lieuContrat;
  369.     }
  370.     public function setRefTire(?string $refTire): LCR
  371.     {
  372.         $this->refTire $refTire;
  373.         return $this;
  374.     }
  375.     public function getRefTire(): ?string
  376.     {
  377.         return $this->refTire;
  378.     }
  379.     public function setRefTireur(?string $refTireur): LCR
  380.     {
  381.         $this->refTireur $refTireur;
  382.         return $this;
  383.     }
  384.     public function getRefTireur(): ?string
  385.     {
  386.         return $this->refTireur;
  387.     }
  388.     public function setCodeBanque(?string $codeBanque): LCR
  389.     {
  390.         $this->codeBanque $codeBanque;
  391.         return $this;
  392.     }
  393.     public function getCodeBanque(): ?string
  394.     {
  395.         return $this->codeBanque;
  396.     }
  397.     public function setCodeTransfert(?string $codeTransfert): LCR
  398.     {
  399.         $this->codeTransfert $codeTransfert;
  400.         return $this;
  401.     }
  402.     public function getCodeTransfert(): ?string
  403.     {
  404.         return $this->codeTransfert;
  405.     }
  406.     public function setDateSuppression(?DateTime $dateSuppression): LCR
  407.     {
  408.         $this->dateSuppression $dateSuppression;
  409.         return $this;
  410.     }
  411.     public function getDateSuppression(): ?DateTime
  412.     {
  413.         return $this->dateSuppression;
  414.     }
  415.     public function setDateMaj(?DateTime $dateMaj): LCR
  416.     {
  417.         $this->dateMaj $dateMaj;
  418.         return $this;
  419.     }
  420.     public function getDateMaj(): ?DateTime
  421.     {
  422.         return $this->dateMaj;
  423.     }
  424.     public function setUtilisateur(?Utilisateur $utilisateur): LCR
  425.     {
  426.         $this->utilisateur $utilisateur;
  427.         return $this;
  428.     }
  429.     public function getUtilisateur(): ?Utilisateur
  430.     {
  431.         return $this->utilisateur;
  432.     }
  433.     public function setClient(?Client $client): LCR
  434.     {
  435.         $this->client $client;
  436.         return $this;
  437.     }
  438.     public function getClient(): ?Client
  439.     {
  440.         return $this->client;
  441.     }
  442.     public function setDevise(?Devise $devise): LCR
  443.     {
  444.         $this->devise $devise;
  445.         return $this;
  446.     }
  447.     public function getDevise(): ?Devise
  448.     {
  449.         return $this->devise;
  450.     }
  451.     public function addFacture(Commande $facture): LCR
  452.     {
  453.         $this->factures[] = $facture;
  454.         $facture->setLcr($this);
  455.         return $this;
  456.     }
  457.     public function removeFacture(Commande $facture)
  458.     {
  459.         $this->factures->removeElement($facture);
  460.     }
  461.     public function getFactures(): Collection
  462.     {
  463.         return $this->factures;
  464.     }
  465.     public function setCodeAcceptation(?string $codeAcceptation): LCR
  466.     {
  467.         $this->codeAcceptation $codeAcceptation;
  468.         return $this;
  469.     }
  470.     public function getCodeAcceptation(): ?string
  471.     {
  472.         return $this->codeAcceptation;
  473.     }
  474.     public function setDomiciliation2(?string $domiciliation2): LCR
  475.     {
  476.         $this->domiciliation2 $domiciliation2;
  477.         return $this;
  478.     }
  479.     public function getDomiciliation2(): ?string
  480.     {
  481.         return $this->domiciliation2;
  482.     }
  483.     public function setBordereauLCR(?BordereauLCR $bordereauLCR): LCR
  484.     {
  485.         $this->bordereauLCR $bordereauLCR;
  486.         return $this;
  487.     }
  488.     public function getBordereauLCR(): ?BordereauLCR
  489.     {
  490.         return $this->bordereauLCR;
  491.     }
  492.     public function setCompteBancaireSociete(?CompteBancaire $compteBancaireSociete): LCR
  493.     {
  494.         $this->compteBancaireSociete $compteBancaireSociete;
  495.         return $this;
  496.     }
  497.     public function getCompteBancaireSociete(): ?CompteBancaire
  498.     {
  499.         return $this->compteBancaireSociete;
  500.     }
  501.     public function setTransfertCompta(bool $transfertCompta): LCR
  502.     {
  503.         $this->transfertCompta $transfertCompta;
  504.         return $this;
  505.     }
  506.     public function getTransfertCompta(): bool
  507.     {
  508.         return $this->transfertCompta;
  509.     }
  510. }