dolibarr  19.0.0-dev
Functions
invoice.lib.php File Reference

Functions used by invoice module. More...

Go to the source code of this file.

Functions

 facture_prepare_head ($object)
 Initialize the array of tabs for customer invoice. More...
 
 invoice_admin_prepare_head ()
 Return array head with list of tabs to view object informations. More...
 
 invoice_rec_prepare_head ($object)
 Return array head with list of tabs to view object informations. More...
 
 supplier_invoice_rec_prepare_head ($object)
 Return array head with list of tabs to view object informations. More...
 
 getNumberInvoicesPieChart ($mode)
 Return an HTML table that contains a pie chart of the number of customers or supplier invoices. More...
 
 getCustomerInvoiceDraftTable ($maxCount=500, $socid=0)
 Return a HTML table that contains a list with customer invoice drafts. More...
 
 getDraftSupplierTable ($maxCount=500, $socid=0)
 Return a HTML table that contains a list with customer invoice drafts. More...
 
 getCustomerInvoiceLatestEditTable ($maxCount=5, $socid=0)
 Return a HTML table that contains a list with latest edited customer invoices. More...
 
 getPurchaseInvoiceLatestEditTable ($maxCount=5, $socid=0)
 Return a HTML table that contains a list with latest edited supplier invoices. More...
 
 getCustomerInvoiceUnpaidOpenTable ($maxCount=500, $socid=0)
 Return a HTML table that contains of unpaid customers invoices. More...
 
 getPurchaseInvoiceUnpaidOpenTable ($maxCount=500, $socid=0)
 Return a HTML table that contains of unpaid purchase invoices. More...
 

Detailed Description

Functions used by invoice module.

Definition in file invoice.lib.php.

Function Documentation

◆ facture_prepare_head()

facture_prepare_head (   $object)

Initialize the array of tabs for customer invoice.

Parameters
Facture$objectInvoice object
Returns
array Array of head tabs

Definition at line 36 of file invoice.lib.php.

◆ getCustomerInvoiceDraftTable()

getCustomerInvoiceDraftTable (   $maxCount = 500,
  $socid = 0 
)

Return a HTML table that contains a list with customer invoice drafts.

Parameters
int$maxCount(Optional) The maximum count of elements inside the table
int$socid(Optional) Show only results from the customer with this id
Returns
string A HTML table that contains a list with customer invoice drafts

Definition at line 486 of file invoice.lib.php.

◆ getCustomerInvoiceLatestEditTable()

getCustomerInvoiceLatestEditTable (   $maxCount = 5,
  $socid = 0 
)

Return a HTML table that contains a list with latest edited customer invoices.

Parameters
int$maxCount(Optional) The maximum count of elements inside the table
int$socid(Optional) Show only results from the customer with this id
Returns
string A HTML table that contains a list with latest edited customer invoices

Definition at line 769 of file invoice.lib.php.

◆ getCustomerInvoiceUnpaidOpenTable()

getCustomerInvoiceUnpaidOpenTable (   $maxCount = 500,
  $socid = 0 
)

Return a HTML table that contains of unpaid customers invoices.

Parameters
int$maxCount(Optional) The maximum count of elements inside the table
int$socid(Optional) Show only results from the supplier with this id
Returns
string A HTML table that conatins a list with open (unpaid) supplier invoices

Definition at line 985 of file invoice.lib.php.

◆ getDraftSupplierTable()

getDraftSupplierTable (   $maxCount = 500,
  $socid = 0 
)

Return a HTML table that contains a list with customer invoice drafts.

Parameters
int$maxCount(Optional) The maximum count of elements inside the table
int$socid(Optional) Show only results from the customer with this id
Returns
string A HTML table that contains a list with customer invoice drafts

Definition at line 636 of file invoice.lib.php.

◆ getNumberInvoicesPieChart()

getNumberInvoicesPieChart (   $mode)

Return an HTML table that contains a pie chart of the number of customers or supplier invoices.

Parameters
string$modeCan be 'customers' or 'suppliers'
Returns
string A HTML table that contains a pie chart of customers or supplier invoices

Definition at line 343 of file invoice.lib.php.

◆ getPurchaseInvoiceLatestEditTable()

getPurchaseInvoiceLatestEditTable (   $maxCount = 5,
  $socid = 0 
)

Return a HTML table that contains a list with latest edited supplier invoices.

Parameters
int$maxCount(Optional) The maximum count of elements inside the table
int$socid(Optional) Show only results from the supplier with this id
Returns
string A HTML table that contains a list with latest edited supplier invoices

Definition at line 877 of file invoice.lib.php.

◆ getPurchaseInvoiceUnpaidOpenTable()

getPurchaseInvoiceUnpaidOpenTable (   $maxCount = 500,
  $socid = 0 
)

Return a HTML table that contains of unpaid purchase invoices.

Parameters
int$maxCount(Optional) The maximum count of elements inside the table
int$socid(Optional) Show only results from the supplier with this id
Returns
string A HTML table that conatins a list with open (unpaid) supplier invoices

Definition at line 1173 of file invoice.lib.php.

◆ invoice_admin_prepare_head()

invoice_admin_prepare_head ( )

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

Returns
array head array with tabs

Definition at line 167 of file invoice.lib.php.

◆ invoice_rec_prepare_head()

invoice_rec_prepare_head (   $object)

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

Parameters
Facture$objectInvoice object
Returns
array head array with tabs

Definition at line 251 of file invoice.lib.php.

◆ supplier_invoice_rec_prepare_head()

supplier_invoice_rec_prepare_head (   $object)

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

Parameters
Facture$objectInvoice object
Returns
array head array with tabs

Definition at line 314 of file invoice.lib.php.