Documentation

Commande
in package

Commande

Tags
ORM\Table

(name="commande", indexes=(name="", columns={"numero")})

ORM\Entity

(repositoryClass=CommandeRepository::class)

Table of Contents

$accomptes  : Collection|Accompte
$client  : Client
$contenu  : Collection|Details
$dateExp  : DateTime
$dateLimiteExp  : DateTime
$dateOrder  : DateTime
$details  : Collection|Details
$devis  : Devis|Collection
$echangeClients  : EchangeClient|Collection
$etapes  : Etapes|Collection
$fournisseur  : Fournisseur
$id  : int
$infos  : string
$intervention  : Intervention
$livraisons  : Livraison|Collection
$montant  : float
$numero  : string
$piece_jointe  : PieceJointe|Collection
$savs  : Sav|Collection
$status  : Status
$transporteur  : Transporteur|null
$tva  : float
__construct()  : mixed
__toString()  : mixed
addAccompte()  : self
addContenu()  : self
addDetail()  : self
addDevis()  : self
addEchangeClient()  : self
addEtape()  : self
addLivraison()  : self
addPieceJointe()  : self
addSav()  : self
clearDetails()  : mixed
clientWarned()  : bool
containsCompo()  : bool
getAccomptes()  : Collection|array<string|int, Accompte>
getArticle()  : Details|null
getClient()  : Client|null
getClientFromCommandeFournisseur()  : array<string|int, mixed>
getCommandeFournisseur()  : Commande|null
getContenu()  : Collection
getDate()  : mixed
getDateExp()  : Datetime|null
getDateLimiteExp()  : string
getDateOrder()  : DateTime
getDetails()  : Collection
getDevis()  : Collection<int, Devis>
getEchangeClients()  : Collection
getEtapeByStatus()  : mixed
getEtapes()  : Collection
getFormattedDateExp()  : string
getFormattedDateOrder()  : string
getFournisseur()  : Fournisseur|null
getId()  : int|null
getInfos()  : string|null
getIntervention()  : Intervention|null
getLivraisons()  : Collection<int, Livraison>
getMontant()  : float|null
getNumero()  : string|null
getPieceJointe()  : Collection
getSavs()  : Collection
getStatus()  : Status|null
getTemps()  : int
getTotalHT()  : float
getTotalTTC()  : float|int
getTotalTVA()  : float
getTransporteur()  : Transporteur|null
getTva()  : float|null
hasCommandeFournisseur()  : bool|null
hasContenu()  : bool
hasDetails()  : bool
hasEtapes()  : bool
hasFournisseur()  : bool
hasLivraisons()  : bool
hasPc()  : bool
hasPieceJointe()  : bool
hasSAV()  : bool
hasTransporteur()  : bool
is()  : mixed
isBoutique()  : bool
isLate()  : bool
isPaid()  : bool
removeAccompte()  : self
removeContenu()  : self
removeDetail()  : self
removeDetails()  : self
removeDevis()  : self
removeEchangeClient()  : self
removeEtape()  : self
removeLivraison()  : self
removePieceJointe()  : self
removeSav()  : self
sameContenuDetails()  : bool
setClient()  : self
setDateExp()  : self
setDateLimiteExp()  : self
setDateOrder()  : self
setFournisseur()  : self
setInfos()  : self
setIntervention()  : self
setMontant()  : self
setNumero()  : self
setStatus()  : self
setTransporteur()  : self
setTva()  : self
sumAccompte()  : int

Properties

$accomptes

private Collection|Accompte $accomptes
Tags
ORM\OneToMany

(targetEntity=Accompte::class, mappedBy="commande",cascade={"remove"})

$client

private Client $client
Tags
ORM\ManyToOne

(targetEntity=Client::class, inversedBy="commandes")

ORM\JoinColumn

(nullable=false)

$contenu

private Collection|Details $contenu
Tags
ORM\OneToMany

(targetEntity=Details::class, mappedBy="commande",cascade={"persist","remove"})

$dateExp

private DateTime $dateExp
Tags
ORM\Column

(name="date_exp", type="datetime", nullable=true)

$dateLimiteExp

private DateTime $dateLimiteExp
Tags
ORM\Column

(name="date_limite_exp", type="datetime", nullable=true)

