Update cashcontrol_card.php

This commit is contained in:
Frédéric FRANCE 2021-11-10 12:21:03 +01:00 committed by GitHub
parent e5d40bf464
commit 005254ad34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,7 +356,7 @@ if ($action == "create" || $action == "start" || $action == 'close') {
} elseif ($syear && $smonth && $sday) {
$sql .= " AND datef BETWEEN '".$db->idate(dol_mktime(0, 0, 0, $smonth, $sday, $syear))."' AND '".$db->idate(dol_mktime(23, 59, 59, $smonth, $sday, $syear))."'";
} else {
dol_print_error('', 'Year not defined');
setEventMessages($langs->trans('Year not defined'), null, 'errors');
}
$resql = $db->query($sql);