Skip to content
Snippets Groups Projects
Commit f90df57d authored by Maxime Kohlhaas's avatar Maxime Kohlhaas
Browse files

New : disallow social contribution modification if paid

parent db4bbf46
No related branches found
No related tags found
No related merge requests found
......@@ -483,7 +483,7 @@ if ($id > 0)
print "<div class=\"tabsAction\">\n";
// 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&amp;action=edit\">".$langs->trans("Modify")."</a>";
}
......@@ -517,7 +517,7 @@ if ($id > 0)
}
else
{
/* Charge non trouv� */
/* Social contribution not found */
dol_print_error('',$object->error);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment