add conf and set default date to yes

This commit is contained in:
atm-steve 2022-06-21 10:06:26 +02:00
parent 99ddef0530
commit 01a0e48b95

View File

@ -348,6 +348,10 @@ if ($nolinesbefore) {
if (!empty($conf->service->enabled) && ($object->element == 'facturerec' || $object->element == 'invoice_supplier_rec')) {
echo '<div class="divlinefordates"><br>';
echo $langs->trans('AutoFillDateFrom').' ';
if ($conf->global->INVOICE_REC_DATE_TO_YES) {
$line->date_start_fill = 1;
$line->date_end_fill = 1;
}
echo $form->selectyesno('date_start_fill', $line->date_start_fill, 1);
echo ' - ';
echo $langs->trans('AutoFillDateTo').' ';