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) => {
|
||||
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])
|
||||
}
|
||||
})
|
||||
|
||||
@@ -90,7 +90,7 @@ const openBankstatements = () => {
|
||||
</UButton>
|
||||
<UButton
|
||||
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"
|
||||
variant="outline"
|
||||
>
|
||||
@@ -98,12 +98,36 @@ const openBankstatements = () => {
|
||||
</UButton>
|
||||
<UButton
|
||||
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"
|
||||
variant="outline"
|
||||
>
|
||||
Kunde
|
||||
</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
|
||||
v-if="itemInfo.createddocument"
|
||||
@click="router.push(`/createDocument/show/${itemInfo.createddocument}`)"
|
||||
|
||||
Reference in New Issue
Block a user