Merge branch '9.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts: htdocs/core/class/link.class.php
This commit is contained in:
commit
d052e4f323
@ -3584,7 +3584,7 @@ class Facture extends CommonInvoice
|
|||||||
* @param int $offset For pagination
|
* @param int $offset For pagination
|
||||||
* @param string $sortfield Sort criteria
|
* @param string $sortfield Sort criteria
|
||||||
* @param string $sortorder Sort order
|
* @param string $sortorder Sort order
|
||||||
* @return int -1 if KO, array with result if OK
|
* @return array|int -1 if KO, array with result if OK
|
||||||
*/
|
*/
|
||||||
public function liste_array($shortlist = 0, $draft = 0, $excluser = '', $socid = 0, $limit = 0, $offset = 0, $sortfield = 'f.datef,f.rowid', $sortorder = 'DESC')
|
public function liste_array($shortlist = 0, $draft = 0, $excluser = '', $socid = 0, $limit = 0, $offset = 0, $sortfield = 'f.datef,f.rowid', $sortorder = 'DESC')
|
||||||
{
|
{
|
||||||
@ -3655,7 +3655,7 @@ class Facture extends CommonInvoice
|
|||||||
* (Status validated or abandonned for a reason 'other') + not payed + no payment at all + not already replaced
|
* (Status validated or abandonned for a reason 'other') + not payed + no payment at all + not already replaced
|
||||||
*
|
*
|
||||||
* @param int $socid Id thirdparty
|
* @param int $socid Id thirdparty
|
||||||
* @return array Array of invoices ('id'=>id, 'ref'=>ref, 'status'=>status, 'paymentornot'=>0/1)
|
* @return array|int Array of invoices ('id'=>id, 'ref'=>ref, 'status'=>status, 'paymentornot'=>0/1)
|
||||||
*/
|
*/
|
||||||
public function list_replacable_invoices($socid = 0)
|
public function list_replacable_invoices($socid = 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -334,7 +334,8 @@ class Link extends CommonObject
|
|||||||
if($this->db->num_rows($resql) > 0)
|
if($this->db->num_rows($resql) > 0)
|
||||||
{
|
{
|
||||||
$obj = $this->db->fetch_object($resql);
|
$obj = $this->db->fetch_object($resql);
|
||||||
$this->id=$obj->rowid;
|
|
||||||
|
$this->id = $obj->rowid;
|
||||||
$this->entity = $obj->entity;
|
$this->entity = $obj->entity;
|
||||||
$this->datea = $this->db->jdate($obj->datea);
|
$this->datea = $this->db->jdate($obj->datea);
|
||||||
$this->url = $obj->url;
|
$this->url = $obj->url;
|
||||||
|
|||||||
@ -279,7 +279,7 @@ $sql = "SELECT d.rowid, d.ref, d.fk_user_author, d.total_ht, d.total_tva, d.tota
|
|||||||
$sql.= " d.date_debut, d.date_fin, d.date_create, d.tms as date_modif, d.date_valid, d.date_approve, d.note_private, d.note_public,";
|
$sql.= " d.date_debut, d.date_fin, d.date_create, d.tms as date_modif, d.date_valid, d.date_approve, d.note_private, d.note_public,";
|
||||||
$sql.= " u.rowid as id_user, u.firstname, u.lastname, u.login, u.email, u.statut, u.photo";
|
$sql.= " u.rowid as id_user, u.firstname, u.lastname, u.login, u.email, u.statut, u.photo";
|
||||||
// Add fields from extrafields
|
// Add fields from extrafields
|
||||||
foreach ($extrafields->attribute_label as $key => $val) $sql.=($extrafields->attribute_type[$key] != 'separate' ? ",ef.".$key.' as options_'.$key : '');
|
foreach ($extrafields->attributes['expensereport']['type'] as $key => $val) $sql.=($extrafields->attribute_type[$key] != 'separate' ? ",ef.".$key.' as options_'.$key : '');
|
||||||
// Add fields from hooks
|
// Add fields from hooks
|
||||||
$parameters=array();
|
$parameters=array();
|
||||||
$reshook=$hookmanager->executeHooks('printFieldListSelect', $parameters); // Note that $action and $object may have been modified by hook
|
$reshook=$hookmanager->executeHooks('printFieldListSelect', $parameters); // Note that $action and $object may have been modified by hook
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user