Merge branch 'feature/ReportExcels' into 'develop'

add option to datatable

See merge request witelgroup/rms_v2!62
This commit is contained in:
2025-01-13 07:09:22 +00:00

View File

@@ -13,11 +13,17 @@ class FilterBetween extends SearchFilter
[$minVal, $maxVal] = $this->filter->getValue();
if ($minVal) {
if ($this->filter->getDatatype() == "date") {
$minVal = $minVal . " 00:00:00";
}
$this->filter->setValue($minVal);
$query = (new FilterGreaterThanOrEqual($this->query, $this->filter))->apply();
}
if ($maxVal) {
if ($this->filter->getDatatype() == "date") {
$maxVal = $maxVal . " 23:59:59";
}
$this->filter->setValue($maxVal);
$query = (new FilterLessThanOrEqual($this->query, $this->filter))->apply();
}