implemented search on in stock locations
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -265,8 +265,10 @@
|
||||
<legend>
|
||||
{t('stock')}
|
||||
</legend>
|
||||
{#if Object.keys(stock.items).length }
|
||||
{t('items')}
|
||||
<ul>
|
||||
{#each Object.values(stock) as item}
|
||||
{#each Object.values(stock.items) as item}
|
||||
<li>
|
||||
<a href="/stock/{item.owner.type}/{item.owner.id}/item/{item.owner_number}" {onclick} >
|
||||
{item.name} [{t('code')}: <span class="code">{item.code}</span>]
|
||||
@@ -275,6 +277,18 @@
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
{/if}
|
||||
{#if Object.keys(stock.locations).length}
|
||||
{t('locations')}
|
||||
<ul>
|
||||
{#each Object.values(stock.locations) as loc (loc.id)}
|
||||
<li>
|
||||
<a href="/stock/location/{loc.id}">{loc.name}</a>
|
||||
<br/> {@html loc.description.rendered}
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
{/if}
|
||||
</fieldset>
|
||||
{/if}
|
||||
{#if times}
|
||||
|
||||
Reference in New Issue
Block a user