Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
83c8eae00d
@ -2088,7 +2088,7 @@ class BookKeeping extends CommonObject
|
||||
* FIXME: This function takes the parent of parent to get the root account !
|
||||
*
|
||||
* @param string $account Accounting account
|
||||
* @return array Array with root account information (max 2 upper level)
|
||||
* @return array|int Array with root account information (max 2 upper level), <0 if KO
|
||||
*/
|
||||
public function getRootAccount($account = null)
|
||||
{
|
||||
|
||||
@ -712,6 +712,7 @@ class Orders extends DolibarrApi
|
||||
* @throws RestException 401
|
||||
* @throws RestException 404
|
||||
* @throws RestException 500 System error
|
||||
*
|
||||
*/
|
||||
public function validate($id, $idwarehouse = 0, $notrigger = 0)
|
||||
{
|
||||
|
||||
@ -2727,7 +2727,7 @@ class Commande extends CommonOrder
|
||||
* @param int $offset For pagination
|
||||
* @param string $sortfield Sort criteria
|
||||
* @param string $sortorder Sort order
|
||||
* @return int -1 if KO, array with result if OK
|
||||
* @return int|array -1 if KO, array with result if OK
|
||||
*/
|
||||
public function liste_array($shortlist = 0, $draft = 0, $excluser = '', $socid = 0, $limit = 0, $offset = 0, $sortfield = 'c.date_commande', $sortorder = 'DESC')
|
||||
{
|
||||
|
||||
@ -1868,7 +1868,7 @@ class Contact extends CommonObject
|
||||
* Updates all roles (default contact for companies) according to values inside the ->roles array.
|
||||
* This is called by update of contact.
|
||||
*
|
||||
* @return float|int
|
||||
* @return int
|
||||
* @see fetchRoles()
|
||||
*/
|
||||
public function updateRoles()
|
||||
@ -1878,7 +1878,7 @@ class Contact extends CommonObject
|
||||
$error = 0;
|
||||
|
||||
if (!isset($this->roles)) {
|
||||
return; // Avoid to loose roles when property not set
|
||||
return 0; // Avoid to loose roles when property not set
|
||||
}
|
||||
|
||||
$this->db->begin();
|
||||
|
||||
@ -758,7 +758,7 @@ class Contrat extends CommonObject
|
||||
*
|
||||
* @param int $only_services 0=Default, 1=Force only services (depending on setup, we may also have physical products in a contract)
|
||||
* @param int $loadalsotranslation 0=Default, 1=Load also translations of product descriptions
|
||||
* @return ContratLigne[] Return array of contract lines
|
||||
* @return array|int Return array of contract lines
|
||||
*/
|
||||
public function fetch_lines($only_services = 0, $loadalsotranslation = 0)
|
||||
{
|
||||
|
||||
@ -62,7 +62,7 @@ class DolRequestDataCollector extends RequestDataCollector
|
||||
/**
|
||||
* Return widget settings
|
||||
*
|
||||
* @return void
|
||||
* @return array
|
||||
*/
|
||||
public function getWidgets()
|
||||
{
|
||||
|
||||
@ -2375,7 +2375,7 @@ class ExpenseReport extends CommonObject
|
||||
* Return list of people with permission to validate expense reports.
|
||||
* Search for permission "approve expense report"
|
||||
*
|
||||
* @return array Array of user ids
|
||||
* @return array|int Array of user ids, <0 if KO
|
||||
*/
|
||||
public function fetch_users_approver_expensereport()
|
||||
{
|
||||
|
||||
@ -4222,12 +4222,12 @@ function migrate_delete_old_dir($db, $langs, $conf)
|
||||
* @param Conf $conf Object conf
|
||||
* @param array $listofmodule List of modules, like array('MODULE_KEY_NAME'=>', $reloadmode)
|
||||
* @param int $force 1=Reload module even if not already loaded
|
||||
* @return int <0 if KO, >0 if OK
|
||||
* @return int <0 if KO, >0 if OK
|
||||
*/
|
||||
function migrate_reload_modules($db, $langs, $conf, $listofmodule = array(), $force = 0)
|
||||
{
|
||||
if (count($listofmodule) == 0) {
|
||||
return;
|
||||
return 0;
|
||||
}
|
||||
|
||||
dolibarr_install_syslog("upgrade2::migrate_reload_modules force=".$force.", listofmodule=".join(',', array_keys($listofmodule)));
|
||||
|
||||
@ -882,7 +882,7 @@ class pdf_standard_myobject extends ModelePDFMyObject
|
||||
* @param int $showaddress 0=no, 1=yes
|
||||
* @param Translate $outputlangs Object lang for output
|
||||
* @param Translate $outputlangsbis Object lang for output bis
|
||||
* @return void
|
||||
* @return float|int
|
||||
*/
|
||||
protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null)
|
||||
{
|
||||
|
||||
@ -431,7 +431,7 @@ class Productbatch extends CommonObject
|
||||
* @param int $fk_product_stock id product_stock for objet
|
||||
* @param int $with_qty 1 = doesn't return line with 0 quantity
|
||||
* @param int $fk_product If set to a product id, get eatby and sellby from table llx_product_lot
|
||||
* @return array <0 if KO, array of batch
|
||||
* @return array|int <0 if KO, array of batch
|
||||
*/
|
||||
public static function findAll($dbs, $fk_product_stock, $with_qty = 0, $fk_product = 0)
|
||||
{
|
||||
|
||||
@ -162,7 +162,7 @@ class PriceExpression
|
||||
/**
|
||||
* List all price expressions
|
||||
*
|
||||
* @return array Array of price expressions
|
||||
* @return array|int Array of price expressions, <0 if ko
|
||||
*/
|
||||
public function list_price_expression()
|
||||
{
|
||||
|
||||
@ -311,7 +311,7 @@ class PriceGlobalVariable
|
||||
/**
|
||||
* List all price global variables
|
||||
*
|
||||
* @return array Array of price global variables
|
||||
* @return array|int Array of price global variables, <0 if ko
|
||||
*/
|
||||
public function listGlobalVariables()
|
||||
{
|
||||
|
||||
@ -242,7 +242,7 @@ class ProductStockEntrepot extends CommonObject
|
||||
* @param array $filter filter array
|
||||
* @param string $filtermode filter mode (AND or OR)
|
||||
*
|
||||
* @return int <0 if KO, >0 if OK
|
||||
* @return int|array <0 if KO, array if OK
|
||||
*/
|
||||
public function fetchAll($fk_product = '', $fk_entrepot = '', $sortorder = '', $sortfield = '', $limit = 0, $offset = 0, array $filter = array(), $filtermode = 'AND')
|
||||
{
|
||||
|
||||
@ -271,6 +271,7 @@ class Tasks extends DolibarrApi
|
||||
* @return array Array of roles
|
||||
*
|
||||
* @url GET {id}/roles
|
||||
*
|
||||
*/
|
||||
public function getRoles($id, $userid = 0)
|
||||
{
|
||||
|
||||
@ -801,7 +801,7 @@ class pdf_standard_recruitmentjobposition extends ModelePDFRecruitmentJobPositio
|
||||
* @param int $showaddress 0=no, 1=yes
|
||||
* @param Translate $outputlangs Object lang for output
|
||||
* @param Translate $outputlangsbis Object lang for output bis
|
||||
* @return void
|
||||
* @return float|int
|
||||
*/
|
||||
protected function _pagehead(&$pdf, $object, $showaddress, $outputlangs, $outputlangsbis = null)
|
||||
{
|
||||
|
||||
@ -77,7 +77,7 @@ class FormResource
|
||||
* @param int $limit Limit number of answers
|
||||
* @param string $morecss More css
|
||||
* @param bool $multiple add [] in the name of element and add 'multiple' attribut
|
||||
* @return string HTML string with
|
||||
* @return string|array HTML string with
|
||||
*/
|
||||
public function select_resource_list($selected = '', $htmlname = 'fk_resource', $filter = '', $showempty = 0, $showtype = 0, $forcecombo = 0, $event = array(), $filterkey = '', $outputmode = 0, $limit = 20, $morecss = '', $multiple = false)
|
||||
{
|
||||
|
||||
@ -2883,7 +2883,7 @@ class Ticket extends CommonObject
|
||||
*
|
||||
* @param User $user Object user
|
||||
* @param int $mode "opened" for askprice to close, "signed" for proposal to invoice
|
||||
* @return int <0 if KO, >0 if OK
|
||||
* @return WorkboardResponse|int <0 if KO, WorkboardResponse if OK
|
||||
*/
|
||||
public function load_board($user, $mode)
|
||||
{
|
||||
|
||||
@ -654,7 +654,7 @@ function getOrdersForThirdParty($authentication, $idthirdparty)
|
||||
*
|
||||
* @param array $authentication Array of authentication information
|
||||
* @param array $order Order info
|
||||
* @return int Id of new order
|
||||
* @return array array of new order
|
||||
*/
|
||||
function createOrder($authentication, $order)
|
||||
{
|
||||
|
||||
@ -185,7 +185,7 @@ function getVersions($authentication)
|
||||
* @param string $modulepart Properties of document
|
||||
* @param string $file Relative path
|
||||
* @param string $refname Ref of object to check permission for external users (autodetect if not provided)
|
||||
* @return void
|
||||
* @return array
|
||||
*/
|
||||
function getDocument($authentication, $modulepart, $file, $refname = '')
|
||||
{
|
||||
|
||||
@ -235,7 +235,7 @@ $server->register(
|
||||
*
|
||||
* @param array $authentication Array of authentication information
|
||||
* @param array $project Project info
|
||||
* @return int Id of new order
|
||||
* @return array array of new order
|
||||
*/
|
||||
function createProject($authentication, $project)
|
||||
{
|
||||
|
||||
@ -239,7 +239,7 @@ class Zapier extends DolibarrApi
|
||||
* Create hook object
|
||||
*
|
||||
* @param array $request_data Request datas
|
||||
* @return int ID of hook
|
||||
* @return array ID of hook
|
||||
*
|
||||
* @url POST /hook/
|
||||
*/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user