From 050688b0319a7b690742008afd4cb0e46cb50329 Mon Sep 17 00:00:00 2001 From: Kurt Riddlesperger Date: Wed, 14 Oct 2020 14:13:21 -0500 Subject: [PATCH] fix expiring filter --- views/stockoverview.blade.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/views/stockoverview.blade.php b/views/stockoverview.blade.php index a9bebf48..c61aeb13 100644 --- a/views/stockoverview.blade.php +++ b/views/stockoverview.blade.php @@ -142,9 +142,7 @@ @foreach($currentStock as $currentStockEntry) amount > 0) table-warning @elseif ($currentStockEntry->product_missing) table-info @endif"> @@ -327,10 +325,7 @@ strtotime('-1 days')) && - $currentStockEntry->amount > 0) expired @elseif($currentStockEntry->best_before_date < date('Y-m-d - 23:59:59', - strtotime("+$nextXDays - days")) + $currentStockEntry->amount > 0) expired @elseif($currentStockEntry->best_before_date < date('Y-m-d 23:59:59', strtotime("+$nextXDays days")) && $currentStockEntry->amount > 0) expiring @endif @if($currentStockEntry->product_missing) belowminstockamount @endif