dolibarr 20.0.0
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.
 
 invoice_admin_prepare_head ()
 Return array head with list of tabs to view object information.
 
 invoice_rec_prepare_head ($object)
 Return array head with list of tabs to view object information.
 
 supplier_invoice_rec_prepare_head ($object)
 Return array head with list of tabs to view object information.
 
 getNumberInvoicesPieChart ($mode)
 Return an HTML table that contains a pie chart of the number of customers or supplier invoices.
 
 getCustomerInvoiceDraftTable ($maxCount=500, $socid=0)
 Return a HTML table that contains a list with customer invoice drafts.
 
 getDraftSupplierTable ($maxCount=500, $socid=0)
 Return a HTML table that contains a list with customer invoice drafts.
 
 getCustomerInvoiceLatestEditTable ($maxCount=5, $socid=0)
 Return a HTML table that contains a list with latest edited customer invoices.
 
 getPurchaseInvoiceLatestEditTable ($maxCount=5, $socid=0)
 Return a HTML table that contains a list with latest edited supplier invoices.
 
 getCustomerInvoiceUnpaidOpenTable ($maxCount=500, $socid=0)
 Return a HTML table that contains of unpaid customers invoices.
 
 getPurchaseInvoiceUnpaidOpenTable ($maxCount=500, $socid=0)
 Return a HTML table that contains of unpaid purchase invoices.
 

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 37 of file invoice.lib.php.

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

◆ 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 488 of file invoice.lib.php.

References dol_print_error(), getDolGlobalString(), and Facture\STATUS_DRAFT.

◆ 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 773 of file invoice.lib.php.

References dol_print_error(), and dol_sanitizeFileName().

◆ 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 contains a list with open (unpaid) supplier invoices

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

References dol_print_date(), dol_print_error(), dol_sanitizeFileName(), getDolGlobalString(), img_warning(), price(), and Facture\STATUS_VALIDATED.

◆ 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 638 of file invoice.lib.php.

References dol_print_error(), getDolGlobalString(), and FactureFournisseur\STATUS_DRAFT.

◆ 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 344 of file invoice.lib.php.

References dol_now(), and dol_print_error().

◆ 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 881 of file invoice.lib.php.

References dol_print_error(), and dol_sanitizeFileName().

◆ 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 contains a list with open (unpaid) supplier invoices

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

References dol_print_error(), getDolGlobalString(), price(), and FactureFournisseur\STATUS_VALIDATED.

◆ invoice_admin_prepare_head()

invoice_admin_prepare_head ( )

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

Returns
array head array with tabs

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

References complete_head_from_modules(), and getDolGlobalInt().

◆ invoice_rec_prepare_head()

invoice_rec_prepare_head ( $object)

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

Parameters
Facture$objectInvoice object
Returns
array head array with tabs

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

References $object, complete_head_from_modules(), dol_getcache(), dol_setcache(), and dol_syslog().

◆ supplier_invoice_rec_prepare_head()

supplier_invoice_rec_prepare_head ( $object)

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

Parameters
Facture$objectInvoice object
Returns
array head array with tabs

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

References $object, and complete_head_from_modules().