commande.php
Fonctions de calcul des prix d'une commande et de ses détails
Tags
Table of Contents
Functions
- prix_commande_ht_dist() : float
- Permet d'obtenir le prix HT d'une commande.
Functions
prix_commande_ht_dist()
Permet d'obtenir le prix HT d'une commande.
prix_commande_ht_dist(int $id_commande, array<string|int, mixed> $ligne[, array<string|int, mixed> $options = [] ]) : float
Prix HT = total HT de ses détails
Parameters
- $id_commande : int
-
Identifiant de la commande
- $ligne : array<string|int, mixed>
-
Couples champs / valeurs décrivant le détail Il faut au moins $ligne['quantite'] et $ligne['prix_unitaire_ht']
- $options : array<string|int, mixed> = []
Return values
float —Retourne le prix HT de la commande sinon 0