commandes_echeances.php
Fonctions du plugin Commandes relatives aux échéances attendues
Tags
Table of Contents
Functions
- commandes_lister_paiements_echeances() : array<string|int, mixed>
- Lister un à un les paiements des échéances prévus
- commandes_lister_montants_echeances() : array<string|int, mixed>
- Lister un à un les montants des échéances prévus idem commandes_lister_paiements_echeances mais retourne uniquement le montant (ttc) pour chaque echeance, et pas un tableau
- commandes_nb_echeances_payees() : mixed
- commandes_trouver_prochaine_echeance_desc() : array<string|int, mixed>|bool
- Trouver la prochaine échéance à payer pour une commande
- commandes_trouver_prochaine_echeance() : bool|mixed
Functions
commandes_lister_paiements_echeances()
Lister un à un les paiements des échéances prévus
commandes_lister_paiements_echeances(array<string|int, mixed> $echeances) : array<string|int, mixed>
Parameters
- $echeances : array<string|int, mixed>
-
Tableau des échéances décrites suivant ce qu'on attend pour les commandes :
array( array('montant' => 40, 'montant_ht' => 33.33, 'nb' => 2), array('montant' => 50), )
Return values
array<string|int, mixed> —Retourne un tableau listant uniquement les montants un par un :
array(array('montant' => 40, 'montant_ht' => 33.33), array('montant' => 40, 'montant_ht' => 33.33), array('montant' => 50, 'montant_ht' => 50))
commandes_lister_montants_echeances()
Lister un à un les montants des échéances prévus idem commandes_lister_paiements_echeances mais retourne uniquement le montant (ttc) pour chaque echeance, et pas un tableau
commandes_lister_montants_echeances(array<string|int, mixed> $echeances) : array<string|int, mixed>
Parameters
- $echeances : array<string|int, mixed>
Return values
array<string|int, mixed> —Retourne un tableau listant uniquement les montants un par un :
array(40, 40, 50)
commandes_nb_echeances_payees()
commandes_nb_echeances_payees(mixed $id_commande) : mixed
Parameters
- $id_commande : mixed
commandes_trouver_prochaine_echeance_desc()
Trouver la prochaine échéance à payer pour une commande
commandes_trouver_prochaine_echeance_desc(int $id_commande[, array<string|int, mixed>|float $echeances = null ][, mixed $ignorer_derniere = false ]) : array<string|int, mixed>|bool
Parameters
- $id_commande : int
-
Identifiant de la commande
- $echeances : array<string|int, mixed>|float = null
-
Montant unique ou tableau décrivant des échéances complexes
- $ignorer_derniere : mixed = false
Return values
array<string|int, mixed>|bool —Retourne la description de la prochaine échéance
commandes_trouver_prochaine_echeance()
commandes_trouver_prochaine_echeance(mixed $id_commande[, mixed $echeances = null ][, bool $ignorer_derniere = false ]) : bool|mixed
Parameters
- $id_commande : mixed
- $echeances : mixed = null
- $ignorer_derniere : bool = false