# CreditNoteSummary

A credit or debit note's totals and where its money went: Applied, Refunded and Credit left for a credit note, or Paid and Still owed for a debit note, with an optional Payments list.

```tsx
import { CreditNoteSummary } from "@cynco-labs/ui";
```

## Usage

```tsx
import { CreditNoteSummary } from "@cynco-labs/ui";

export default function CreditNoteSummaryDemo() {
	return (
		<div className="grid gap-6 grid-cols-[repeat(auto-fit,minmax(16rem,1fr))]">
			<CreditNoteSummary
				note={{
					noteType: "credit",
					status: "partially_applied",
					subtotal: 1500,
					discountAmount: 0,
					taxAmount: 120,
					totalAmount: 1620,
					appliedAmount: 1000,
					refundAmount: 200,
					remainingAmount: 420,
				}}
			/>
			<CreditNoteSummary
				note={{
					noteType: "debit",
					status: "partially_paid",
					subtotal: 800,
					taxAmount: 64,
					totalAmount: 864,
					paidAmount: 500,
				}}
				payments={[
					{
						id: "p1",
						paymentDate: "2026-10-21",
						method: "Bank Transfer",
						reference: "MBB-882140",
						amount: 300,
					},
					{
						id: "p2",
						paymentDate: "2026-10-27",
						method: "Credit note",
						reference: "CN-2026-0018",
						amount: 200,
					},
				]}
			/>
		</div>
	);
}
```

## Use

The credit and debit note detail page.

## Props

note ({noteType, status, subtotal, discountAmount, taxAmount, totalAmount, appliedAmount, refundAmount, remainingAmount, paidAmount, isInvoiceAmendment, currency}) and payments ({id, paymentDate, method, reference, amount}); className and native div props.

## Notes

The settlement rows hide on drafts, voided notes and invoice amendments. Payments sit on a bg-table-surface list with table-row-divider, and references show in primary text-tiny-id. Responsive: rows and payments wrap rather than overlap when narrow.

Category: Accounting · Sales. Source: `packages/ui/src/accounting/sales.tsx`.
