Added openSum
This commit is contained in:
@@ -120,13 +120,16 @@
|
||||
</template>
|
||||
<template #paid-data="{row}">
|
||||
<div v-if="(row.type === 'invoices' ||row.type === 'advanceInvoices') && row.state === 'Gebucht'">
|
||||
<span v-if="isPaid(row)" class="text-primary-500">Bezahlt</span>
|
||||
<span v-if="useSum().getIsPaid(row,items)" class="text-primary-500">Bezahlt</span>
|
||||
<span v-else class="text-rose-600">Offen</span>
|
||||
</div>
|
||||
</template>
|
||||
<template #amount-data="{row}">
|
||||
<span v-if="row.type !== 'deliveryNotes'">{{displayCurrency(useSum().getCreatedDocumentSum(row,items))}}</span>
|
||||
</template>
|
||||
<template #amountOpen-data="{row}">
|
||||
<span v-if="row.type !== 'deliveryNotes' && row.state !== 'Entwurf' && !useSum().getIsPaid(row,items) ">{{displayCurrency(useSum().getCreatedDocumentSum(row, items) - row.statementallocations.reduce((n,{amount}) => n + amount, 0))}}</span>
|
||||
</template>
|
||||
</UTable>
|
||||
|
||||
</template>
|
||||
@@ -212,6 +215,11 @@ const templateColumns = [
|
||||
label: "Datum",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "amountOpen",
|
||||
label: "Offener Betrag",
|
||||
sortable: true
|
||||
},
|
||||
{
|
||||
key: "paid",
|
||||
label: "Bezahlt",
|
||||
|
||||
Reference in New Issue
Block a user