diff --git a/htdocs/compta/paiement_charge.php b/htdocs/compta/paiement_charge.php
index a1c3a246829..37301908693 100644
--- a/htdocs/compta/paiement_charge.php
+++ b/htdocs/compta/paiement_charge.php
@@ -223,9 +223,9 @@ if ($action == 'create')
print '
| '.$langs->trans("RemainderToPay").' | '.price($total-$sumpaid,0,$outputlangs,1,-1,-1,$conf->currency).' |
';*/
print '| '.$langs->trans("Date").' | ';
- $datepaye = dol_mktime(12, 0, 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
- $datepaye = ($datepaye == '' ? (empty($conf->global->MAIN_AUTOFILL_DATE) ?-1 : '') : $datepaye);
- print $form->selectDate($datepaye, '', '', '', '', "add_payment", 1, 1);
+ $datepayment = dol_mktime(12, 0, 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
+ $datepayment = ($datepayment == '' ? (empty($conf->global->MAIN_AUTOFILL_DATE) ?-1 : '') : $datepayment);
+ print $form->selectDate($datepayment, '', '', '', '', "add_payment", 1, 1);
print " | ";
print '
';