diff --git a/htdocs/compta/sociales/charges.php b/htdocs/compta/sociales/charges.php index 26dc83e346a..41cf002f76b 100644 --- a/htdocs/compta/sociales/charges.php +++ b/htdocs/compta/sociales/charges.php @@ -33,6 +33,7 @@ $langs->load("bills"); // Protection $user->getrights('compta'); +$user->getrights('tax'); if (!$user->admin && !$user->rights->tax->charges) accessforbidden(); @@ -49,7 +50,7 @@ $chid=isset($_GET["id"])?$_GET["id"]:$_POST["id"]; /* *************************************************************************** */ /* - * Classer payé + * Classer paye */ if ($_POST["action"] == 'confirm_payed') { @@ -90,6 +91,7 @@ if ($_POST["action"] == 'confirm_delete') } } + /* * Ajout d'une charge sociale */ @@ -416,7 +418,7 @@ if ($chid > 0) print "id&action=create\">".$langs->trans("DoPayment").""; } - // Classer 'payé' + // Classer 'pay�' if ($cha->paye == 0 && round($resteapayer) <=0 && $user->rights->tax->charges->creer) { print "id&action=payed\">".$langs->trans("ClassifyPayed").""; @@ -433,7 +435,7 @@ if ($chid > 0) } else { - /* Charge non trouvée */ + /* Charge non trouv�e */ dolibarr_print_error('',$cha->error); } }