/[dolibarr]/dolibarr/htdocs/facture.class.php
ViewVC logotype

Diff of /dolibarr/htdocs/facture.class.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.109 by eldy, Tue Aug 23 21:59:27 2005 UTC revision 1.110 by eldy, Tue Aug 30 21:07:53 2005 UTC
# Line 20  Line 20 
20   *   *
21   * $Id$   * $Id$
22   * $Source$   * $Source$
  *  
23   */   */
24    
25  /**  /**
# Line 1604  class Facture Line 1603  class Facture
1603    
1604      /**      /**
1605       *      \brief      Charge indicateurs this->nbtodo et this->nbtodolate de tableau de bord       *      \brief      Charge indicateurs this->nbtodo et this->nbtodolate de tableau de bord
1606         *      \param      user        Objet user
1607       *      \return     int         <0 si ko, >0 si ok       *      \return     int         <0 si ko, >0 si ok
1608       */       */
1609      function load_board()      function load_board($user)
1610      {      {
1611          global $conf;          global $conf;
1612                    
# Line 1614  class Facture Line 1614  class Facture
1614          $sql = "SELECT f.rowid,".$this->db->pdate("f.date_lim_reglement")." as datefin";          $sql = "SELECT f.rowid,".$this->db->pdate("f.date_lim_reglement")." as datefin";
1615          $sql.= " FROM ".MAIN_DB_PREFIX."facture as f";          $sql.= " FROM ".MAIN_DB_PREFIX."facture as f";
1616          $sql.= " WHERE f.paye=0 AND f.fk_statut = 1";          $sql.= " WHERE f.paye=0 AND f.fk_statut = 1";
1617            if ($user->societe_id) $sql.=" AND fk_soc = ".$user->societe_id;
1618          $resql=$this->db->query($sql);          $resql=$this->db->query($sql);
1619          if ($resql)          if ($resql)
1620          {          {

Legend:
Removed from v.1.109  
changed lines
  Added in v.1.110

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26