556 |
$this->nbtodo=$this->nbtodolate=0; |
$this->nbtodo=$this->nbtodolate=0; |
557 |
$sql = 'SELECT ff.rowid,'.$this->db->pdate('ff.date_lim_reglement').' as datefin'; |
$sql = 'SELECT ff.rowid,'.$this->db->pdate('ff.date_lim_reglement').' as datefin'; |
558 |
$sql.= ' FROM '.MAIN_DB_PREFIX.'facture_fourn as ff'; |
$sql.= ' FROM '.MAIN_DB_PREFIX.'facture_fourn as ff'; |
559 |
$sql.= ' WHERE ff.paye=0;'; |
$sql.= ' WHERE ff.paye=0'; |
560 |
if ($user->societe_id) $sql.=' AND fk_soc = '.$user->societe_id; |
if ($user->societe_id) $sql.=' AND fk_soc = '.$user->societe_id; |
561 |
$resql=$this->db->query($sql); |
$resql=$this->db->query($sql); |
562 |
if ($resql) |
if ($resql) |