InvoiceTotals

Display subtotal, tax, discounts, and total with automatic calculations.

Installation

typescript
import { InvoiceTotals } from '@happyvertical/smrt-commerce/svelte';

Usage

svelte
<InvoiceTotals subtotal={subtotal} taxRate={5} total={total} amountPaid={amountPaid} />