2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Annotate "in_stock" quantity to SupplierPart API (#3335)

* Annotate "in_stock" quantity to SupplierPart API

* Increment API version
This commit is contained in:
Oliver
2022-07-15 17:37:02 +10:00
committed by GitHub
parent 739489840b
commit 653dcd4526
4 changed files with 36 additions and 1 deletions

View File

@ -840,6 +840,7 @@ function loadSupplierPartTable(table, url, options) {
queryParams: filters,
name: 'supplierparts',
groupBy: false,
sortable: true,
formatNoMatches: function() {
return '{% trans "No supplier parts found" %}';
},
@ -957,6 +958,11 @@ function loadSupplierPartTable(table, url, options) {
title: '{% trans "Packaging" %}',
sortable: false,
},
{
field: 'in_stock',
title: '{% trans "In Stock" %}',
sortable: true,
},
{
field: 'available',
title: '{% trans "Available" %}',