|
@@ -41,6 +41,8 @@ if ($user->socid > 0)
|
|
|
$socid = $user->socid;
|
|
|
}
|
|
|
|
|
|
+$charge = new ChargeSociales($db);
|
|
|
+
|
|
|
|
|
|
/*
|
|
|
* Actions
|
|
@@ -161,7 +163,6 @@ $form = new Form($db);
|
|
|
// Formulaire de creation d'un paiement de charge
|
|
|
if ($action == 'create')
|
|
|
{
|
|
|
- $charge = new ChargeSociales($db);
|
|
|
$charge->fetch($chid);
|
|
|
$charge->accountid = $charge->fk_account ? $charge->fk_account : $charge->accountid;
|
|
|
$charge->paiementtype = $charge->mode_reglement_id ? $charge->mode_reglement_id : $charge->paiementtype;
|
|
@@ -223,7 +224,7 @@ if ($action == 'create')
|
|
|
print '<tr><td class="fieldrequired">'.$langs->trans("Date").'</td><td>';
|
|
|
$datepaye = dol_mktime(12, 0, 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
|
|
|
$datepayment = empty($conf->global->MAIN_AUTOFILL_DATE) ? (empty($_POST["remonth"]) ?-1 : $datepaye) : 0;
|
|
|
- print $form->selectDate($datepayment, '', '', '', '', "add_payment", 1, 1);
|
|
|
+ print $form->selectDate($datepayment, '', '', '', 0, "add_payment", 1, 1, 0, '', '', $charge->date_ech, '', 1, $langs->trans("DateOfSocialContribution"));
|
|
|
print "</td>";
|
|
|
print '</tr>';
|
|
|
|