src/Entity/Taxes/Taxe.php line 20

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Taxes;
  3. use App\Entity\Utilisateur\Utilisateur;
  4. use DateTime;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Gedmo\Mapping\Annotation as Gedmo;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. use App\Annotations\SecuredEntity;
  9. /**
  10.  * Taxe
  11.  *
  12.  * @ORM\Table("taxte__taxe")
  13.  * @ORM\Entity(repositoryClass="App\Repository\Taxes\TaxeRepository")
  14.  * @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
  15.  * @SecuredEntity(name="Taxe", group="REGLAGES")
  16.  */
  17. class Taxe
  18. {
  19.     /**
  20.      * @ORM\Column(name="id", type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.     /**
  26.      * @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="taxes")
  27.      * @ORM\JoinColumn(nullable=true)
  28.      */
  29.     private $utilisateur;
  30.     /**
  31.      * @ORM\Column(name="date", type="datetime", nullable=true)
  32.      */
  33.     private $date;
  34.     /**
  35.      * @ORM\Column(name="libelle", type="string", length=255)
  36.      * @Assert\NotBlank(message="Libelle obligatoire")
  37.      */
  38.     private $libelle;
  39.     /**
  40.      * @ORM\Column(name="dateSuppression", type="datetime", nullable=true)
  41.      */
  42.     private $dateSuppression;
  43.     /**
  44.      * @ORM\Column(name="dateMaj", type="datetime", nullable=true)
  45.      * @Gedmo\Timestampable(on="update")
  46.      */
  47.     private $dateMaj;
  48.     /**
  49.      * @ORM\Column(name="taux", type="float", nullable=true)
  50.      * @Assert\NotBlank(message="Taux obligatoire")
  51.      */
  52.     private $taux;
  53.     
  54.     /**
  55.      * @ORM\Column(name="compta_achat", type="string", length=255)
  56.      * @Assert\NotBlank(message="Compta achat obligatoire")
  57.      */
  58.     private $comptaAchat;
  59.     
  60.     /**
  61.      * @ORM\Column(name="compta_vente", type="string", length=255)
  62.      * @Assert\NotBlank(message="Compta vente obligatoire")
  63.      */
  64.     private $comptaVente;
  65.     /**
  66.      * @ORM\Column(name="tva_deductible_intracommunautaire", type="string", length=255, nullable=true)
  67.      */
  68.     private $tvaDeductibleIntracommunautaire;
  69.     /**
  70.      * @ORM\Column(name="tva_collectee_intracommunautaire", type="string", length=255, nullable=true)
  71.      */
  72.     private $tvaCollecteeIntracommunautaire;
  73.     public function __construct()
  74.     {
  75.         $this->date = new Datetime();
  76.     }
  77.     public function getId(): int
  78.     {
  79.         return $this->id;
  80.     }
  81.     public function setDate(?DateTime $date): Taxe
  82.     {
  83.         $this->date $date;
  84.         return $this;
  85.     }
  86.     public function getDate(): ?DateTime
  87.     {
  88.         return $this->date;
  89.     }
  90.     public function setLibelle(string $libelle): Taxe
  91.     {
  92.         $this->libelle $libelle;
  93.         return $this;
  94.     }
  95.     public function getLibelle(): string
  96.     {
  97.         return $this->libelle;
  98.     }
  99.     public function setDateSuppression(?DateTime $dateSuppression): Taxe
  100.     {
  101.         $this->dateSuppression $dateSuppression;
  102.         return $this;
  103.     }
  104.     public function getDateSuppression(): ?DateTime
  105.     {
  106.         return $this->dateSuppression;
  107.     }
  108.     public function setDateMaj(?DateTime $dateMaj): Taxe
  109.     {
  110.         $this->dateMaj $dateMaj;
  111.         return $this;
  112.     }
  113.     public function getDateMaj(): ?DateTime
  114.     {
  115.         return $this->dateMaj;
  116.     }
  117.     public function setTaux(?float $taux): Taxe
  118.     {
  119.         $this->taux $taux;
  120.         return $this;
  121.     }
  122.     public function getTaux(): ?float
  123.     {
  124.         return $this->taux;
  125.     }
  126.     public function setUtilisateur(?Utilisateur $utilisateur): Taxe
  127.     {
  128.         $this->utilisateur $utilisateur;
  129.         return $this;
  130.     }
  131.     public function getUtilisateur(): ?Utilisateur
  132.     {
  133.         return $this->utilisateur;
  134.     }
  135.     public function setComptaAchat(string $comptaAchat): Taxe
  136.     {
  137.         $this->comptaAchat $comptaAchat;
  138.         return $this;
  139.     }
  140.     public function getComptaAchat(): string
  141.     {
  142.         return $this->comptaAchat;
  143.     }
  144.     public function setComptaVente(string $comptaVente): Taxe
  145.     {
  146.         $this->comptaVente $comptaVente;
  147.         return $this;
  148.     }
  149.     public function getComptaVente(): string
  150.     {
  151.         return $this->comptaVente;
  152.     }
  153.     public function setComptaRetrocessionAchat(string $comptaRetrocessionAchat): Taxe
  154.     {
  155.         $this->comptaRetrocessionAchat $comptaRetrocessionAchat;
  156.         return $this;
  157.     }
  158.     public function getComptaRetrocessionAchat(): string
  159.     {
  160.         return $this->comptaRetrocessionAchat;
  161.     }
  162.     public function setComptaRetrocessionVente(string $comptaRetrocessionVente): Taxe
  163.     {
  164.         $this->comptaRetrocessionVente $comptaRetrocessionVente;
  165.         return $this;
  166.     }
  167.     public function getComptaRetrocessionVente(): string
  168.     {
  169.         return $this->comptaRetrocessionVente;
  170.     }
  171.     public function setTvaCollecteeIntracommunautaire(?string $tvaCollecteeIntracommunautaire): Taxe
  172.     {
  173.         $this->tvaCollecteeIntracommunautaire $tvaCollecteeIntracommunautaire;
  174.         return $this;
  175.     }
  176.     public function getTvaCollecteeIntracommunautaire(): string
  177.     {
  178.         return $this->tvaCollecteeIntracommunautaire;
  179.     }
  180.     public function setTvaDeductibleIntracommunautaire(?string $tvaDeductibleIntracommunautaire): Taxe
  181.     {
  182.         $this->tvaDeductibleIntracommunautaire $tvaDeductibleIntracommunautaire;
  183.         return $this;
  184.     }
  185.     public function getTvaDeductibleIntracommunautaire(): string
  186.     {
  187.         return $this->tvaDeductibleIntracommunautaire;
  188.     }
  189. }