dolibarr  9.0.0
Public Member Functions | Protected Attributes | Private Member Functions | List of all members
Facturation Class Reference

Class ot manage invoices for pos module (cashdesk) More...

Public Member Functions

 __construct ()
 Constructor.
 
 ajoutArticle ()
 Add a product into cart. More...
 
 supprArticle ($aArticle)
 Remove a product from panel. More...
 
 calculTotaux ()
 Calcul du total HT, total TTC et montants TVA. More...
 
 raz ()
 Reinitialisation des attributs. More...
 
 id ($aId=null)
 Getter for id. More...
 
 ref ($aRef=null)
 Getter for ref. More...
 
 qte ($aQte=null)
 Getter for qte. More...
 
 stock ($aStock=null)
 Getter for stock. More...
 
 remisePercent ($aRemisePercent=null)
 Getter for remise_percent. More...
 
 montantRemise ($aMontantRemise=null)
 Getter for montant_remise. More...
 
 prix ($aPrix=null)
 Getter for prix. More...
 
 tva ($aTva=null)
 Getter for tva. More...
 
 numInvoice ($aNumFacture=null)
 Get num invoice. More...
 
 getSetPaymentMode ($aModeReglement=null)
 Get payment mode. More...
 
 montantEncaisse ($aMontantEncaisse=null)
 Get amount. More...
 
 montantRendu ($aMontantRendu=null)
 Get amount. More...
 
 paiementLe ($aPaiementLe=null)
 Get payment date. More...
 
 prixTotalHt ($aTotalHt=null)
 Get totla HT. More...
 
 montantTva ($aMontantTva=null)
 Get amount vat. More...
 
 prixTotalTtc ($aTotalTtc=null)
 Get total TTC. More...
 