$dateOrder

private DateTime $dateOrder
Tags
ORM\Column

(name="date_order", type="datetime", nullable=false)

$details

private Collection|Details $details
Tags
ORM\OneToMany

(targetEntity=Details::class, mappedBy="commandeFournisseur",cascade={"persist","remove"})

$devis

private Devis|Collection $devis
Tags
ORM\OneToMany

(targetEntity=Devis::class, mappedBy="commande")

$echangeClients

private EchangeClient|Collection $echangeClients
Tags
ORM\OneToMany

(targetEntity=EchangeClient::class, mappedBy="commande")

$etapes

private Etapes|Collection $etapes
Tags
ORM\OneToMany

(targetEntity=Etapes::class, mappedBy="commande",cascade={"persist","remove"})

$fournisseur

private Fournisseur $fournisseur
Tags
ORM\ManyToOne

(targetEntity=Fournisseur::class, inversedBy="commande")

$id

private int $id
Tags
ORM\Column

(name="id", type="integer", nullable=false)

ORM\Id
ORM\GeneratedValue

(strategy="IDENTITY")

$infos

private string $infos
Tags
ORM\Column

(type="text", nullable=true)

$intervention

private Intervention $intervention
Tags
ORM\ManyToOne

(targetEntity=Intervention::class, inversedBy="commande")

$livraisons

private Livraison|Collection $livraisons
Tags
ORM\OneToMany

(targetEntity=Livraison::class, mappedBy="commande",cascade={"persist","remove"})

$montant

private float $montant
Tags
ORM\Column

(name="montant", type="float", precision=10, scale=0, nullable=false)

$numero

private string $numero
Tags
ORM\Column

(name="numero", type="string", length=255, nullable=false)

$piece_jointe

private PieceJointe|Collection $piece_jointe
Tags
ORM\OneToMany

(targetEntity=PieceJointe::class, mappedBy="commande")

$savs

private Sav|Collection $savs
Tags
ORM\OneToMany

(targetEntity=Sav::class, mappedBy="commande", orphanRemoval=true)

$status

private Status $status
Tags
ORM\ManyToOne

(targetEntity=Status::class, inversedBy="commande")

ORM\JoinColumn

(nullable=false)

$transporteur

private Transporteur|null $transporteur
Tags
ORM\ManyToOne

(targetEntity=Transporteur::class, inversedBy="commande",cascade={"persist"})

$tva

private float $tva
Tags
ORM\Column

(name="tva", type="float", precision=10, scale=0, nullable=false)

Methods

__construct()

public __construct([mixed $client = null ][, mixed $numero = null ]) : mixed
Parameters
$client : mixed = null
$numero : mixed = null
Return values
mixed

__toString()

public __toString() : mixed
Return values
mixed

addContenu()

public addContenu(Details $contenu) : self
Parameters
$contenu : Details
Return values
self

addDevis()

public addDevis(Devis $devi) : self
Parameters
$devi : Devis
Return values
self

addEtape()

public addEtape(Etapes $etape) : self
Parameters
$etape : Etapes
Return values
self

addSav()

public addSav(Sav $sav) : self
Parameters
$sav : Sav
Return values
self

clearDetails()

public clearDetails() : mixed
Return values
mixed

clientWarned()

public clientWarned() : bool
Return values
bool

containsCompo()

public containsCompo(mixed $compo) : bool
Parameters
$compo : mixed
Return values
bool

getAccomptes()

public getAccomptes() : Collection|array<string|int, Accompte>
Return values
Collection|array<string|int, Accompte>

getArticle()

public getArticle(mixed $article) : Details|null
Parameters
$article : mixed
Return values
Details|null

getClientFromCommandeFournisseur()

public getClientFromCommandeFournisseur() : array<string|int, mixed>
Return values
array<string|int, mixed>

getContenu()

public getContenu() : Collection
Return values
Collection

getDate()

public getDate() : mixed
Return values
mixed

getDateExp()

public getDateExp() : Datetime|null
Return values
Datetime|null

getDateLimiteExp()

public getDateLimiteExp() : string
Return values
string

getDateOrder()

public getDateOrder() : DateTime
Return values
DateTime

getDetails()

public getDetails() : Collection
Return values
Collection

