Restrict "recently updated" stock to "available" (#5165)

This commit is contained in:
Oliver 2023-07-04 22:53:46 +10:00 committed by GitHub
parent 8b730884d7
commit 4c3dc6ddbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,6 +107,7 @@ addHeaderAction('recently-updated-stock', '{% trans "Recently Updated" %}', 'fa-
loadStockTable($('#table-recently-updated-stock'), {
disableFilters: true,
params: {
in_stock: true,
part_detail: true,
ordering: "-updated",
updated_after: moment().subtract(1, 'months').format('YYYY-MM-DD'),