|
@@ -568,15 +568,6 @@ if (empty($reshook))
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // Reopen proposal
|
|
|
- else if ($action == 'confirm_reopen' && $user->rights->propal->cloturer && ! GETPOST('cancel'))
|
|
|
- {
|
|
|
- // prevent browser refresh from reopening proposal several times
|
|
|
- if ($object->statut == Propal::STATUS_SIGNED || $object->statut == Propal::STATUS_NOTSIGNED || $object->statut == Propal::STATUS_BILLED) {
|
|
|
- $object->reopen($user, 1);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
// Close proposal
|
|
|
else if ($action == 'setstatut' && $user->rights->propal->cloturer && ! GETPOST('cancel'))
|
|
|
{
|
|
@@ -597,17 +588,6 @@ if (empty($reshook))
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // Classify billed
|
|
|
- else if ($action == 'classifybilled' && $user->rights->propal->cloturer)
|
|
|
- {
|
|
|
- $result=$object->cloture($user, 4, '');
|
|
|
- if ($result < 0)
|
|
|
- {
|
|
|
- setEventMessages($object->error, $object->errors, 'errors');
|
|
|
- $error++;
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
// Reopen proposal
|
|
|
else if ($action == 'confirm_reopen' && $user->rights->propal->cloturer && ! GETPOST('cancel'))
|
|
|
{
|
|
@@ -623,20 +603,6 @@ if (empty($reshook))
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- // Close proposal
|
|
|
- else if ($action == 'setstatut' && $user->rights->propal->cloturer && ! GETPOST('cancel'))
|
|
|
- {
|
|
|
- if (! GETPOST('statut')) {
|
|
|
- setEventMessages($langs->trans("ErrorFieldRequired", $langs->transnoentitiesnoconv("CloseAs")), null, 'errors');
|
|
|
- $action = 'statut';
|
|
|
- } else {
|
|
|
- // prevent browser refresh from closing proposal several times
|
|
|
- if ($object->statut == Propal::STATUS_VALIDATED) {
|
|
|
- $object->cloture($user, GETPOST('statut'), GETPOST('note'));
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
include DOL_DOCUMENT_ROOT.'/core/actions_printing.inc.php';
|
|
|
|
|
|
|