Unused method in Dolibarr (#26737)

This commit is contained in:
IC-Nicolas 2023-11-19 00:47:23 +01:00 committed by GitHub
parent a8c0c63565
commit ae608c3bb7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2371,36 +2371,6 @@ class CommandeFournisseur extends CommonOrder
}
}
// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
/**
* Get list of order methods
*
* @return int 0 if OK, <0 if KO
*/
public function get_methodes_commande()
{
// phpcs:enable
$sql = "SELECT rowid, libelle";
$sql .= " FROM ".$this->db->prefix()."c_input_method";
$sql .= " WHERE active = 1";
$resql = $this->db->query($sql);
if ($resql) {
$i = 0;
$num = $this->db->num_rows($resql);
$this->methodes_commande = array();
while ($i < $num) {
$row = $this->db->fetch_row($resql);
$this->methodes_commande[$row[0]] = $row[1];
$i++;
}
return 0;
} else {
return -1;
}
}
/**
* Return array of dispatched lines waiting to be approved for this order