diff --git a/htdocs/salaries/card.php b/htdocs/salaries/card.php index 6fbb576bb26..1e4376811a2 100644 --- a/htdocs/salaries/card.php +++ b/htdocs/salaries/card.php @@ -274,6 +274,13 @@ if ($action == 'create') print $form->selectDate((empty($datev) ?-1 : $datev), "datev", '', '', '', 'add', 1, 1); print ''; + // Employee + print ''; + print $form->editfieldkey('Employee', 'fk_user', '', $object, 0, 'string', '', 1).''; + $noactive = 0; // We keep active and unactive users + print $form->select_dolusers(GETPOST('fk_user', 'int'), 'fk_user', 1, '', 0, '', '', 0, 0, 0, 'AND employee=1', 0, '', 'maxwidth300', $noactive); + print ''; + // Label print ''; print $form->editfieldkey('Label', 'label', '', $object, 0, 'string', '', 1).''; @@ -292,13 +299,6 @@ if ($action == 'create') print $form->selectDate($dateep, "dateep", '', '', '', 'add'); print ''; - // Employee - print ''; - print $form->editfieldkey('Employee', 'fk_user', '', $object, 0, 'string', '', 1).''; - $noactive = 0; // We keep active and unactive users - print $form->select_dolusers(GETPOST('fk_user', 'int'), 'fk_user', 1, '', 0, '', '', 0, 0, 0, 'AND employee=1', 0, '', 'maxwidth300', $noactive); - print ''; - // Amount print ''; print $form->editfieldkey('Amount', 'amount', '', $object, 0, 'string', '', 1).'';