mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Include due_type = "Expiration date" products in /stock/volatile API endpoint (fixes #1372)
This commit is contained in:
@@ -520,7 +520,6 @@ class StockService extends BaseService
|
||||
{
|
||||
$currentStock = $this->GetCurrentStock(false);
|
||||
$currentStock = FindAllObjectsInArrayByPropertyValue($currentStock, 'best_before_date', date('Y-m-d 23:59:59', strtotime("+$days days")), '<');
|
||||
$currentStock = FindAllObjectsInArrayByPropertyValue($currentStock, 'due_type', 1);
|
||||
|
||||
if ($excludeOverdue)
|
||||
{
|
||||
|
Reference in New Issue
Block a user