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