Fix: Fatal error: Call to undefined function: delete() in /dolibarr/htdocs/projet/fiche.php on line 79
This commit is contained in:
parent
4b330d213c
commit
d55cf878d0
@ -40,8 +40,8 @@ $user->getrights('propale');
|
|||||||
if (!$user->rights->propale->lire)
|
if (!$user->rights->propale->lire)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
if ($conf->projet->enabled) require_once '../project.class.php';
|
if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT.'/project.class.php');
|
||||||
if ($conf->commande->enabled) require_once '../commande/commande.class.php';
|
if ($conf->commande->enabled) require_once('../commande/commande.class.php');
|
||||||
require_once('./propal_model_pdf.class.php');
|
require_once('./propal_model_pdf.class.php');
|
||||||
require_once('../propal.class.php');
|
require_once('../propal.class.php');
|
||||||
require_once('../actioncomm.class.php');
|
require_once('../actioncomm.class.php');
|
||||||
|
|||||||
@ -41,9 +41,9 @@ $user->getrights('expedition');
|
|||||||
|
|
||||||
if (!$user->rights->commande->lire) accessforbidden();
|
if (!$user->rights->commande->lire) accessforbidden();
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT."/project.class.php";
|
require_once(DOL_DOCUMENT_ROOT."/project.class.php");
|
||||||
require_once DOL_DOCUMENT_ROOT."/propal.class.php";
|
require_once(DOL_DOCUMENT_ROOT."/propal.class.php");
|
||||||
require_once DOL_DOCUMENT_ROOT."/commande/commande.class.php";
|
require_once(DOL_DOCUMENT_ROOT."/commande/commande.class.php");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sécurité accés client
|
* Sécurité accés client
|
||||||
|
|||||||
@ -40,8 +40,8 @@ $user->getrights('facture');
|
|||||||
|
|
||||||
if (! $user->rights->commande->lire) accessforbidden();
|
if (! $user->rights->commande->lire) accessforbidden();
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT."/project.class.php";
|
require_once(DOL_DOCUMENT_ROOT."/project.class.php");
|
||||||
require_once DOL_DOCUMENT_ROOT."/propal.class.php";
|
require_once(DOL_DOCUMENT_ROOT."/propal.class.php");
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -117,50 +117,50 @@ if ($_GET["id"] > 0)
|
|||||||
|
|
||||||
dolibarr_fiche_head($head, $hselected, $langs->trans("Order").": $commande->ref");
|
dolibarr_fiche_head($head, $hselected, $langs->trans("Order").": $commande->ref");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Commande
|
* Commande
|
||||||
*/
|
*/
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<tr><td width="15%">'.$langs->trans("Ref")."</td>";
|
print '<tr><td width="15%">'.$langs->trans("Ref")."</td>";
|
||||||
print '<td colspan="2">'.$commande->ref.'</td>';
|
print '<td colspan="2">'.$commande->ref.'</td>';
|
||||||
print '<td>'.$langs->trans("Source").' : ' . $commande->sources[$commande->source] ;
|
print '<td>'.$langs->trans("Source").' : ' . $commande->sources[$commande->source] ;
|
||||||
if ($commande->source == 0)
|
if ($commande->source == 0)
|
||||||
{
|
{
|
||||||
/* Propale */
|
/* Propale */
|
||||||
$propal = new Propal($db);
|
$propal = new Propal($db);
|
||||||
$propal->fetch($commande->propale_id);
|
$propal->fetch($commande->propale_id);
|
||||||
print ' -> <a href="'.DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id.'">'.$propal->ref.'</a>';
|
print ' -> <a href="'.DOL_URL_ROOT.'/comm/propal.php?propalid='.$propal->id.'">'.$propal->ref.'</a>';
|
||||||
}
|
}
|
||||||
print "</td></tr>";
|
print "</td></tr>";
|
||||||
|
|
||||||
print "<tr><td>".$langs->trans("Customer")."</td>";
|
print "<tr><td>".$langs->trans("Customer")."</td>";
|
||||||
print '<td colspan="3">';
|
print '<td colspan="3">';
|
||||||
print '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></td>';
|
print '<a href="'.DOL_URL_ROOT.'/comm/fiche.php?socid='.$soc->id.'">'.$soc->nom.'</a></td>';
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans("Status").'</td>';
|
print '<tr><td>'.$langs->trans("Status").'</td>';
|
||||||
print "<td colspan=\"2\">".$commande->statuts[$commande->statut]."</td>\n";
|
print "<td colspan=\"2\">".$commande->statuts[$commande->statut]."</td>\n";
|
||||||
$nbrow=6;
|
$nbrow=6;
|
||||||
if ($conf->projet->enabled) $nbrow++;
|
if ($conf->projet->enabled) $nbrow++;
|
||||||
print '<td rowspan="'.$nbrow.'" valign="top">'.$langs->trans("Note").' :<br>';
|
print '<td rowspan="'.$nbrow.'" valign="top">'.$langs->trans("Note").' :<br>';
|
||||||
if ($commande->brouillon == 1 && $user->rights->commande->creer)
|
if ($commande->brouillon == 1 && $user->rights->commande->creer)
|
||||||
{
|
{
|
||||||
print '<form action="fiche.php?id='.$id.'" method="post">';
|
print '<form action="fiche.php?id='.$id.'" method="post">';
|
||||||
print '<input type="hidden" name="action" value="setnote">';
|
print '<input type="hidden" name="action" value="setnote">';
|
||||||
print '<textarea name="note" style="width:95%;height:"80%">'.$commande->note.'</textarea><br>';
|
print '<textarea name="note" style="width:95%;height:"80%">'.$commande->note.'</textarea><br>';
|
||||||
print '<center><input type="submit" class="button" value="'.$langs->trans("Save").'"></center>';
|
print '<center><input type="submit" class="button" value="'.$langs->trans("Save").'"></center>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print nl2br($commande->note);
|
print nl2br($commande->note);
|
||||||
}
|
}
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td>'.$langs->trans("Date").'</td>';
|
print '<tr><td>'.$langs->trans("Date").'</td>';
|
||||||
print "<td colspan=\"2\">".dolibarr_print_date($commande->date,"%A %d %B %Y")."</td>\n";
|
print "<td colspan=\"2\">".dolibarr_print_date($commande->date,"%A %d %B %Y")."</td>\n";
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
// Projet
|
// Projet
|
||||||
if ($conf->projet->enabled)
|
if ($conf->projet->enabled)
|
||||||
{
|
{
|
||||||
@ -181,11 +181,11 @@ if ($_GET["id"] > 0)
|
|||||||
$html->form_project($_SERVER["PHP_SELF"]."?id=$commande->id",$commande->fk_soc,$commande->projetid,"none");
|
$html->form_project($_SERVER["PHP_SELF"]."?id=$commande->id",$commande->fk_soc,$commande->projetid,"none");
|
||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
} else {
|
} else {
|
||||||
print '<td height="10"> </td><td colspan="2"> </td>';
|
print '<td height="10"> </td><td colspan="2"> </td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Lignes de 3 colonnes
|
// Lignes de 3 colonnes
|
||||||
print '<tr><td>'.$langs->trans("AmountHT").'</td>';
|
print '<tr><td>'.$langs->trans("AmountHT").'</td>';
|
||||||
print '<td align="right"><b>'.price($commande->total_ht).'</b></td>';
|
print '<td align="right"><b>'.price($commande->total_ht).'</b></td>';
|
||||||
print '<td>'.$langs->trans("Currency".$conf->monnaie).'</td></tr>';
|
print '<td>'.$langs->trans("Currency".$conf->monnaie).'</td></tr>';
|
||||||
@ -226,12 +226,12 @@ if ($_GET["id"] > 0)
|
|||||||
print '<td width="10%"> </td><td width="10%"> </td>';
|
print '<td width="10%"> </td><td width="10%"> </td>';
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$var=true;
|
$var=true;
|
||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$objp = $db->fetch_object($result);
|
$objp = $db->fetch_object($result);
|
||||||
|
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
print "<tr $bc[$var]>";
|
print "<tr $bc[$var]>";
|
||||||
if ($objp->fk_product > 0)
|
if ($objp->fk_product > 0)
|
||||||
@ -271,7 +271,7 @@ if ($_GET["id"] > 0)
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Boutons actions
|
* Boutons actions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if (! $user->societe_id && ! $commande->facturee)
|
if (! $user->societe_id && ! $commande->facturee)
|
||||||
|
|||||||
@ -44,10 +44,10 @@ $warning_delay=31*24*60*60; // Delai affichage warning retard (si retard paiemen
|
|||||||
|
|
||||||
require_once "../facture.class.php";
|
require_once "../facture.class.php";
|
||||||
require_once "../paiement.class.php";
|
require_once "../paiement.class.php";
|
||||||
if ($conf->projet->enabled) require_once "../project.class.php";
|
if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT."/project.class.php");
|
||||||
if ($conf->propal->enabled) require_once "../propal.class.php";
|
if ($conf->propal->enabled) require_once("../propal.class.php");
|
||||||
if ($conf->contrat->enabled) require_once "../contrat/contrat.class.php";
|
if ($conf->contrat->enabled) require_once("../contrat/contrat.class.php");
|
||||||
if ($conf->commande->enabled) require_once "../commande/commande.class.php";
|
if ($conf->commande->enabled) require_once("../commande/commande.class.php");
|
||||||
require_once DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php";
|
require_once DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php";
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -30,8 +30,8 @@
|
|||||||
|
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require("./facture-rec.class.php");
|
require_once("./facture-rec.class.php");
|
||||||
require("../../project.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/project.class.php");
|
||||||
|
|
||||||
$user->getrights('facture');
|
$user->getrights('facture');
|
||||||
|
|
||||||
|
|||||||
@ -34,8 +34,8 @@ $user->getrights('propale');
|
|||||||
if (!$user->rights->propale->lire)
|
if (!$user->rights->propale->lire)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
if ($conf->projet->enabled) require_once '../project.class.php';
|
if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT.'/project.class.php');
|
||||||
if ($conf->commande->enabled) require_once '../commande/commande.class.php';
|
if ($conf->commande->enabled) require_once('../commande/commande.class.php');
|
||||||
require_once(DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/lib/CMailFile.class.php");
|
||||||
require_once("../propal.class.php");
|
require_once("../propal.class.php");
|
||||||
//require_once("../actioncomm.class.php");
|
//require_once("../actioncomm.class.php");
|
||||||
|
|||||||
@ -29,8 +29,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
if ($conf->projet->enabled) require_once("../project.class.php");
|
if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT."/project.class.php");
|
||||||
if ($conf->propal->enabled) require_once("../propal.class.php");
|
if ($conf->propal->enabled) require_once("../propal.class.php");
|
||||||
if ($conf->contrat->enabled) require_once (DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
if ($conf->contrat->enabled) require_once (DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
||||||
|
|
||||||
$langs->load("contracts");
|
$langs->load("contracts");
|
||||||
|
|||||||
@ -28,8 +28,8 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
if ($conf->projet->enabled) require_once("../project.class.php");
|
if ($conf->projet->enabled) require_once(DOL_DOCUMENT_ROOT."/project.class.php");
|
||||||
if ($conf->propal->enabled) require_once("../propal.class.php");
|
if ($conf->propal->enabled) require_once("../propal.class.php");
|
||||||
if ($conf->contrat->enabled) require_once (DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
if ($conf->contrat->enabled) require_once (DOL_DOCUMENT_ROOT."/contrat/contrat.class.php");
|
||||||
|
|
||||||
$langs->load("contracts");
|
$langs->load("contracts");
|
||||||
|
|||||||
@ -33,7 +33,7 @@ $user->getrights('expedition');
|
|||||||
if (!$user->rights->commande->lire)
|
if (!$user->rights->commande->lire)
|
||||||
accessforbidden();
|
accessforbidden();
|
||||||
|
|
||||||
require("../project.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/project.class.php");
|
||||||
require("../propal.class.php");
|
require("../propal.class.php");
|
||||||
require("../product/stock/entrepot.class.php");
|
require("../product/stock/entrepot.class.php");
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
require("./pre.inc.php");
|
require("./pre.inc.php");
|
||||||
require("./fichinter.class.php");
|
require("./fichinter.class.php");
|
||||||
require("../project.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/project.class.php");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sécurité accés client
|
* Sécurité accés client
|
||||||
|
|||||||
@ -33,8 +33,8 @@ require("./pre.inc.php");
|
|||||||
|
|
||||||
if (!$user->rights->fournisseur->commande->lire) accessforbidden();
|
if (!$user->rights->fournisseur->commande->lire) accessforbidden();
|
||||||
|
|
||||||
require_once DOL_DOCUMENT_ROOT."/project.class.php";
|
require_once(DOL_DOCUMENT_ROOT."/project.class.php");
|
||||||
require_once DOL_DOCUMENT_ROOT."/propal.class.php";
|
require_once(DOL_DOCUMENT_ROOT."/propal.class.php");
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Sécurité accés client
|
* Sécurité accés client
|
||||||
|
|||||||
@ -29,7 +29,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
require ("../main.inc.php");
|
require ("../main.inc.php");
|
||||||
require(DOL_DOCUMENT_ROOT."/project.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/project.class.php");
|
||||||
|
|
||||||
$langs->load("projects");
|
$langs->load("projects");
|
||||||
$langs->load("companies");
|
$langs->load("companies");
|
||||||
|
|||||||
@ -654,7 +654,7 @@ else
|
|||||||
if ($conf->projet->enabled && $user->rights->projet->creer)
|
if ($conf->projet->enabled && $user->rights->projet->creer)
|
||||||
{
|
{
|
||||||
$langs->load("projects");
|
$langs->load("projects");
|
||||||
print '<a class="butAction" href="'.DOL_URL_ROOT.'/projet/fiche.php?socidp='.$objsoc->id.'&action=create">'.$langs->trans("AddProject").'</a>';
|
print '<a class="butAction" href="'.DOL_URL_ROOT.'/projet/fiche.php?socidp='.$soc->id.'&action=create">'.$langs->trans("AddProject").'</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->rights->societe->creer)
|
if ($user->rights->societe->creer)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user