mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Revert "FIX : close supplier makes no sense. we just need to know if it is ac…"
This commit is contained in:
parent
e6ad3ea7d4
commit
de356a3185
|
|
@ -441,6 +441,14 @@ if (empty($reshook))
|
|||
}
|
||||
}
|
||||
|
||||
// Close proposal
|
||||
else if ($action == 'close' && $user->rights->supplier_proposal->cloturer && ! GETPOST('cancel')) {
|
||||
// prevent browser refresh from reopening proposal several times
|
||||
if ($object->statut == 2) {
|
||||
$object->setStatut(4);
|
||||
}
|
||||
}
|
||||
|
||||
// Set accepted/refused
|
||||
else if ($action == 'setstatut' && $user->rights->supplier_proposal->cloturer && ! GETPOST('cancel')) {
|
||||
if (! GETPOST('statut')) {
|
||||
|
|
@ -1768,6 +1776,12 @@ if ($action == 'create')
|
|||
print '>' . $langs->trans('SetAcceptedRefused') . '</a></div>';
|
||||
}
|
||||
|
||||
// Close
|
||||
if ($object->statut == 2 && $user->rights->supplier_proposal->cloturer) {
|
||||
print '<div class="inline-block divButAction"><a class="butAction" href="' . $_SERVER["PHP_SELF"] . '?id=' . $object->id . '&action=close' . (empty($conf->global->MAIN_JUMP_TAG) ? '' : '#close') . '"';
|
||||
print '>' . $langs->trans('Close') . '</a></div>';
|
||||
}
|
||||
|
||||
// Clone
|
||||
if ($user->rights->supplier_proposal->creer) {
|
||||
print '<div class="inline-block divButAction"><a class="butAction" href="' . $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&socid=' . $object->socid . '&action=clone&object=' . $object->element . '">' . $langs->trans("ToClone") . '</a></div>';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user