Gestion VoIP
This commit is contained in:
parent
251589211f
commit
69e0337f69
@ -577,7 +577,7 @@ else
|
||||
|
||||
print '<table class="border" width="100%" cellspacing="0" cellpadding="4">';
|
||||
|
||||
$sql = "SELECT l.ligne, l.statut, l.rowid, l.remise, f.nom as fournisseur";
|
||||
$sql = "SELECT l.ligne, l.statut, l.rowid, l.remise, l.techno, f.nom as fournisseur";
|
||||
$sql .= ", ss.code_client, ss.nom as agence";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne as l";
|
||||
$sql .= " , ".MAIN_DB_PREFIX."societe as ss";
|
||||
@ -622,7 +622,8 @@ else
|
||||
print '<td align="center">'.$ligne->statuts[$obj->statut]."</td>\n";
|
||||
|
||||
print '<td align="center">'.$obj->remise." %</td>\n";
|
||||
print "<td>".$obj->fournisseur."</td>\n";
|
||||
print "<td>".$obj->fournisseur." - \n";
|
||||
print $obj->techno."</td>\n";
|
||||
print "</tr>\n";
|
||||
$i++;
|
||||
}
|
||||
|
||||
@ -46,6 +46,7 @@ if ($_POST["action"] == 'add' && $user->rights->telephonie->ligne->creer)
|
||||
$ligne->concurrent = $_POST["concurrent"];
|
||||
$ligne->remise = $_POST["remise"];
|
||||
$ligne->note = $_POST["note"];
|
||||
$ligne->techno = $_POST["techno"];
|
||||
|
||||
if ( $ligne->create($user) == 0)
|
||||
{
|
||||
@ -375,7 +376,7 @@ elseif ($_GET["action"] == 'create' && $_GET["contratid"] > 0)
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
print '<tr><td width="20%">Numéro</td><td><input name="numero" size="12" value="'.$ligne->numero.'"></td></tr>';
|
||||
print '<tr><td width="20%">Numéro</td><td><input name="numero" size="11" maxlength="10" value="'.$ligne->numero.'"></td></tr>';
|
||||
|
||||
$client = new Societe($db, $contrat->client_id);
|
||||
$client->fetch($contrat->client_id);
|
||||
@ -417,6 +418,13 @@ elseif ($_GET["action"] == 'create' && $_GET["contratid"] > 0)
|
||||
|
||||
}
|
||||
$form->select_array("fournisseur",$ff,$ligne->fournisseur);
|
||||
|
||||
$tech = array();
|
||||
$tech["presel"] = "Présélection";
|
||||
$tech["voip"] = "VoIP";
|
||||
print " Technologie : ";
|
||||
$form->select_array("techno",$tech,"presel");
|
||||
|
||||
print '</td></tr>';
|
||||
|
||||
/*
|
||||
|
||||
@ -236,6 +236,15 @@ class LigneTel {
|
||||
|
||||
$this->DefineClientOption();
|
||||
|
||||
if ($this->techno == 'voip' && $this->id)
|
||||
{
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."telephonie_societe_ligne";
|
||||
$sql .= " SET statut = 3, techno='voip'";
|
||||
$sql .= " WHERE rowid=".$this->id;
|
||||
$this->db->query($sql);
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user