implemented display of document positions

This commit is contained in:
2025-07-10 22:47:09 +02:00
parent 48dfabaaf3
commit 5f3d112cdb
14 changed files with 264 additions and 128 deletions

View File

@@ -0,0 +1,26 @@
<script>
import { useTinyRouter } from 'svelte-tiny-router';
import { onMount } from 'svelte';
import { t } from '../../translations.svelte.js';
var { currency, pos = $bindable(null) } = $props();
console.log(pos);
</script>
{#if pos}
<tr>
<td>{pos.number}</td>
<td>{pos.item}</td>
<td>{pos.title}</td>
<td>{pos.amount}</td>
<td>{pos.unit}</td>
<td>{pos.unit_price/100}&nbsp;{currency}</td>
<td>{pos.net_price/100}&nbsp;{currency}</td>
<td>{pos.tax}&nbsp;%</td>
</tr>
<tr>
<td class="error">buttons</td>
<td colspan="6">{@html pos.description}</td>
<td></td>
</tr>
{/if}