Ajoute l'email de commande
This commit is contained in:
parent
fe88d3e120
commit
3530509ef7
@ -31,7 +31,6 @@ if ($user->rights->telephonie->ligne_commander)
|
|||||||
{
|
{
|
||||||
if ($_GET["action"] == "create" && $_GET["fournid"] > 0)
|
if ($_GET["action"] == "create" && $_GET["fournid"] > 0)
|
||||||
{
|
{
|
||||||
|
|
||||||
$fourn = new FournisseurTelephonie($db);
|
$fourn = new FournisseurTelephonie($db);
|
||||||
|
|
||||||
$result = $fourn->fetch($_GET["fournid"]);
|
$result = $fourn->fetch($_GET["fournid"]);
|
||||||
@ -40,25 +39,6 @@ if ($user->rights->telephonie->ligne_commander)
|
|||||||
{
|
{
|
||||||
$result = $fourn->CreateCommande($user);
|
$result = $fourn->CreateCommande($user);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
$fourntel = new FournisseurTelephonie($db,1);
|
|
||||||
if ( $fourntel->fetch(1) == 0)
|
|
||||||
{
|
|
||||||
$ct = new CommandeTableur($db, $user, $fourntel);
|
|
||||||
|
|
||||||
$result = $ct->create();
|
|
||||||
|
|
||||||
if ($result == 0)
|
|
||||||
{
|
|
||||||
Header("Location: archives.php");
|
|
||||||
}
|
|
||||||
elseif ($result == -3)
|
|
||||||
{
|
|
||||||
$mesg_erreur = "Email fournisseur non définit";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,7 +82,7 @@ if ($result)
|
|||||||
|
|
||||||
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
print '<table class="noborder" width="100%" cellspacing="0" cellpadding="4">';
|
||||||
print '<tr class="liste_titre"><td>Fournisseur</td>';
|
print '<tr class="liste_titre"><td>Fournisseur</td>';
|
||||||
print '<td align="center">Nb Lignes</td><td> </td>';
|
print '<td align="center">Nb Lignes</td><td> </td><td>Email envoyé à</td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|
||||||
$var=True;
|
$var=True;
|
||||||
@ -114,6 +94,9 @@ if ($result)
|
|||||||
$row = $db->fetch_row();
|
$row = $db->fetch_row();
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
|
|
||||||
|
$fournisseur = new FournisseurTelephonie($db);
|
||||||
|
$fournisseur->fetch($row[1]);
|
||||||
|
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
print '<td>'.$row[2].'</td>';
|
print '<td>'.$row[2].'</td>';
|
||||||
print '<td align="center">'.$row[0]."</td>\n";
|
print '<td align="center">'.$row[0]."</td>\n";
|
||||||
@ -126,8 +109,9 @@ if ($result)
|
|||||||
{
|
{
|
||||||
print '<a class="tabAction" href="fiche.php?action=create&fournid='.$row[1].'">Créer la commande</a>';
|
print '<a class="tabAction" href="fiche.php?action=create&fournid='.$row[1].'">Créer la commande</a>';
|
||||||
}
|
}
|
||||||
print "</td>\n";
|
print "</td><td>\n";
|
||||||
print "</tr>\n";
|
print $fournisseur->email_commande;
|
||||||
|
print "</td></tr>\n";
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
print "</table><br />";
|
print "</table><br />";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user