diff --git a/views/stockentries.blade.php b/views/stockentries.blade.php index 211296a9..0336b3e0 100644 --- a/views/stockentries.blade.php +++ b/views/stockentries.blade.php @@ -241,7 +241,7 @@ {{ $stockEntry->best_before_date }} + @if($stockEntry->best_before_date != "") datetime="{{ $stockEntry->best_before_date }} 23:59:59" @endif> {{ $stockEntry->purchased_date }} + @if($stockEntry->purchased_date != "") datetime="{{ $stockEntry->purchased_date }} 23:59:59" @endif> {{ $stockEntry->purchased_date }} diff --git a/views/stockoverview.blade.php b/views/stockoverview.blade.php index da4103d9..24974d5b 100755 --- a/views/stockoverview.blade.php +++ b/views/stockoverview.blade.php @@ -352,7 +352,7 @@ {{ $currentStockEntry->best_before_date }} + @if($currentStockEntry->best_before_date != "") datetime="{{ $currentStockEntry->best_before_date }} 23:59:59" @endif> @foreach(FindAllObjectsInArrayByPropertyValue($currentStockLocations, 'product_id', $currentStockEntry->product_id) as $locationsForProduct)