2
0
forked from Wavyzz/dolibarr

Renommage de certaines fonctions pour voir plus clair dans le code

This commit is contained in:
Laurent Destailleur
2006-09-03 12:12:56 +00:00
parent 1f900a8f6a
commit a36cae106e
13 changed files with 142 additions and 130 deletions

View File

@@ -260,7 +260,7 @@ class Commande extends CommonObject
*
*
*/
function reopen($userid)
function set_draft($userid)
{
$sql = "UPDATE ".MAIN_DB_PREFIX."commande SET fk_statut = 0";
@@ -1052,11 +1052,11 @@ class Commande extends CommonObject
/**
* \brief Renvoie un tableau avec les exp<78>ditions par ligne
* \brief Charge tableau avec les exp<78>ditions par ligne
* \param filtre_statut Filtre sur statut
* \return int 0 si OK, <0 si KO
*/
function expedition_array($filtre_statut=-1)
function loadExpeditions($filtre_statut=-1)
{
$this->expeditions = array();
$sql = 'SELECT fk_product, sum(ed.qty)';
@@ -1068,11 +1068,11 @@ class Commande extends CommonObject
$result = $this->db->query($sql);
if ($result)
{
$num = $this->db->num_rows();
$num = $this->db->num_rows($result);
$i = 0;
while ($i < $num)
{
$row = $this->db->fetch_row( $i);
$row = $this->db->fetch_row($result);
$this->expeditions[$row[0]] = $row[1];
$i++;
}