mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Added min. stock amount column to stock overview (closes #856)
This commit is contained in:
parent
3ad5f2cac5
commit
362b3f8508
@ -141,7 +141,7 @@
|
||||
- All tables are now customizable (new little eye icon on the top left corner on each table)
|
||||
- Table columns be shown/hidden
|
||||
- There are also new columns on some pages, hidden by default
|
||||
- Stock overview: Value, product group, calories, last purchased, last price
|
||||
- Stock overview: Value, product group, calories, last purchased, last price, min. stock amount
|
||||
- Products list: Default store
|
||||
- Row grouping can be customized to use any available column (thanks @edenhaus)
|
||||
- Table states (visible columns, sorting, column order and so on) are now saved server side (in user settings) means that this stays the same when using different browsers
|
||||
|
@ -4375,7 +4375,7 @@
|
||||
},
|
||||
"note": {
|
||||
"type": "string"
|
||||
},
|
||||
}
|
||||
}
|
||||
},
|
||||
"ExternalBarcodeLookupResponse": {
|
||||
|
@ -27,7 +27,8 @@ SELECT
|
||||
p.quick_consume_amount,
|
||||
p.due_type,
|
||||
plp.purchased_date AS last_purchased,
|
||||
plp.price AS last_price
|
||||
plp.price AS last_price,
|
||||
p.min_stock_amount
|
||||
FROM (
|
||||
SELECT *
|
||||
FROM stock_current
|
||||
@ -74,7 +75,8 @@ SELECT
|
||||
p.quick_consume_amount,
|
||||
p.due_type,
|
||||
plp.purchased_date AS last_purchased,
|
||||
plp.price AS last_price
|
||||
plp.price AS last_price,
|
||||
p.min_stock_amount
|
||||
FROM (
|
||||
SELECT *
|
||||
FROM stock_current
|
||||
|
@ -13,12 +13,14 @@
|
||||
{ 'visible': false, 'targets': 10 },
|
||||
{ 'visible': false, 'targets': 11 },
|
||||
{ 'visible': false, 'targets': 12 },
|
||||
{ 'visible': false, 'targets': 13 },
|
||||
{ "type": "num", "targets": 3 },
|
||||
{ "type": "html-num-fmt", "targets": 9 },
|
||||
{ "type": "html-num-fmt", "targets": 10 },
|
||||
{ "type": "html", "targets": 5 },
|
||||
{ "type": "html", "targets": 11 },
|
||||
{ "type": "html-num-fmt", "targets": 12 },
|
||||
{ "type": "num", "targets": 13 }
|
||||
].concat($.fn.dataTable.defaults.columnDefs)
|
||||
});
|
||||
|
||||
|
@ -168,6 +168,7 @@
|
||||
<th>{{ $__t('Calories') }}</th>
|
||||
<th>{{ $__t('Last purchased') }}</th>
|
||||
<th class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">{{ $__t('Last price') }}</th>
|
||||
<th>{{ $__t('Min. stock amount') }}</th>
|
||||
|
||||
@include('components.userfields_thead', array(
|
||||
'userfields' => $userfields
|
||||
@ -380,6 +381,9 @@
|
||||
<td class="@if(!GROCY_FEATURE_FLAG_STOCK_PRICE_TRACKING) d-none @endif">
|
||||
<span class="locale-number locale-number-currency">{{ $currentStockEntry->last_price }}</span>
|
||||
</td>
|
||||
<td>
|
||||
<span class="locale-number locale-number-quantity-amount">{{ $currentStockEntry->min_stock_amount }}</span>
|
||||
</td>
|
||||
|
||||
@include('components.userfields_tbody', array(
|
||||
'userfields' => $userfields,
|
||||
|
Loading…
x
Reference in New Issue
Block a user