implemented adding stock items to documents
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<script>
|
||||
import { t } from '../translations.svelte';
|
||||
let { item, onclick } = $props();
|
||||
</script>
|
||||
|
||||
@@ -7,6 +8,12 @@
|
||||
{#if item.properties}
|
||||
<table>
|
||||
<tbody>
|
||||
{#if item.location.name}
|
||||
<tr>
|
||||
<th>{t('location')}</th>
|
||||
<td>{item.location.name}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{#each Object.entries(item.properties) as [idx,prop]}
|
||||
<tr>
|
||||
<th>{prop.name}</th>
|
||||
@@ -16,6 +23,4 @@
|
||||
</tbody>
|
||||
</table>
|
||||
{/if}
|
||||
<!--<div>{@html item.description.rendered}</div> -->
|
||||
<!-- <span>{item.unit_price/100} {item.currency} / {item.unit}</span> -->
|
||||
</fieldset>
|
||||
|
||||
Reference in New Issue
Block a user