mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Add stocktake_date field to stock API, and to stock table
This commit is contained in:
parent
1316e6bf5b
commit
df327d4e64
@ -131,8 +131,7 @@ $.fn.inventreeTable = function(options) {
|
|||||||
|
|
||||||
// Callback when a column is changed
|
// Callback when a column is changed
|
||||||
options.onColumnSwitch = function(field, checked) {
|
options.onColumnSwitch = function(field, checked) {
|
||||||
console.log(`${field} -> ${checked}`);
|
|
||||||
|
|
||||||
var columns = table.bootstrapTable('getVisibleColumns');
|
var columns = table.bootstrapTable('getVisibleColumns');
|
||||||
|
|
||||||
var text = visibleColumnString(columns);
|
var text = visibleColumnString(columns);
|
||||||
|
@ -208,6 +208,7 @@ class StockItemSerializer(InvenTreeModelSerializer):
|
|||||||
'stale',
|
'stale',
|
||||||
'status',
|
'status',
|
||||||
'status_text',
|
'status_text',
|
||||||
|
'stocktake_date',
|
||||||
'supplier_part',
|
'supplier_part',
|
||||||
'supplier_part_detail',
|
'supplier_part_detail',
|
||||||
'tracking_items',
|
'tracking_items',
|
||||||
|
@ -590,6 +590,11 @@ function loadStockTable(table, options) {
|
|||||||
return locationDetail(row);
|
return locationDetail(row);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'stocktake_date',
|
||||||
|
title: '{% trans "Stocktake" %}',
|
||||||
|
sortable: true,
|
||||||
|
},
|
||||||
{% settings_value "STOCK_ENABLE_EXPIRY" as expiry %}
|
{% settings_value "STOCK_ENABLE_EXPIRY" as expiry %}
|
||||||
{% if expiry %}
|
{% if expiry %}
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user