Fix trad/compatibility
This commit is contained in:
parent
ac9ab7b228
commit
eb03fb7540
@ -814,21 +814,23 @@ if (empty($id) || $action == 'add' || $action == 'request' || $action == 'create
|
|||||||
print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'" onsubmit="return valider()" name="demandeCP">'."\n";
|
print '<form method="POST" action="'.$_SERVER['PHP_SELF'].'" onsubmit="return valider()" name="demandeCP">'."\n";
|
||||||
print '<input type="hidden" name="action" value="create" />'."\n";
|
print '<input type="hidden" name="action" value="create" />'."\n";
|
||||||
|
|
||||||
dol_fiche_head('', '', '', -1);
|
if (empty($conf->global->HOLIDAY_HIDE_BALANCE))
|
||||||
|
{
|
||||||
|
dol_fiche_head('', '', '', -1);
|
||||||
|
|
||||||
$out='';
|
$out='';
|
||||||
$typeleaves=$object->getTypes(1,1);
|
$typeleaves=$object->getTypes(1,1);
|
||||||
foreach($typeleaves as $key => $val)
|
foreach($typeleaves as $key => $val)
|
||||||
{
|
{
|
||||||
$nb_type = $object->getCPforUser($user->id, $val['rowid']);
|
$nb_type = $object->getCPforUser($user->id, $val['rowid']);
|
||||||
$nb_holiday += $nb_type;
|
$nb_holiday += $nb_type;
|
||||||
$out .= ' - '.$val['label'].': <strong>'.($nb_type?price2num($nb_type):0).'</strong><br>';
|
$out .= ' - '.$val['label'].': <strong>'.($nb_type?price2num($nb_type):0).'</strong><br>';
|
||||||
}
|
}
|
||||||
print $langs->trans('SoldeCPUser', round($nb_holiday,5)).'<br>';
|
print $langs->trans('SoldeCPUser', round($nb_holiday,5)).'<br>';
|
||||||
print $out;
|
print $out;
|
||||||
|
|
||||||
dol_fiche_end();
|
|
||||||
|
|
||||||
|
dol_fiche_end();
|
||||||
|
}
|
||||||
|
|
||||||
dol_fiche_head();
|
dol_fiche_head();
|
||||||
|
|
||||||
|
|||||||
@ -81,7 +81,7 @@ EmployeeFirstname=Employee first name
|
|||||||
TypeWasDisabledOrRemoved=Leave type (id %s) was disabled or removed
|
TypeWasDisabledOrRemoved=Leave type (id %s) was disabled or removed
|
||||||
LastHolidays=Latest %s leave requests
|
LastHolidays=Latest %s leave requests
|
||||||
AllHolidays=All leave requests
|
AllHolidays=All leave requests
|
||||||
LEAVE_PAID=Paid vacationxx
|
LEAVE_PAID=Paid vacation
|
||||||
LEAVE_SICK=Sick leave
|
LEAVE_SICK=Sick leave
|
||||||
LEAVE_OTHER=Other leave
|
LEAVE_OTHER=Other leave
|
||||||
LEAVE_PAID_FR=Paid vacation
|
LEAVE_PAID_FR=Paid vacation
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user