|
dolibarr
13.0.2
|
Class to 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 () | |
| Calculation of total HT, total TTC and VAT amounts. More... | |
| raz () | |
| Reset attributes. 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... | |
| amountDiscount ($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... | |
| amountCollected ($aMontantEncaisse=null) | |
| Get amount. More... | |
| amountReturned ($aMontantRendu=null) | |
| Get amount. More... | |
| paiementLe ($aPaiementLe=null) | |
| Get payment date. More... | |
| amountWithoutTax ($aTotalHt=null) | |
| Get total HT. More... | |
| amountVat ($aMontantTva=null) | |
| Get amount vat. More... | |
| amountWithTax ($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 () | |
| Resetting persistent attributes. More... | |
Class to manage invoices for pos module (cashdesk)
Definition at line 26 of file Facturation.class.php.
| Facturation::ajoutArticle | ( | ) |
Add a product into cart.
Definition at line 95 of file Facturation.class.php.
References amountDiscount(), calcul_price_total(), getLocalTaxesFromRate(), getTaxesFromId(), price2num(), prix(), qte(), raz(), remisePercent(), and tva().
| Facturation::amountCollected | ( | $aMontantEncaisse = null | ) |
Get amount.
| int | $aMontantEncaisse | Amount |
Definition at line 478 of file Facturation.class.php.
Referenced by razPers().
| Facturation::amountDiscount | ( | $aMontantRemise = null | ) |
Getter for montant_remise.
| int | $aMontantRemise | Amount |
Definition at line 390 of file Facturation.class.php.
Referenced by ajoutArticle(), and raz().
| Facturation::amountReturned | ( | $aMontantRendu = null | ) |
Get amount.
| int | $aMontantRendu | Amount |
Definition at line 496 of file Facturation.class.php.
Referenced by razPers().
| Facturation::amountVat | ( | $aMontantTva = null | ) |
Get amount vat.
| int | $aMontantTva | Amount vat |
Definition at line 548 of file Facturation.class.php.
Referenced by razPers().
| Facturation::amountWithoutTax | ( | $aTotalHt = null | ) |
Get total HT.
| int | $aTotalHt | Total amount |
Definition at line 531 of file Facturation.class.php.
Referenced by razPers().
| Facturation::amountWithTax | ( | $aTotalTtc = null | ) |
Get total TTC.
| int | $aTotalTtc | Amount ttc |
Definition at line 565 of file Facturation.class.php.
Referenced by razPers().
| Facturation::calculTotaux | ( | ) |
Calculation of total HT, total TTC and VAT amounts.
Definition at line 213 of file Facturation.class.php.
| Facturation::getSetPaymentMode | ( | $aModeReglement = null | ) |
Get payment mode.
| int | $aModeReglement | Payment mode |
Definition at line 460 of file Facturation.class.php.
Referenced by razPers().
| Facturation::id | ( | $aId = null | ) |
Getter for id.
| int | $aId | Id |
Definition at line 291 of file Facturation.class.php.
Referenced by raz().
| Facturation::numInvoice | ( | $aNumFacture = null | ) |
Get num invoice.
| string | $aNumFacture | Invoice ref |
Definition at line 443 of file Facturation.class.php.
References $num_facture.
Referenced by razPers().
| Facturation::paiementLe | ( | $aPaiementLe = null | ) |
Get payment date.
| integer | $aPaiementLe | Date |
Definition at line 514 of file Facturation.class.php.
Referenced by razPers().
| Facturation::prix | ( | $aPrix = null | ) |
Getter for prix.
| int | $aPrix | Price |
Definition at line 408 of file Facturation.class.php.
Referenced by ajoutArticle(), and raz().
| Facturation::qte | ( | $aQte = null | ) |
Getter for qte.
| int | $aQte | Qty |
Definition at line 331 of file Facturation.class.php.
Referenced by ajoutArticle(), and raz().
| Facturation::raz | ( | ) |
Reset attributes.
Definition at line 252 of file Facturation.class.php.
References amountDiscount(), id(), prix(), qte(), ref(), remisePercent(), stock(), and tva().
Referenced by __construct(), and ajoutArticle().
|
private |
Resetting persistent attributes.
Definition at line 269 of file Facturation.class.php.
References amountCollected(), amountReturned(), amountVat(), amountWithoutTax(), amountWithTax(), getSetPaymentMode(), numInvoice(), and paiementLe().
Referenced by __construct().
| Facturation::ref | ( | $aRef = null | ) |
Getter for ref.
| string | $aRef | Ref |
Definition at line 311 of file Facturation.class.php.
Referenced by raz().
| Facturation::remisePercent | ( | $aRemisePercent = null | ) |
Getter for remise_percent.
| string | $aRemisePercent | Discount |
Definition at line 370 of file Facturation.class.php.
Referenced by ajoutArticle(), and raz().
| Facturation::stock | ( | $aStock = null | ) |
Getter for stock.
| string | $aStock | Stock |
Definition at line 350 of file Facturation.class.php.
Referenced by raz().
| Facturation::supprArticle | ( | $aArticle | ) |
Remove a product from panel.
| int | $aArticle | Id of line into cart to remove |
Definition at line 188 of file Facturation.class.php.
| Facturation::tva | ( | $aTva = null | ) |
Getter for tva.
| int | $aTva | Vat |
Definition at line 426 of file Facturation.class.php.
Referenced by ajoutArticle(), and raz().
|
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().