Fixed displayOpenBalances.vue

This commit is contained in:
2026-01-10 19:43:09 +01:00
parent d901ebe365
commit 90788f22da

View File

@@ -42,9 +42,7 @@ const setupPage = async () => {
}) })
draftInvoicesCount.value = draftDocuments.length draftInvoicesCount.value = draftDocuments.length
countPreparedOpenIncomingInvoices.value = (await useEntities("incominginvoices").select("id, state")).filter(i => i.state === "Vorbereitet").length countPreparedOpenIncomingInvoices.value = (await useEntities("incominginvoices").select("id, state")).filter(i => i.state === "Vorbereitet" && !i.archived).length
} }
setupPage() setupPage()
@@ -78,10 +76,10 @@ setupPage()
<td v-else class="text-primary-500 font-bold text-no-wrap">0 Stk / 0,00</td> <td v-else class="text-primary-500 font-bold text-no-wrap">0 Stk / 0,00</td>
</tr> </tr>
<tr> <tr>
<td class="break-all">ToDo Eingangsrechnungsrechnungen:</td> <td class="break-all">Vorbereitete Eingangsrechnungen:</td>
<td <td
v-if="countPreparedOpenIncomingInvoices > 0" v-if="countPreparedOpenIncomingInvoices > 0"
class="text-orange-500 font-bold text-nowrap" class="text-orange-500 font-bold text-wrap"
>{{countPreparedOpenIncomingInvoices}} Stk </td> >{{countPreparedOpenIncomingInvoices}} Stk </td>
<td v-else class="text-primary-500 font-bold text-no-wrap">0 Stk</td> <td v-else class="text-primary-500 font-bold text-no-wrap">0 Stk</td>
</tr> </tr>