dolfindevelopers

Purchase order parts

ComponentPayablesSDK + UI

Pieces shared by the purchase order and delivery note screens: status and line match badges, match progress, line chips, the list toolbar (debounced search and supplier filter), the card surface, the supplier card and the matched bills card.

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/ap-purchase-order-parts

Also installs: badge, button, dropdown-menu, base-status-badge, base-states, base-money, base-page, ui-ap-purchase-order-parts.

Usage

screen.tsx
import { OrderStatusBadge } from "@/components/dolfin/ap/order-status";

// Place it anywhere inside your <DolfinProvider>.
<OrderStatusBadge />

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
statusstring
classNamestring

Customisation

Without editing the source, you can change:

Class names
className
Messages
ap.orders

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.

useMatchedBillAmountuseMessagesuseSupplier

Files

Written to your app by the install command:

  • components/dolfin/ap/order-status.tsx 113 lines
  • components/dolfin/ap/order-parts.tsx 102 lines
  • components/dolfin/ap/order-cards.tsx 246 lines