dolibarr 21.0.0-alpha
order.lib.php File Reference

Ensemble de functions 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.
 
 order_admin_prepare_head ()
 Return array head with list of tabs to view object information.
 
 getCustomerOrderPieChart ($socid=0)
 Return a HTML table that contains a pie chart of sales orders.
 

Detailed Description

Ensemble de functions de base pour le module commande.

Definition in file order.lib.php.

Function Documentation

◆ commande_prepare_head()

commande_prepare_head ( Commande $object)

Prepare array with list of tabs.

Parameters
Commande$objectObject related to tabs
Returns
array<array{0:string,1:string,2:string}> Array of tabs to show

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

References $object, complete_head_from_modules(), Link\count(), dol_dir_list(), dol_getcache(), dol_sanitizeFileName(), dol_setcache(), dol_syslog(), getDolGlobalInt(), and getDolGlobalString().

◆ getCustomerOrderPieChart()

getCustomerOrderPieChart ( $socid = 0)

Return a HTML table that contains a pie chart of sales 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 228 of file order.lib.php.

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

◆ order_admin_prepare_head()

order_admin_prepare_head ( )

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

Returns
array head array with tabs

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

References complete_head_from_modules().