Fix language
This commit is contained in:
parent
727c4b787b
commit
c4e96e9f74
@ -885,7 +885,6 @@ LineNb=Line no.
|
||||
IncotermLabel=Incoterms
|
||||
TabLetteringCustomer=Customer lettering
|
||||
TabLetteringSupplier=Vendor lettering
|
||||
# Week day
|
||||
Monday=Monday
|
||||
Tuesday=Tuesday
|
||||
Wednesday=Wednesday
|
||||
@ -965,3 +964,4 @@ SelectAThirdPartyFirst=Select a third party first...
|
||||
YouAreCurrentlyInSandboxMode=You are currently in the %s "sandbox" mode
|
||||
Inventory=Inventory
|
||||
AnalyticCode=Analytic code
|
||||
TMenuMRP=MRP
|
||||
@ -109,3 +109,4 @@ UserLogoff=User logout
|
||||
UserLogged=User logged
|
||||
DateEmployment=Employment Start Date
|
||||
DateEmploymentEnd=Employment End Date
|
||||
CantDisableYourself=You can disable your own user record
|
||||
@ -388,12 +388,12 @@ if (empty($reshook)) {
|
||||
$object->dateemployment = $dateemployment;
|
||||
$dateemploymentend = dol_mktime(0, 0, 0, GETPOST('dateemploymentendmonth', 'int'), GETPOST('dateemploymentendday', 'int'), GETPOST('dateemploymentendyear', 'int'));
|
||||
$object->dateemploymentend = $dateemploymentend;
|
||||
|
||||
|
||||
if (! empty($conf->stock->enabled))
|
||||
{
|
||||
$object->fk_warehouse = GETPOST('fk_warehouse', 'int');
|
||||
}
|
||||
|
||||
|
||||
if (! empty($conf->multicompany->enabled))
|
||||
{
|
||||
if (! empty($_POST["superadmin"]))
|
||||
@ -1553,7 +1553,7 @@ else
|
||||
print '<tr><td>'.$langs->trans("PostOrFunction").'</td>';
|
||||
print '<td>'.$object->job.'</td>';
|
||||
print '</tr>'."\n";
|
||||
|
||||
|
||||
// Default warehouse
|
||||
if (! empty($conf->stock->enabled))
|
||||
{
|
||||
@ -1828,18 +1828,25 @@ else
|
||||
}
|
||||
}
|
||||
|
||||
// Activer
|
||||
// Enable user
|
||||
if ($user->id <> $id && $candisableuser && $object->statut == 0 &&
|
||||
((empty($conf->multicompany->enabled) && $object->entity == $user->entity) || ! $user->entity || ($object->entity == $conf->entity) || ($conf->global->MULTICOMPANY_TRANSVERSE_MODE && $conf->entity == 1)))
|
||||
{
|
||||
print '<div class="inline-block divButAction"><a class="butAction" href="'.$_SERVER['PHP_SELF'].'?id='.$object->id.'&action=enable">'.$langs->trans("Reactivate").'</a></div>';
|
||||
}
|
||||
// Desactiver
|
||||
// Disable user
|
||||
if ($user->id <> $id && $candisableuser && $object->statut == 1 &&
|
||||
((empty($conf->multicompany->enabled) && $object->entity == $user->entity) || ! $user->entity || ($object->entity == $conf->entity) || ($conf->global->MULTICOMPANY_TRANSVERSE_MODE && $conf->entity == 1)))
|
||||
{
|
||||
print '<div class="inline-block divButAction"><a class="butActionDelete" href="'.$_SERVER['PHP_SELF'].'?action=disable&id='.$object->id.'">'.$langs->trans("DisableUser").'</a></div>';
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($user->id == $id)
|
||||
{
|
||||
print '<div class="inline-block divButAction"><a class="butActionRefused classfortooltip" href="#" title="'.$langs->trans("CantDisableYourself").'">'.$langs->trans("DisableUser").'</a></div>';
|
||||
}
|
||||
}
|
||||
// Delete
|
||||
if ($user->id <> $id && $candisableuser &&
|
||||
((empty($conf->multicompany->enabled) && $object->entity == $user->entity) || ! $user->entity || ($object->entity == $conf->entity) || ($conf->global->MULTICOMPANY_TRANSVERSE_MODE && $conf->entity == 1)))
|
||||
@ -2582,7 +2589,7 @@ else
|
||||
print $object->job;
|
||||
}
|
||||
print '</td></tr>';
|
||||
|
||||
|
||||
// Default warehouse
|
||||
if (! empty($conf->stock->enabled))
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user