From 7b0bc9e4720ebdb7089eb7c40bb8497f9104fd06 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Mon, 12 Jul 2021 19:55:53 +0200 Subject: [PATCH] Fixed stock entries page missing columns --- public/viewjs/stockentries.js | 2 +- views/stockentries.blade.php | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/public/viewjs/stockentries.js b/public/viewjs/stockentries.js index bf52dfa4..d60b44ae 100644 --- a/public/viewjs/stockentries.js +++ b/public/viewjs/stockentries.js @@ -3,7 +3,7 @@ 'columnDefs': [ { 'orderable': false, 'targets': 0 }, { 'searchable': false, "targets": 0 }, - { 'visible': false, 'targets': 10 }, + { 'visible': false, 'targets': 10 } ].concat($.fn.dataTable.defaults.columnDefs) }); $('#stockentries-table tbody').removeClass("d-none"); diff --git a/views/stockentries.blade.php b/views/stockentries.blade.php index a1086139..2a5e757c 100644 --- a/views/stockentries.blade.php +++ b/views/stockentries.blade.php @@ -65,10 +65,10 @@ Hidden product_id {{ $__t('Product') }} {{ $__t('Amount') }} - {{ $__t('Due date') }} - {{ $__t('Location') }} - {{ $__t('Store') }} - {{ $__t('Price') }} + {{ $__t('Due date') }} + {{ $__t('Location') }} + {{ $__t('Store') }} + {{ $__t('Price') }} {{ $__t('Purchased date') }} Hidden purchased_date {{ $__t('Timestamp') }} @@ -235,26 +235,26 @@ @if($stockEntry->open == 1){{ $__t('Opened') }}@endif - + {{ $stockEntry->best_before_date }} {{ FindObjectInArrayByPropertyValue($locations, 'id', $stockEntry->location_id)->name }} @if (FindObjectInArrayByPropertyValue($shoppinglocations, 'id', $stockEntry->shopping_location_id) !== null) {{ FindObjectInArrayByPropertyValue($shoppinglocations, 'id', $stockEntry->shopping_location_id)->name }} @endif {{ $stockEntry->price }}