mirror of
https://github.com/grocy/grocy.git
synced 2026-04-07 05:16:15 +02:00
Fixes #936 and #943. Include Products that expire today in /stock/volatile and "Expiring soon"-sum on stockoverview
This commit is contained in:
parent
68f214ff29
commit
fc860129ca
|
|
@ -95,7 +95,7 @@ class StockService extends BaseService
|
||||||
|
|
||||||
if ($excludeExpired)
|
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;
|
return $currentStock;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user