dolibarr  16.0.1
Functions
order.lib.php File Reference

Ensemble de fonctions de base pour le module commande. More...

Go to the source code of this file.

Functions

 commande_prepare_head (Commande $object)
 Prepare array with list of tabs. More...
 
 order_admin_prepare_head ()
 Return array head with list of tabs to view object informations. More...
 
 getCustomerOrderPieChart ($socid=0)
 Return a HTML table that contains a pie chart of customer orders. More...
 

Detailed Description

Ensemble de fonctions de base pour le module commande.

Definition in file order.lib.php.

Function Documentation

commande_prepare_head ( Commande  $object)

Prepare array with list of tabs.

Parameters
Commande$objectObject related to tabs
Returns
array Array of tabs to show

Definition at line 34 of file order.lib.php.

References complete_head_from_modules(), Link\count(), dol_dir_list(), dol_sanitizeFileName(), Commande\getNbOfShipments(), isModEnabled(), and CommonObject\liste_contact().

getCustomerOrderPieChart (   $socid = 0)

Return a HTML table that contains a pie chart of customer orders.

Parameters
int$socid(Optional) Show only results from the customer with this id
Returns
string A HTML table that contains a pie chart of customer invoices

Definition at line 183 of file order.lib.php.

References $resql, dol_print_error(), Commande\STATUS_CANCELED, Commande\STATUS_CLOSED, Commande\STATUS_DRAFT, Commande\STATUS_SHIPMENTONPROCESS, and Commande\STATUS_VALIDATED.

order_admin_prepare_head ( )

Return array head with list of tabs to view object informations.

Returns
array head array with tabs

Definition at line 146 of file order.lib.php.

References complete_head_from_modules().