add button in order to create intervention from services ordered
This commit is contained in:
parent
0c064c777a
commit
b68153ce9a
@ -2221,6 +2221,24 @@ if ($action == 'send' && ! GETPOST('addfile') && ! GETPOST('removedfile') && ! G
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Create intervention
|
||||||
|
if ($conf->ficheinter->enabled)
|
||||||
|
{
|
||||||
|
$langs->load("interventions");
|
||||||
|
|
||||||
|
if ($object->statut > 0 && $object->statut < 3 && $object->getNbOfServicesLines() > 0)
|
||||||
|
{
|
||||||
|
if ($user->rights->ficheinter->creer)
|
||||||
|
{
|
||||||
|
print '<a class="butAction" href="'.DOL_URL_ROOT.'/fichinter/fiche.php?action=create&origin='.$object->element.'&originid='.$object->id.'&socid='.$object->socid.'">'.$langs->trans('AddIntervention').'</a>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
print '<a class="butActionRefused" href="#" title="'.dol_escape_htmltag($langs->trans("NotAllowed")).'">'.$langs->trans('AddIntervention').'</a>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Reopen a closed order
|
// Reopen a closed order
|
||||||
if ($object->statut == 3)
|
if ($object->statut == 3)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user