better fix
This commit is contained in:
parent
7e30812529
commit
0fa7134bd1
@ -223,14 +223,16 @@ 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="fieldrequired">'.$langs->trans("Date").'</td><td>';
|
||||
$empty=1;
|
||||
$datepayment='';
|
||||
if (GETPOSTISSET('remonth')) {
|
||||
$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'));
|
||||
} else {
|
||||
$datepayment = '' ;
|
||||
$empty=0;
|
||||
}
|
||||
print $form->selectDate($datepayment, '', '', '', '', "add_payment", 1, 1);
|
||||
print $form->selectDate($datepayment, '', '', '', $empty, "add_payment", 1, 1);
|
||||
print "</td>";
|
||||
print '</tr>';
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user