mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Show row_created_timestamp on the stock entries page (closes #1063)
This commit is contained in:
parent
cdf6ac78e2
commit
cf8604e984
@ -2169,3 +2169,6 @@ msgstr ""
|
||||
|
||||
msgid "In-stock products"
|
||||
msgstr ""
|
||||
|
||||
msgid "Timestamp"
|
||||
msgstr ""
|
||||
|
@ -2,7 +2,8 @@
|
||||
'order': [[2, 'asc']],
|
||||
'columnDefs': [
|
||||
{ 'orderable': false, 'targets': 0 },
|
||||
{ 'searchable': false, "targets": 0 }
|
||||
{ 'searchable': false, "targets": 0 },
|
||||
{ 'visible': false, 'targets': 10 },
|
||||
].concat($.fn.dataTable.defaults.columnDefs)
|
||||
});
|
||||
$('#stockentries-table tbody').removeClass("d-none");
|
||||
|
@ -71,6 +71,7 @@
|
||||
<th class="@if(GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">{{ $__t('Price') }}</th>
|
||||
<th data-shadow-rowgroup-column="9">{{ $__t('Purchased date') }}</th>
|
||||
<th class="d-none">Hidden purchased_date</th>
|
||||
<th>{{ $__t('Timestamp') }}</th>
|
||||
|
||||
@include('components.userfields_thead', array(
|
||||
'userfields' => $userfields
|
||||
@ -265,6 +266,11 @@
|
||||
datetime="{{ $stockEntry->purchased_date }} 23:59:59"></time>
|
||||
</td>
|
||||
<td class="d-none">{{ $stockEntry->purchased_date }}</td>
|
||||
<td>
|
||||
<span>{{ $stockEntry->row_created_timestamp }}</span>
|
||||
<time class="timeago timeago-contextual"
|
||||
datetime="{{ $stockEntry->row_created_timestamp }}"></time>
|
||||
</td>
|
||||
|
||||
@include('components.userfields_tbody', array(
|
||||
'userfields' => $userfields,
|
||||
|
Loading…
x
Reference in New Issue
Block a user