preparing document display
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -40,6 +40,10 @@
|
||||
router.navigate(`/document/add?company_id=${selected_company.id}&document_type=${docType}`)
|
||||
}
|
||||
|
||||
function show(id){
|
||||
router.navigate(`/document/${id}/view`);
|
||||
}
|
||||
|
||||
onMount(loadCompanies);
|
||||
</script>
|
||||
|
||||
@@ -73,7 +77,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
{#each Object.entries(documents).reverse() as [id,document]}
|
||||
<tr>
|
||||
<tr onclick={() => show(id)}>
|
||||
<td>{document.number}</td>
|
||||
<td>{document.date}</td>
|
||||
<td>{document.customer.name.split('\n')[0]}</td>
|
||||
|
||||
Reference in New Issue
Block a user