aboutsummaryrefslogtreecommitdiff
path: root/src/components/invoice_summary.vue
blob: 6ca790701aa0d8c97a0c6df38bec3ea38b72c6f1 (plain)
1
2
3
4
5
6
7
8
9
<script setup lang="js">
import currency from "currency.js"

const props = defineProps(["items", "isLoading"])
</script>

<template>
  Total: {{ props.items.reduce((t, c) => t.add(c.TotalAmount), currency(0)) }}
</template>