dolfindevelopers

Recurring invoice detail

ComponentReceivablesSDK + UI

The blocks of one recurring invoice: the header (customer, cadence, progress, next run, status, and edit, pause, resume and cancel disabled with a reason for roles that may not manage them), a paused notice, the details card (sending, payment terms, discount, last run, memo), the next invoices projected from the cadence, the line template and the generated invoices with paging and loading, empty and error states.

Component: A piece you place inside your own screens: a table, a form, a card or a dialog. You decide the layout around it. Pages vs components

Choose your integration

Ready to connect to Dolfin. Loads data through SDK hooks, with appearance and behaviour you can customise. Requires DolfinProvider.

Loading preview…

Installation

Needs the Dolfin registry token. The CLI copies the source into your app.

Terminal
bunx --bun shadcn@4.23.0 add @dolfin/ar-schedule-detail

Also installs: button, card, base-theme, base-data-table, base-info-hint, base-money, base-page, base-states, base-status-badge, base-timeline, ar-schedule-parts, ui-ar-schedule-detail.

Usage

screen.tsx
import { ScheduleDetailsCard } from "@/components/dolfin/ar/schedule-detail";

// Place it anywhere inside your <DolfinProvider>.
<ScheduleDetailsCard schedule={schedule} view={view} />

Renders inside DolfinProvider (set it up once). By default it loads its own data through the SDK. Supplied-data examples show how to override that behavior.

API reference

PropTypeDescription
schedule required{ id?: string; organisationId?: string; customerId?: string; currency: string; memo?: null | string; paymentTermsDays?: null | number | stri…
view requiredScheduleView
onCustomerClick(customerId: string) => voidMakes the customer a link (e.g. to the customer page).
classNamestring

Customisation

Without editing the source, you can change:

Class names
className
Messages
ar.invoicear.schedulesbase.infoHint.moreAbout

Or edit the installed file directly: it is your code. See theming for colours and fonts.

Hooks

The SDK hooks this component uses. Use them directly from @dolfinai/react to build your own version.

useDolfinLocaleuseMessagesuseScheduleOccurrences

Files

Written to your app by the install command:

  • components/dolfin/ar/schedule-detail.tsx 317 lines
  • components/dolfin/ar/schedule-detail-tables.tsx 250 lines