New : disallow social contribution modification if paid
This commit is contained in:
parent
db4bbf46fc
commit
f90df57dc5
@ -483,7 +483,7 @@ if ($id > 0)
|
|||||||
print "<div class=\"tabsAction\">\n";
|
print "<div class=\"tabsAction\">\n";
|
||||||
|
|
||||||
// Edit
|
// Edit
|
||||||
if ($user->rights->tax->charges->creer)
|
if ($object->paye == 0 && $user->rights->tax->charges->creer)
|
||||||
{
|
{
|
||||||
print "<a class=\"butAction\" href=\"".DOL_URL_ROOT."/compta/sociales/charges.php?id=$object->id&action=edit\">".$langs->trans("Modify")."</a>";
|
print "<a class=\"butAction\" href=\"".DOL_URL_ROOT."/compta/sociales/charges.php?id=$object->id&action=edit\">".$langs->trans("Modify")."</a>";
|
||||||
}
|
}
|
||||||
@ -517,7 +517,7 @@ if ($id > 0)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Charge non trouv<75> */
|
/* Social contribution not found */
|
||||||
dol_print_error('',$object->error);
|
dol_print_error('',$object->error);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user