dolfindevelopers

Supplier details

ComponentPayablesSDK + UI

A supplier's contact, address, bank details and record cards: whether the account is confirmed for pay-by-bank and the button to confirm it, plus the address and bank details displays the confirmation dialog reuses.

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

Works with Dolfin’s SDK context, 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/ap-supplier-details

Also installs: ui-ap-supplier-details.

Usage

screen.tsx
import { ApSupplierDetails } from "@/components/dolfin/ap/supplier-details";

// Place it anywhere inside your <DolfinProvider>.
<ApSupplierDetails supplier={supplier} />

Renders inside DolfinProvider (set it up once). It renders the data you pass as props.

API reference

PropTypeDescription
supplier required{ id?: string; organisationId?: string; name: string; email?: null | string; phone?: null | string; website?: null | string; taxNumber?: nul…
onConfirmBankDetails() => void
canConfirmBankDetailsboolean
childrenstring | number | bigint | boolean | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode> | React.Re…Extra cards after the bank details (e.g. a default ledger account when accounting is connected).
classNamestring

Customisation

Without editing the source, you can change:

Class names
className
Messages
ap.suppliers.detailsbase.infoHint

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.

useDolfinLocaleuseMessages

Files

Written to your app by the install command:

  • components/dolfin/ap/supplier-details.tsx 158 lines