mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Include due_type = "Expiration date" products in /stock/volatile API endpoint (fixes #1372)
This commit is contained in:
@@ -6,3 +6,4 @@
|
|||||||
- Fixed that the current stock total value (header of the stock overview page) didn't include decimal amounts (thanks @Ape)
|
- Fixed that the current stock total value (header of the stock overview page) didn't include decimal amounts (thanks @Ape)
|
||||||
- Some night mode style improvements (thanks @BlizzWave and @KTibow)
|
- Some night mode style improvements (thanks @BlizzWave and @KTibow)
|
||||||
- Recipe printing improvements (thanks @Ape)
|
- Recipe printing improvements (thanks @Ape)
|
||||||
|
- Fixed that due soon products with `due_type` = "Expiration date" were missing in `due_products` of the `/stock/volatile` endpoint
|
||||||
|
@@ -520,7 +520,6 @@ class StockService extends BaseService
|
|||||||
{
|
{
|
||||||
$currentStock = $this->GetCurrentStock(false);
|
$currentStock = $this->GetCurrentStock(false);
|
||||||
$currentStock = FindAllObjectsInArrayByPropertyValue($currentStock, 'best_before_date', date('Y-m-d 23:59:59', strtotime("+$days days")), '<');
|
$currentStock = FindAllObjectsInArrayByPropertyValue($currentStock, 'best_before_date', date('Y-m-d 23:59:59', strtotime("+$days days")), '<');
|
||||||
$currentStock = FindAllObjectsInArrayByPropertyValue($currentStock, 'due_type', 1);
|
|
||||||
|
|
||||||
if ($excludeOverdue)
|
if ($excludeOverdue)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user