Synchro
This commit is contained in:
parent
be8f80c2e0
commit
16118f1b95
@ -69,8 +69,7 @@ if ($_GET["id"])
|
|||||||
rmdir(DOL_DOCUMENT_ROOT."/document/produits");
|
rmdir(DOL_DOCUMENT_ROOT."/document/produits");
|
||||||
|
|
||||||
// Création répertoire pour images générées
|
// Création répertoire pour images générées
|
||||||
// TODO A CORRIGER
|
// $conf->produit->dir_images définit dans master.inc.php
|
||||||
$conf->produit->dir_images = DOL_DATA_ROOT.'/graph/produits';
|
|
||||||
|
|
||||||
$dir = $conf->produit->dir_images."/".$product->id;
|
$dir = $conf->produit->dir_images."/".$product->id;
|
||||||
|
|
||||||
@ -91,7 +90,6 @@ if ($_GET["id"])
|
|||||||
$filenbvente = $dir . "/vente12mois.png";
|
$filenbvente = $dir . "/vente12mois.png";
|
||||||
$filenbpiece = $dir . "/vendu12mois.png";
|
$filenbpiece = $dir . "/vendu12mois.png";
|
||||||
|
|
||||||
|
|
||||||
$px = new BarGraph();
|
$px = new BarGraph();
|
||||||
$mesg = $px->isGraphKo();
|
$mesg = $px->isGraphKo();
|
||||||
if (! $mesg)
|
if (! $mesg)
|
||||||
@ -153,18 +151,21 @@ if ($_GET["id"])
|
|||||||
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$product->libelle.'</td>';
|
print '<tr><td>'.$langs->trans("Label").'</td><td>'.$product->libelle.'</td>';
|
||||||
print '<td valign="top" rowspan="2">';
|
print '<td valign="top" rowspan="2">';
|
||||||
// Propals
|
// Propals
|
||||||
if ($conf->propal->enabled) {
|
if ($conf->propal->enabled)
|
||||||
|
{
|
||||||
$langs->load("propal");
|
$langs->load("propal");
|
||||||
print '<a href="propal.php?id='.$product->id.'">'.$langs->trans("Proposals").'</a> : '.$product->count_propale($socid);
|
print '<a href="propal.php?id='.$product->id.'">'.$langs->trans("Proposals").'</a> : '.$product->count_propale($socid);
|
||||||
print " (Proposé à ".$product->count_propale_client($socid)." clients)<br>";
|
print " (Proposé à ".$product->count_propale_client($socid)." clients)<br>";
|
||||||
}
|
}
|
||||||
// Commande
|
// Commande
|
||||||
if ($conf->commande->enabled) {
|
if ($conf->commande->enabled)
|
||||||
|
{
|
||||||
$langs->load("orders");
|
$langs->load("orders");
|
||||||
print '<a href="commande.php?id='.$product->id.'">'.$langs->trans("Orders").'</a> : '.$product->count_facture($socid)."<br>";
|
print '<a href="commande.php?id='.$product->id.'">'.$langs->trans("Orders").'</a> : '.$product->count_facture($socid)."<br>";
|
||||||
}
|
}
|
||||||
// Factures
|
// Factures
|
||||||
if ($conf->facture->enabled) {
|
if ($conf->facture->enabled)
|
||||||
|
{
|
||||||
$langs->load("bills");
|
$langs->load("bills");
|
||||||
print '<a href="facture.php?id='.$product->id.'">'.$langs->trans("Bills").'</a> : '.$product->count_facture($socid);
|
print '<a href="facture.php?id='.$product->id.'">'.$langs->trans("Bills").'</a> : '.$product->count_facture($socid);
|
||||||
}
|
}
|
||||||
@ -236,8 +237,6 @@ if ($_GET["id"])
|
|||||||
|
|
||||||
print '</table><br>';
|
print '</table><br>';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user