Commit cfced2c3 authored by Karamel's avatar Karamel
Browse files

Allow dateStop to be a date (not timestamp only) in cash session search route.

parent 62d7a3fe
......@@ -88,7 +88,7 @@ $app->GET('/api/cash/search/',
}
// Get optional dateStop
$dateStop = (empty($queryParams['dateStop'])) ? null
: DateUtils::readDate(intval($queryParams['dateStop']));
: DateUtils::readDate($queryParams['dateStop']);
// Check optional cash register
$cashRegister = null;
if ($cashRegisterId !== null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment