diff --git a/pages/contracts/[mode]/[[id]].vue b/pages/contracts/[mode]/[[id]].vue index 14d299f..d2f3081 100644 --- a/pages/contracts/[mode]/[[id]].vue +++ b/pages/contracts/[mode]/[[id]].vue @@ -43,7 +43,7 @@ const itemInfo = ref({ //Functions const setupPage = async () => { if(mode.value === "show" ){ - itemInfo.value = await useSupabaseSelectSingle("contracts", route.params.id, "*, customer(id,name)") + itemInfo.value = await useSupabaseSelectSingle("contracts", route.params.id, "*, customer(id,name), contact(id,fullName)") } else if (mode.value === "edit"){ itemInfo.value = await useSupabaseSelectSingle("contracts", route.params.id, "*") } @@ -125,10 +125,91 @@ setupPage()
-

Kundennummer: {{itemInfo.customer ? itemInfo.customer.name : ""}}

- Eigene Felder: {{itemInfo.ownFields}}
- Beschreibung:
- {{itemInfo.description}}
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Name:{{itemInfo.name}}
Aktiv: + Ja + Nein +
Kundennummer:{{itemInfo.customer ? itemInfo.customer.name : ""}}
Ansprechpartner:{{itemInfo.contact ? itemInfo.contact.fullName : ""}}
Wiederkehrend:{{itemInfo.recurring ? "Ja" : "Nein"}}
Startdatum:{{dayjs(itemInfo.startDate).format("DD.MM.YYYY")}}
Enddatum:{{dayjs(itemInfo.endDate).format("DD.MM.YYYY")}}
Unterschrieben am:{{dayjs(itemInfo.signDate).format("DD.MM.YYYY")}}
Laufzeit:{{itemInfo.duration}}
Rechnungsversand:{{itemInfo.invoiceDispatch}}
Zahlart:{{itemInfo.paymentType}}
SEPA Mandatsreferenz:{{itemInfo.sepaRef}}
SEPA Unterschrieben am:{{dayjs(itemInfo.sepaDate).format("DD.MM.YYYY")}}
Bank:{{itemInfo.bankingName}}
BIC:{{itemInfo.bankingBIC}}
IBAN:{{itemInfo.bankingIban}}
Kontoinhaber:{{itemInfo.bankingOwner}}
Beschreibung:{{itemInfo.notes}}
Eigene Felder:
{{dataStore.ownTenant.ownFields.contracts.find(i => i.key === fieldKey).label}}{{itemInfo.ownFields[fieldKey]}}
+
@@ -434,5 +515,8 @@ setupPage() \ No newline at end of file