Skip to content
Snippets Groups Projects
Commit 551d79f1 authored by gauthier's avatar gauthier
Browse files

FIX : close supplier makes no sense. we just need to know if it is accepted or not

parent 17da4f64
No related branches found
No related tags found
No related merge requests found
...@@ -452,14 +452,6 @@ if (empty($reshook)) ...@@ -452,14 +452,6 @@ 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 // Set accepted/refused
else if ($action == 'setstatut' && $user->rights->supplier_proposal->cloturer && ! GETPOST('cancel')) { else if ($action == 'setstatut' && $user->rights->supplier_proposal->cloturer && ! GETPOST('cancel')) {
if (! GETPOST('statut')) { if (! GETPOST('statut')) {
...@@ -1779,12 +1771,6 @@ if ($action == 'create') ...@@ -1779,12 +1771,6 @@ if ($action == 'create')
print '>' . $langs->trans('SetAcceptedRefused') . '</a></div>'; 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 . '&amp;action=close' . (empty($conf->global->MAIN_JUMP_TAG) ? '' : '#close') . '"';
print '>' . $langs->trans('Close') . '</a></div>';
}
// Clone // Clone
if ($user->rights->supplier_proposal->creer) { if ($user->rights->supplier_proposal->creer) {
print '<div class="inline-block divButAction"><a class="butAction" href="' . $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&amp;socid=' . $object->socid . '&amp;action=clone&amp;object=' . $object->element . '">' . $langs->trans("ToClone") . '</a></div>'; print '<div class="inline-block divButAction"><a class="butAction" href="' . $_SERVER['PHP_SELF'] . '?id=' . $object->id . '&amp;socid=' . $object->socid . '&amp;action=clone&amp;object=' . $object->element . '">' . $langs->trans("ToClone") . '</a></div>';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment