Fixed: User of creation was not visible.

This commit is contained in:
Laurent Destailleur 2015-01-10 12:23:15 +01:00
parent 30d1284379
commit dda12003d4
2 changed files with 8 additions and 8 deletions

View File

@ -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';
/**
* \class PaiementFourn
* \brief Classe permettant la gestion des paiements des factures fournisseurs
* Class to manage payments for supplier invoices
*/
class PaiementFourn extends Paiement
{
@ -345,7 +344,7 @@ class PaiementFourn extends Paiement
*/
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.= ' WHERE c.rowid = '.$id;
@ -357,6 +356,7 @@ class PaiementFourn extends Paiement
{
$obj = $this->db->fetch_object($resql);
$this->id = $obj->rowid;
if ($obj->fk_user_creat)
{
$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
* @return array Tableau des id de factures
* @param string $filter SQL filter
* @return array Array of supplier invoice id
*/
function getBillsArray($filter='')
{

View File

@ -52,6 +52,6 @@ print '</td></tr></table>';
print '</div>';
$db->close();
llxFooter();
$db->close();