add conf and set default date to yes
This commit is contained in:
parent
99ddef0530
commit
01a0e48b95
@ -348,6 +348,10 @@ if ($nolinesbefore) {
|
|||||||
if (!empty($conf->service->enabled) && ($object->element == 'facturerec' || $object->element == 'invoice_supplier_rec')) {
|
if (!empty($conf->service->enabled) && ($object->element == 'facturerec' || $object->element == 'invoice_supplier_rec')) {
|
||||||
echo '<div class="divlinefordates"><br>';
|
echo '<div class="divlinefordates"><br>';
|
||||||
echo $langs->trans('AutoFillDateFrom').' ';
|
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 $form->selectyesno('date_start_fill', $line->date_start_fill, 1);
|
||||||
echo ' - ';
|
echo ' - ';
|
||||||
echo $langs->trans('AutoFillDateTo').' ';
|
echo $langs->trans('AutoFillDateTo').' ';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user