Fixed: User of creation was not visible.
This commit is contained in:
parent
30d1284379
commit
dda12003d4
@ -29,8 +29,7 @@ require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php';
|
|||||||
require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
|
require_once DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \class PaiementFourn
|
* Class to manage payments for supplier invoices
|
||||||
* \brief Classe permettant la gestion des paiements des factures fournisseurs
|
|
||||||
*/
|
*/
|
||||||
class PaiementFourn extends Paiement
|
class PaiementFourn extends Paiement
|
||||||
{
|
{
|
||||||
@ -345,7 +344,7 @@ class PaiementFourn extends Paiement
|
|||||||
*/
|
*/
|
||||||
function info($id)
|
function info($id)
|
||||||
{
|
{
|
||||||
$sql = 'SELECT c.rowid, datec, fk_user_author, tms';
|
$sql = 'SELECT c.rowid, datec, fk_user_author as fk_user_creat, tms';
|
||||||
$sql.= ' FROM '.MAIN_DB_PREFIX.'paiementfourn as c';
|
$sql.= ' FROM '.MAIN_DB_PREFIX.'paiementfourn as c';
|
||||||
$sql.= ' WHERE c.rowid = '.$id;
|
$sql.= ' WHERE c.rowid = '.$id;
|
||||||
|
|
||||||
@ -357,6 +356,7 @@ class PaiementFourn extends Paiement
|
|||||||
{
|
{
|
||||||
$obj = $this->db->fetch_object($resql);
|
$obj = $this->db->fetch_object($resql);
|
||||||
$this->id = $obj->rowid;
|
$this->id = $obj->rowid;
|
||||||
|
|
||||||
if ($obj->fk_user_creat)
|
if ($obj->fk_user_creat)
|
||||||
{
|
{
|
||||||
$cuser = new User($this->db);
|
$cuser = new User($this->db);
|
||||||
@ -381,10 +381,10 @@ class PaiementFourn extends Paiement
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retourne la liste des factures sur lesquels porte le paiement
|
* Return list of supplier invoices the payment point to
|
||||||
*
|
*
|
||||||
* @param string $filter Critere de filtre
|
* @param string $filter SQL filter
|
||||||
* @return array Tableau des id de factures
|
* @return array Array of supplier invoice id
|
||||||
*/
|
*/
|
||||||
function getBillsArray($filter='')
|
function getBillsArray($filter='')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -52,6 +52,6 @@ print '</td></tr></table>';
|
|||||||
|
|
||||||
print '</div>';
|
print '</div>';
|
||||||
|
|
||||||
$db->close();
|
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|
||||||
|
$db->close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user