From b68153ce9a6af243ab7ee6f2ed5661fcf8d4830a Mon Sep 17 00:00:00 2001 From: Christophe Battarel Date: Wed, 5 Dec 2012 19:07:07 +0100 Subject: [PATCH] add button in order to create intervention from services ordered --- htdocs/commande/fiche.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/htdocs/commande/fiche.php b/htdocs/commande/fiche.php index e7533d0055d..7bd1544fe14 100644 --- a/htdocs/commande/fiche.php +++ b/htdocs/commande/fiche.php @@ -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 ''.$langs->trans('AddIntervention').''; + } + else + { + print ''.$langs->trans('AddIntervention').''; + } + } + } + // Reopen a closed order if ($object->statut == 3) {