Skip to content

Commit

Permalink
feat(stock): default filter on depot for movements
Browse files Browse the repository at this point in the history
Adds a default filter on the link from the Articles in Stock registry to
the stock movements registry to filter by the depot.

Closes #5327.
  • Loading branch information
jniles committed Feb 1, 2021
1 parent 193019e commit f07a102
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
<a data-method="stock-movement" ui-sref="stockMovements({
filters : [
{ key : 'period', value : 'allTime' },
{ key : 'inventory_uuid', value : row.entity.inventory_uuid, displayValue : row.entity.text }
{ key : 'inventory_uuid', value : row.entity.inventory_uuid, displayValue : row.entity.text },
{ key : 'depot_uuid', value : row.entity.depot_uuid, displayValue : row.entity.depot_text},
]})" href>
<span class="fa fa-file-text-o"></span> <span translate>TREE.STOCK_MOVEMENTS</span>
</a>
Expand Down

0 comments on commit f07a102

Please sign in to comment.