Protected Attributes

 $num_facture
 Attributs persistants : utilises pour toute la duree de la vente (jusqu'a validation ou annulation) string $num_facture => Numero de la facture (de la forme FAYYMM-XXXX) string $mode_reglement => Mode de reglement (ESP, CB ou CHQ) int $montant_encaisse => Montant encaisse en cas de reglement en especes int $montant_rendu => Monnaie rendue en cas de reglement en especes int $paiement_le => Date de paiement en cas de paiement differe. More...
 

Private Member Functions

 razPers ()
 Reinitialisation des attributs persistants. More...
 

Detailed Description

Class ot manage invoices for pos module (cashdesk)

Definition at line 26 of file Facturation.class.php.

Member Function Documentation

◆ ajoutArticle()

Facturation::ajoutArticle ( )

Add a product into cart.

Returns
void

Definition at line 95 of file Facturation.class.php.

◆ calculTotaux()

Facturation::calculTotaux ( )

Calcul du total HT, total TTC et montants TVA.

Returns
int Total

Definition at line 208 of file Facturation.class.php.

◆ getSetPaymentMode()

Facturation::getSetPaymentMode (   $aModeReglement = null)

Get payment mode.

Parameters
int$aModeReglementPayment mode
Returns
int Payment mode

Definition at line 485 of file Facturation.class.php.

Referenced by razPers().

◆ id()

Facturation::id (   $aId = null)

Getter for id.

Parameters
int$aIdId
Returns
id

Definition at line 286 of file Facturation.class.php.

Referenced by raz().

◆ montantEncaisse()

Facturation::montantEncaisse (   $aMontantEncaisse = null)

Get amount.

Parameters
int$aMontantEncaisseAmount
Returns
int Amount

Definition at line 506 of file Facturation.class.php.

Referenced by razPers().

◆ montantRemise()

Facturation::montantRemise (   $aMontantRemise = null)

Getter for montant_remise.

Parameters
int$aMontantRemiseAmount
Returns
string Amount

Definition at line 403 of file Facturation.class.php.

Referenced by raz().

◆ montantRendu()

Facturation::montantRendu (   $aMontantRendu = null)

Get amount.

Parameters
int$aMontantRenduAmount
Returns
int Amount

Definition at line 527 of file Facturation.class.php.

Referenced by razPers().

◆ montantTva()

Facturation::montantTva (   $aMontantTva = null)

Get amount vat.

Parameters
int$aMontantTvaAmount vat
Returns
int Amount vat

Definition at line 588 of file Facturation.class.php.

Referenced by razPers().

◆ numInvoice()

Facturation::numInvoice (   $aNumFacture = null)

Get num invoice.

Parameters
string$aNumFactureInvoice ref
Returns
string Invoice ref

Definition at line 465 of file Facturation.class.php.

References $num_facture.

Referenced by razPers().

◆ paiementLe()

Facturation::paiementLe (   $aPaiementLe = null)

Get payment date.

Parameters
date$aPaiementLeDate
Returns
date Date

Definition at line 548 of file Facturation.class.php.

Referenced by razPers().

◆ prix()

Facturation::prix (   $aPrix = null)

Getter for prix.

Parameters
int$aPrixPrice
Returns
string Stock

Definition at line 424 of file Facturation.class.php.

Referenced by raz().

◆ prixTotalHt()

Facturation::prixTotalHt (   $aTotalHt = null)

Get totla HT.

Parameters
int$aTotalHtTotal amount
Returns
int Total amount

Definition at line 568 of file Facturation.class.php.

Referenced by razPers().

◆ prixTotalTtc()

Facturation::prixTotalTtc (   $aTotalTtc = null)

Get total TTC.

Parameters
int$aTotalTtcAmount ttc
Returns
int Amount ttc

Definition at line 608 of file Facturation.class.php.

Referenced by razPers().

◆ qte()

Facturation::qte (   $aQte = null)

Getter for qte.

Parameters
int$aQteQty
Returns
int Qty

Definition at line 334 of file Facturation.class.php.

Referenced by raz().

◆ raz()

Facturation::raz ( )

Reinitialisation des attributs.

Returns
void

Definition at line 247 of file Facturation.class.php.

References id(), montantRemise(), prix(), qte(), ref(), remisePercent(), stock(), and tva().

Referenced by __construct().

◆ razPers()

Facturation::razPers ( )
private

Reinitialisation des attributs persistants.

Returns
void

Definition at line 264 of file Facturation.class.php.

References getSetPaymentMode(), montantEncaisse(), montantRendu(), montantTva(), numInvoice(), paiementLe(), prixTotalHt(), and prixTotalTtc().

Referenced by __construct().

◆ ref()

Facturation::ref (   $aRef = null)

Getter for ref.

Parameters
string$aRefRef
Returns
string Ref

Definition at line 311 of file Facturation.class.php.

Referenced by raz().

◆ remisePercent()

Facturation::remisePercent (   $aRemisePercent = null)

Getter for remise_percent.

Parameters
string$aRemisePercentDiscount
Returns
string Discount

Definition at line 380 of file Facturation.class.php.

Referenced by raz().

◆ stock()

Facturation::stock (   $aStock = null)

Getter for stock.

Parameters
string$aStockStock
Returns
string Stock

Definition at line 357 of file Facturation.class.php.

Referenced by raz().

◆ supprArticle()

Facturation::supprArticle (   $aArticle)

Remove a product from panel.

Parameters
int$aArticleId of line into cart to remove
Returns
void

Definition at line 183 of file Facturation.class.php.

◆ tva()

Facturation::tva (   $aTva = null)

Getter for tva.

Parameters
int$aTvaVat
Returns
int Vat

Definition at line 445 of file Facturation.class.php.

Referenced by raz().

Member Data Documentation

◆ $num_facture

Facturation::$num_facture
protected

Attributs persistants : utilises pour toute la duree de la vente (jusqu'a validation ou annulation) string $num_facture => Numero de la facture (de la forme FAYYMM-XXXX) string $mode_reglement => Mode de reglement (ESP, CB ou CHQ) int $montant_encaisse => Montant encaisse en cas de reglement en especes int $montant_rendu => Monnaie rendue en cas de reglement en especes int $paiement_le => Date de paiement en cas de paiement differe.

int $prix_total_ht => Prix total hors taxes int $montant_tva => Montant total de la TVA, tous taux confondus int $prix_total_ttc => Prix total TTC

Definition at line 66 of file Facturation.class.php.

Referenced by numInvoice().


The documentation for this class was generated from the following file: