Added address to client contracts table

This commit is contained in:
Simon Pocrnjič
2026-01-12 19:57:04 +01:00
parent dc41862afc
commit 7fc4520dbf
3 changed files with 10 additions and 1 deletions
+6 -1
View File
@@ -34,13 +34,14 @@ const segmentForm = useForm({ segment_id: null, contracts: [] });
const exportDialogOpen = ref(false);
const exportScope = ref("current");
const exportColumns = ref(["reference", "customer", "start", "segment", "balance"]);
const exportColumns = ref(["reference", "customer", "address", "start", "segment", "balance"]);
const exportError = ref("");
const isExporting = ref(false);
const exportableColumns = [
{ key: "reference", label: "Referenca" },
{ key: "customer", label: "Stranka" },
{ key: "address", label: "Naslov" },
{ key: "start", label: "Začetek" },
{ key: "segment", label: "Segment" },
{ key: "balance", label: "Stanje" },
@@ -445,6 +446,7 @@ function extractFilenameFromHeaders(headers) {
{ key: 'select', label: '', sortable: false, width: '50px' },
{ key: 'reference', label: 'Referenca', sortable: false },
{ key: 'customer', label: 'Stranka', sortable: false },
{ key: 'address', label: 'Naslov', sortable: false },
{ key: 'start', label: 'Začetek', sortable: false },
{ key: 'segment', label: 'Segment', sortable: false },
{ key: 'balance', label: 'Stanje', sortable: false, align: 'right' },
@@ -545,6 +547,9 @@ function extractFilenameFromHeaders(headers) {
<template #cell-customer="{ row }">
{{ row.client_case?.person?.full_name || "-" }}
</template>
<template #cell-address="{ row }">
{{ row.client_case?.person?.address?.address || "-" }}
</template>
<template #cell-start="{ row }">
{{ formatDate(row.start_date) }}
</template>