From 96c6faf208c8c4f17ec03a2c624e0355f92b8f67 Mon Sep 17 00:00:00 2001 From: kriddles <54413450+kriddles@users.noreply.github.com> Date: Wed, 14 Oct 2020 15:59:58 -0500 Subject: [PATCH] fix expiring filter (#1051) --- 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