getDevis()

public getDevis() : Collection<int, Devis>
Return values
Collection<int, Devis>

getEchangeClients()

public getEchangeClients() : Collection
Return values
Collection

getEtapeByStatus()

public getEtapeByStatus(mixed $id) : mixed
Parameters
$id : mixed
Return values
mixed

getEtapes()

public getEtapes() : Collection
Return values
Collection

getFormattedDateExp()

public getFormattedDateExp() : string
Return values
string

getFormattedDateOrder()

public getFormattedDateOrder() : string
Return values
string

getId()

public getId() : int|null
Return values
int|null

getInfos()

public getInfos() : string|null
Return values
string|null

getMontant()

public getMontant() : float|null
Return values
float|null

getNumero()

public getNumero() : string|null
Return values
string|null

getPieceJointe()

public getPieceJointe() : Collection
Return values
Collection

getSavs()

public getSavs() : Collection
Return values
Collection

getTemps()

public getTemps() : int
Return values
int

getTotalHT()

public getTotalHT(mixed $tva) : float
Parameters
$tva : mixed
Return values
float

getTotalTTC()

public getTotalTTC() : float|int
Return values
float|int

getTotalTVA()

public getTotalTVA(mixed $tva) : float
Parameters
$tva : mixed
Return values
float

getTva()

public getTva() : float|null
Return values
float|null

hasCommandeFournisseur()

public hasCommandeFournisseur() : bool|null
Return values
bool|null

hasContenu()

public hasContenu() : bool
Return values
bool

hasDetails()

public hasDetails() : bool
Return values
bool

hasEtapes()

public hasEtapes() : bool
Return values
bool

hasFournisseur()

public hasFournisseur() : bool
Return values
bool

hasLivraisons()

public hasLivraisons() : bool
Return values
bool

hasPc()

public hasPc() : bool
Return values
bool

hasPieceJointe()

public hasPieceJointe() : bool
Return values
bool

hasSAV()

public hasSAV() : bool
Return values
bool

hasTransporteur()

public hasTransporteur() : bool
Return values
bool

is()

public is(string $string) : mixed
Parameters
$string : string
Return values
mixed

isBoutique()

public isBoutique() : bool
Return values
bool

isLate()

public isLate() : bool
Return values
bool

isPaid()

public isPaid() : bool
Return values
bool

removeAccompte()

public removeAccompte(Accompte $accompte) : self
Parameters
$accompte : Accompte
Return values
self

removeContenu()

public removeContenu(Details $contenu) : self
Parameters
$contenu : Details
Return values
self

removeDetail()

public removeDetail(Details $detail) : self
Parameters
$detail : Details
Return values
self

removeDetails()

public removeDetails(Details $contenu) : self
Parameters
$contenu : Details
Return values
self

removeDevis()

public removeDevis(Devis $devi) : self
Parameters
$devi : Devis
Return values
self

removeEtape()

public removeEtape(Etapes $etape) : self
Parameters
$etape : Etapes
Return values
self

removeSav()

public removeSav(Sav $sav) : self
Parameters
$sav : Sav
Return values
self

sameContenuDetails()

public sameContenuDetails() : bool
Return values
bool

setClient()

public setClient(Client|null $client) : self
Parameters
$client : Client|null
Return values
self

setDateExp()

public setDateExp(DateTime|null $dateExp) : self
Parameters
$dateExp : DateTime|null
Return values
self

setDateLimiteExp()

public setDateLimiteExp(DateTime $dateLimiteExp) : self
Parameters
$dateLimiteExp : DateTime
Return values
self

setDateOrder()

public setDateOrder(DateTime $dateOrder) : self
Parameters
$dateOrder : DateTime
Return values
self

setInfos()

public setInfos(string|null $infos) : self
Parameters
$infos : string|null
Return values
self

setMontant()

public setMontant(float $montant) : self
Parameters
$montant : float
Return values
self

setNumero()

public setNumero(string $numero) : self
Parameters
$numero : string
Return values
self

setStatus()

public setStatus(Status|null $status) : self
Parameters
$status : Status|null
Return values
self

setTva()

public setTva(float $tva) : self
Parameters
$tva : float
Return values
self

sumAccompte()

public sumAccompte() : int
Return values
int

Search results