better fix
This commit is contained in:
parent
6b61545189
commit
a8cdecf1b8
@ -223,16 +223,9 @@ if ($action == 'create')
|
|||||||
print '<tr><td class="tdtop">'.$langs->trans("RemainderToPay").'</td><td>'.price($total-$sumpaid,0,$outputlangs,1,-1,-1,$conf->currency).'</td></tr>';*/
|
print '<tr><td class="tdtop">'.$langs->trans("RemainderToPay").'</td><td>'.price($total-$sumpaid,0,$outputlangs,1,-1,-1,$conf->currency).'</td></tr>';*/
|
||||||
|
|
||||||
print '<tr><td class="fieldrequired">'.$langs->trans("Date").'</td><td>';
|
print '<tr><td class="fieldrequired">'.$langs->trans("Date").'</td><td>';
|
||||||
$empty=1;
|
$datepaye = dol_mktime(12, 0, 0, $_POST["remonth"], $_POST["reday"], $_POST["reyear"]);
|
||||||
$datepayment='';
|
$datepayment = empty($conf->global->MAIN_AUTOFILL_DATE) ? (empty($_POST["remonth"]) ?-1 : $datepaye) : '';
|
||||||
if (GETPOSTISSET('remonth')) {
|
print $form->selectDate($datepayment, '', '', '', '', "add_payment", 1, 1);
|
||||||
$datepayment = dol_mktime(12, 0, 0, GETPOST("remonth", 'int'), GETPOST('reday', 'int'), GETPOST('reyear', 'int'));
|
|
||||||
$empty=0;
|
|
||||||
} elseif (!empty($conf->global->MAIN_AUTOFILL_DATE)) {
|
|
||||||
$datepayment = dol_mktime(12, 0, 0, dol_print_date(dol_now(), '%m'), dol_print_date(dol_now(), '%d'), dol_print_date(dol_now(), '%Y'));
|
|
||||||
$empty=0;
|
|
||||||
}
|
|
||||||
print $form->selectDate($datepayment, '', '', '', $empty, "add_payment", 1, 1);
|
|
||||||
print "</td>";
|
print "</td>";
|
||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user