Compare commits
2 Commits
main
...
53349fae83
| Author | SHA1 | Date | |
|---|---|---|---|
| 53349fae83 | |||
| d8eb1559c8 |
@@ -522,7 +522,7 @@ export default async function resourceRoutes(server: FastifyInstance) {
|
|||||||
Object.keys(data).forEach((key) => {
|
Object.keys(data).forEach((key) => {
|
||||||
console.log(key)
|
console.log(key)
|
||||||
|
|
||||||
if(key.includes("_at") || key.includes("At") || key.toLowerCase().includes("date")) {
|
if((key.includes("_at") || key.includes("At") || key.toLowerCase().includes("date") ) && key !=="deliveryDateType") {
|
||||||
data[key] = normalizeDate(data[key])
|
data[key] = normalizeDate(data[key])
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -90,7 +90,7 @@ const openBankstatements = () => {
|
|||||||
</UButton>
|
</UButton>
|
||||||
<UButton
|
<UButton
|
||||||
v-if="itemInfo.project"
|
v-if="itemInfo.project"
|
||||||
@click="router.push(`/standardEntity/projects/show/${itemInfo.project}`)"
|
@click="router.push(`/standardEntity/projects/show/${itemInfo.project?.id}`)"
|
||||||
icon="i-heroicons-link"
|
icon="i-heroicons-link"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
>
|
>
|
||||||
@@ -98,12 +98,36 @@ const openBankstatements = () => {
|
|||||||
</UButton>
|
</UButton>
|
||||||
<UButton
|
<UButton
|
||||||
v-if="itemInfo.customer"
|
v-if="itemInfo.customer"
|
||||||
@click="router.push(`/standardEntity/customers/show/${itemInfo.customer}`)"
|
@click="router.push(`/standardEntity/customers/show/${itemInfo.customer?.id}`)"
|
||||||
icon="i-heroicons-link"
|
icon="i-heroicons-link"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
>
|
>
|
||||||
Kunde
|
Kunde
|
||||||
</UButton>
|
</UButton>
|
||||||
|
<UButton
|
||||||
|
v-if="itemInfo.plant"
|
||||||
|
@click="router.push(`/standardEntity/plants/show/${itemInfo.plant?.id}`)"
|
||||||
|
icon="i-heroicons-link"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
Objekt
|
||||||
|
</UButton>
|
||||||
|
<UButton
|
||||||
|
v-if="itemInfo.contract"
|
||||||
|
@click="router.push(`/standardEntity/contracts/show/${itemInfo.contract?.id}`)"
|
||||||
|
icon="i-heroicons-link"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
Vertrag
|
||||||
|
</UButton>
|
||||||
|
<UButton
|
||||||
|
v-if="itemInfo.contact"
|
||||||
|
@click="router.push(`/standardEntity/contacts/show/${itemInfo.contact?.id}`)"
|
||||||
|
icon="i-heroicons-link"
|
||||||
|
variant="outline"
|
||||||
|
>
|
||||||
|
Ansprechpartner
|
||||||
|
</UButton>
|
||||||
<UButton
|
<UButton
|
||||||
v-if="itemInfo.createddocument"
|
v-if="itemInfo.createddocument"
|
||||||
@click="router.push(`/createDocument/show/${itemInfo.createddocument}`)"
|
@click="router.push(`/createDocument/show/${itemInfo.createddocument}`)"
|
||||||
|
|||||||
Reference in New Issue
Block a user