<?php
namespace App\Entity\Taxes;
use App\Entity\Utilisateur\Utilisateur;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Symfony\Component\Validator\Constraints as Assert;
use App\Annotations\SecuredEntity;
/**
* Taxe
*
* @ORM\Table("taxte__taxe")
* @ORM\Entity(repositoryClass="App\Repository\Taxes\TaxeRepository")
* @Gedmo\SoftDeleteable(fieldName="dateSuppression",timeAware=false)
* @SecuredEntity(name="Taxe", group="REGLAGES")
*/
class Taxe
{
/**
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Utilisateur\Utilisateur", inversedBy="taxes")
* @ORM\JoinColumn(nullable=true)
*/
private $utilisateur;
/**
* @ORM\Column(name="date", type="datetime", nullable=true)
*/
private $date;
/**
* @ORM\Column(name="libelle", type="string", length=255)
* @Assert\NotBlank(message="Libelle obligatoire")
*/
private $libelle;
/**
* @ORM\Column(name="dateSuppression", type="datetime", nullable=true)
*/
private $dateSuppression;
/**
* @ORM\Column(name="dateMaj", type="datetime", nullable=true)
* @Gedmo\Timestampable(on="update")
*/
private $dateMaj;
/**
* @ORM\Column(name="taux", type="float", nullable=true)
* @Assert\NotBlank(message="Taux obligatoire")
*/
private $taux;
/**
* @ORM\Column(name="compta_achat", type="string", length=255)
* @Assert\NotBlank(message="Compta achat obligatoire")
*/
private $comptaAchat;
/**
* @ORM\Column(name="compta_vente", type="string", length=255)
* @Assert\NotBlank(message="Compta vente obligatoire")
*/
private $comptaVente;
/**
* @ORM\Column(name="tva_deductible_intracommunautaire", type="string", length=255, nullable=true)
*/
private $tvaDeductibleIntracommunautaire;
/**
* @ORM\Column(name="tva_collectee_intracommunautaire", type="string", length=255, nullable=true)
*/
private $tvaCollecteeIntracommunautaire;
public function __construct()
{
$this->date = new Datetime();
}
public function getId(): int
{
return $this->id;
}
public function setDate(?DateTime $date): Taxe
{
$this->date = $date;
return $this;
}
public function getDate(): ?DateTime
{
return $this->date;
}
public function setLibelle(string $libelle): Taxe
{
$this->libelle = $libelle;
return $this;
}
public function getLibelle(): string
{
return $this->libelle;
}
public function setDateSuppression(?DateTime $dateSuppression): Taxe
{
$this->dateSuppression = $dateSuppression;
return $this;
}
public function getDateSuppression(): ?DateTime
{
return $this->dateSuppression;
}
public function setDateMaj(?DateTime $dateMaj): Taxe
{
$this->dateMaj = $dateMaj;
return $this;
}
public function getDateMaj(): ?DateTime
{
return $this->dateMaj;
}
public function setTaux(?float $taux): Taxe
{
$this->taux = $taux;
return $this;
}
public function getTaux(): ?float
{
return $this->taux;
}
public function setUtilisateur(?Utilisateur $utilisateur): Taxe
{
$this->utilisateur = $utilisateur;
return $this;
}
public function getUtilisateur(): ?Utilisateur
{
return $this->utilisateur;
}
public function setComptaAchat(string $comptaAchat): Taxe
{
$this->comptaAchat = $comptaAchat;
return $this;
}
public function getComptaAchat(): string
{
return $this->comptaAchat;
}
public function setComptaVente(string $comptaVente): Taxe
{
$this->comptaVente = $comptaVente;
return $this;
}
public function getComptaVente(): string
{
return $this->comptaVente;
}
public function setComptaRetrocessionAchat(string $comptaRetrocessionAchat): Taxe
{
$this->comptaRetrocessionAchat = $comptaRetrocessionAchat;
return $this;
}
public function getComptaRetrocessionAchat(): string
{
return $this->comptaRetrocessionAchat;
}
public function setComptaRetrocessionVente(string $comptaRetrocessionVente): Taxe
{
$this->comptaRetrocessionVente = $comptaRetrocessionVente;
return $this;
}
public function getComptaRetrocessionVente(): string
{
return $this->comptaRetrocessionVente;
}
public function setTvaCollecteeIntracommunautaire(?string $tvaCollecteeIntracommunautaire): Taxe
{
$this->tvaCollecteeIntracommunautaire = $tvaCollecteeIntracommunautaire;
return $this;
}
public function getTvaCollecteeIntracommunautaire(): string
{
return $this->tvaCollecteeIntracommunautaire;
}
public function setTvaDeductibleIntracommunautaire(?string $tvaDeductibleIntracommunautaire): Taxe
{
$this->tvaDeductibleIntracommunautaire = $tvaDeductibleIntracommunautaire;
return $this;
}
public function getTvaDeductibleIntracommunautaire(): string
{
return $this->tvaDeductibleIntracommunautaire;
}
}