From 9746e1aaa8ad62a9b5941ce54a83afd631b09cc3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 26 Nov 2007 19:03:31 +0000 Subject: [PATCH] Fix: Correction charges --- htdocs/compta/sociales/charges.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); } }