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

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

<template>
  <div class="invoice-summary">
    Total: {{ props.items.reduce((t, c) => t.add(c.TotalAmount), currency(0)) }}
  </div>
</template>