Fixes #936 and #943. Include Products that expire today in /stock/volatile and "Expiring soon"-sum on stockoverview

This commit is contained in:
fipwmaqzufheoxq92ebc 2020-08-21 13:23:37 +02:00
parent 68f214ff29
commit fc860129ca

View File

@ -95,7 +95,7 @@ class StockService extends BaseService
if ($excludeExpired)
{
$currentStock = FindAllObjectsInArrayByPropertyValue($currentStock, 'best_before_date', date('Y-m-d 23:59:59', strtotime('now')), '>');
$currentStock = FindAllObjectsInArrayByPropertyValue($currentStock, 'best_before_date', date('Y-m-d 23:59:59', strtotime('-1 days')), '>');
}
return $currentStock;