Debug v17
This commit is contained in:
parent
b605df1c72
commit
bcd8c4ca87
@ -72,7 +72,12 @@ if ($user->socid > 0) {
|
|||||||
} else {
|
} else {
|
||||||
$id = 0;
|
$id = 0;
|
||||||
}
|
}
|
||||||
restrictedArea($user, 'societe', $id, '&societe', '', 'fk_soc', 'rowid', 0);
|
|
||||||
|
//restrictedArea($user, 'societe', $id, '&societe', '', 'fk_soc', 'rowid', 0);
|
||||||
|
if (!$user->hasRight('propal', 'read') && !$user->hasRight('supplier_proposal', 'read') && !$user->hasRight('commande', 'read') && !$user->hasRight('fournisseur', 'commande', 'read')
|
||||||
|
&& !$user->hasRight('supplier_order', 'read') && !$user->hasRight('fichinter', 'read')) {
|
||||||
|
accessforbidden();
|
||||||
|
}
|
||||||
|
|
||||||
$maxofloop = (empty($conf->global->MAIN_MAXLIST_OVERLOAD) ? 500 : $conf->global->MAIN_MAXLIST_OVERLOAD);
|
$maxofloop = (empty($conf->global->MAIN_MAXLIST_OVERLOAD) ? 500 : $conf->global->MAIN_MAXLIST_OVERLOAD);
|
||||||
|
|
||||||
@ -517,7 +522,7 @@ if ((isModEnabled("fournisseur") && empty($conf->global->MAIN_USE_NEW_SUPPLIERMO
|
|||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Draft interventionals
|
* Draft interventions
|
||||||
*/
|
*/
|
||||||
if (isModEnabled('ficheinter')) {
|
if (isModEnabled('ficheinter')) {
|
||||||
$sql = "SELECT f.rowid, f.ref, s.nom as name, f.fk_statut";
|
$sql = "SELECT f.rowid, f.ref, s.nom as name, f.fk_statut";
|
||||||
@ -546,13 +551,12 @@ if (isModEnabled('ficheinter')) {
|
|||||||
if ($resql) {
|
if ($resql) {
|
||||||
$num = $db->num_rows($resql);
|
$num = $db->num_rows($resql);
|
||||||
$nbofloop = min($num, $maxofloop);
|
$nbofloop = min($num, $maxofloop);
|
||||||
|
startSimpleTable("DraftFichinter", "fichinter/list.php", "search_status=".Fichinter::STATUS_DRAFT, 2, $num);
|
||||||
|
|
||||||
print '<div class="div-table-responsive-no-min">';
|
//print '<tr class="liste_titre">';
|
||||||
print '<table class="noborder centpercent">';
|
//print '<th colspan="2">'.$langs->trans("DraftFichinter").'</th></tr>';
|
||||||
print '<tr class="liste_titre">';
|
|
||||||
print '<th colspan="2">'.$langs->trans("DraftFichinter").'</th></tr>';
|
|
||||||
|
|
||||||
if ($num) {
|
if ($num > 0) {
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while ($i < $nbofloop) {
|
while ($i < $nbofloop) {
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
@ -585,6 +589,10 @@ if (isModEnabled('ficheinter')) {
|
|||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addSummaryTableLine(3, $num, $nbofloop, $total, "NoIntervention");
|
||||||
|
finishSimpleTable(true);
|
||||||
|
|
||||||
print "</table></div>";
|
print "</table></div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -69,3 +69,4 @@ GenerateInter=Generate intervention
|
|||||||
FichinterNoContractLinked=Intervention %s has been created without a linked contract.
|
FichinterNoContractLinked=Intervention %s has been created without a linked contract.
|
||||||
ErrorFicheinterCompanyDoesNotExist=Company does not exist. Intervention has not been created.
|
ErrorFicheinterCompanyDoesNotExist=Company does not exist. Intervention has not been created.
|
||||||
NextDateToIntervention=Date for next intervention generation
|
NextDateToIntervention=Date for next intervention generation
|
||||||
|
NoIntervention=No intervention
|
||||||
Loading…
Reference in New Issue
Block a user