mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 13:15:43 +00:00 
			
		
		
		
	Fix stock.js
This commit is contained in:
		| @@ -66,7 +66,7 @@ | |||||||
|             }, |             }, | ||||||
|             { |             { | ||||||
|                 success: function(response) { |                 success: function(response) { | ||||||
|                     var prefix = '{% settings_value "PURCHASEORDER_REFERENCE_PREFIX" %}'; |                     var prefix = global_settings.PURCHASEORDER_REFERENCE_PREFIX; | ||||||
|  |  | ||||||
|                     for (var idx = 0; idx < response.length; idx++) { |                     for (var idx = 0; idx < response.length; idx++) { | ||||||
|  |  | ||||||
|   | |||||||
| @@ -702,8 +702,7 @@ function loadStockTable(table, options) { | |||||||
|         name: 'stock', |         name: 'stock', | ||||||
|         original: original, |         original: original, | ||||||
|         showColumns: true, |         showColumns: true, | ||||||
|         {% settings_value 'STOCK_GROUP_BY_PART' as group_by_part %} |         {% if False %} | ||||||
|         {% if group_by_part %} |  | ||||||
|         groupByField: options.groupByField || 'part', |         groupByField: options.groupByField || 'part', | ||||||
|         groupBy: grouping, |         groupBy: grouping, | ||||||
|         groupByFormatter: function(field, id, data) { |         groupByFormatter: function(field, id, data) { | ||||||
| @@ -1009,14 +1008,13 @@ function loadStockTable(table, options) { | |||||||
|                 title: '{% trans "Stocktake" %}', |                 title: '{% trans "Stocktake" %}', | ||||||
|                 sortable: true, |                 sortable: true, | ||||||
|             }, |             }, | ||||||
|             {% settings_value "STOCK_ENABLE_EXPIRY" as expiry %} |  | ||||||
|             {% if expiry %} |  | ||||||
|             { |             { | ||||||
|                 field: 'expiry_date', |                 field: 'expiry_date', | ||||||
|                 title: '{% trans "Expiry Date" %}', |                 title: '{% trans "Expiry Date" %}', | ||||||
|                 sortable: true, |                 sortable: true, | ||||||
|  |                 visible: global_settings.STOCK_ENABLE_EXPIRY, | ||||||
|  |                 switchable: global_settings.STOCK_ENABLE_EXPIRY, | ||||||
|             }, |             }, | ||||||
|             {% endif %} |  | ||||||
|             { |             { | ||||||
|                 field: 'updated', |                 field: 'updated', | ||||||
|                 title: '{% trans "Last Updated" %}', |                 title: '{% trans "Last Updated" %}', | ||||||
| @@ -1090,7 +1088,7 @@ function loadStockTable(table, options) { | |||||||
|  |  | ||||||
|     var buttons = [ |     var buttons = [ | ||||||
|         '#stock-print-options', |         '#stock-print-options', | ||||||
|         '#stock-options'; |         '#stock-options', | ||||||
|     ]; |     ]; | ||||||
|  |  | ||||||
|     if (global_settings.BARCODE_ENABLE) { |     if (global_settings.BARCODE_ENABLE) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user