<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use JMS\Serializer\Annotation\ExclusionPolicy;
use JMS\Serializer\Annotation\Exclude;
use JMS\Serializer\Annotation\Expose;
use JMS\Serializer\Annotation\MaxDepth;
/**
* Clientvente
*
* @ORM\Table(name="clientvente", options={"collate"="latin1_general_ci","charset"="latin1"})
* @ORM\Entity(repositoryClass="App\Repository\ClientventeRepository")
* @ORM\HasLifecycleCallbacks()
* @ExclusionPolicy("all")
*/
class Clientvente
{
/**
* @var integer
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
* @Expose
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Fournisseur", cascade={"persist"})
* @ORM\JoinColumn(nullable=false)
* @Expose
* @MaxDepth(1)
*/
private $idfournisseur;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Client", cascade={"persist"})
* @ORM\JoinColumn(nullable=false)
* @Expose
* @MaxDepth(1)
*/
private $idclient;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Admin", cascade={"persist"})
* @ORM\JoinColumn(nullable=false)
* @Expose
* @MaxDepth(1)
*/
private $idadmin;
/**
* @var \DateTime
*
* @ORM\Column(name="datefr", type="date", nullable=false)
* @Expose
*/
private $datefr;
/**
* @var float
*
* @ORM\Column(name="montantht", type="decimal", nullable=false, precision=8, scale=2)
* @Expose
*/
private $montantht;
/**
* @var float
*
* @ORM\Column(name="commission", type="decimal", nullable=false, precision=8, scale=2)
*/
private $commission;
/**
* @var float
*
* @ORM\Column(name="admin_com", type="decimal", nullable=false, precision=8, scale=2)
*/
private $adminCom;
/**
* @var float
*
* @ORM\Column(name="solde", type="decimal", nullable=false, precision=8, scale=2)
*/
private $solde;
/**
* @var float
*
* @ORM\Column(name="soldettc", type="decimal", nullable=false, precision=8, scale=2)
*/
private $soldettc;
/**
* @var \DateTime
*
* @ORM\Column(name="paye_admin", type="date", nullable=false)
*/
private $payeAdmin;
/**
* Get id
*
* @return integer
*/
public function getId()
{
return $this->id;
}
/**
* Set datefr
*
* @param \DateTime $datefr
* @return Clientvente
*/
public function setDatefr($datefr)
{
$this->datefr = $datefr;
return $this;
}
/**
* Get datefr
*
* @return \DateTime
*/
public function getDatefr()
{
return $this->datefr;
}
/**
* Set montantht
*
* @param float $montantht
* @return Clientvente
*/
public function setMontantht($montantht)
{
$this->montantht = $montantht;
return $this;
}
/**
* Get montantht
*
* @return float
*/
public function getMontantht()
{
return $this->montantht;
}
/**
* Set commission
*
* @param float $commission
* @return Clientvente
*/
public function setCommission($commission)
{
$this->commission = $commission;
return $this;
}
/**
* Get commission
*
* @return float
*/
public function getCommission()
{
return $this->commission;
}
/**
* Set adminCom
*
* @param float $adminCom
* @return Clientvente
*/
public function setAdminCom($adminCom)
{
$this->adminCom = $adminCom;
return $this;
}
/**
* Get adminCom
*
* @return float
*/
public function getAdminCom()
{
return $this->adminCom;
}
/**
* Set solde
*
* @param float $solde
* @return Clientvente
*/
public function setSolde($solde)
{
$this->solde = $solde;
return $this;
}
/**
* Get solde
*
* @return float
*/
public function getSolde()
{
return $this->solde;
}
/**
* Set soldettc
*
* @param float $soldettc
* @return Clientvente
*/
public function setSoldettc($soldettc)
{
$this->soldettc = $soldettc;
return $this;
}
/**
* Get soldettc
*
* @return float
*/
public function getSoldettc()
{
return $this->soldettc;
}
/**
* Set payeAdmin
*
* @param \DateTime $payeAdmin
* @return Clientvente
*/
public function setPayeAdmin($payeAdmin)
{
$this->payeAdmin = $payeAdmin;
return $this;
}
/**
* Get payeAdmin
*
* @return \DateTime
*/
public function getPayeAdmin()
{
return $this->payeAdmin;
}
/**
* Set idfournisseur
*
* @param Fournisseur $idfournisseur
* @return Clientvente
*/
public function setIdfournisseur(Fournisseur $idfournisseur)
{
$this->idfournisseur = $idfournisseur;
return $this;
}
/**
* Get idfournisseur
*
* @return Fournisseur
*/
public function getIdfournisseur()
{
return $this->idfournisseur;
}
/**
* Set idclient
*
* @param Client $idclient
* @return Clientvente
*/
public function setIdclient(Client $idclient)
{
$this->idclient = $idclient;
return $this;
}
/**
* Get idclient
*
* @return Client
*/
public function getIdclient()
{
return $this->idclient;
}
/**
* Set idadmin
*
* @param Admin $idadmin
* @return Clientvente
*/
public function setIdadmin(Admin $idadmin)
{
$this->idadmin = $idadmin;
return $this;
}
/**
* Get idadmin
*
* @return Admin
*/
public function getIdadmin()
{
return $this->idadmin;
}
}