Skip to content
GitHub
Browse the docs

Approvals and close

Close checklist

CloseChecklist

Period-close tasks in order. An agent prepares them; a second person signs off.

The person sees

Not ready to close · 0/4

  • Reconcile the bankOpen
  • Post accrualsOpen
  • Prepare the VAT returnWaits for: Reconcile the bank, Post accruals
  • Close the periodWaits for: Prepare the VAT return
Install
booki_version=$(npm view @booki-aui/react@latest version) &&
ui_sdk_version=$(npm view "@booki-aui/react@$booki_version" peerDependencies.@ui-sdk/core) &&
pnpm add --save-exact "@booki-aui/core@$booki_version" "@booki-aui/react@$booki_version" "@booki-aui/styles@$booki_version" \
  "@ui-sdk/core@$ui_sdk_version" "@ui-sdk/react@$ui_sdk_version"

Try the bridge

Open this page in a browser and run the example in the console with a fresh preview. Read the current ref from the snapshot before acting.

Console
const { agent } = window
const entry = agent.snapshot().filter(
  (entry) => !entry.offPage && entry.component === "close-checklist",
)[0]
const result = await agent.act({
  steps: [{
    ref: entry.ref,
    action: "completeTask",
    args: ["bank"],
  }],
})
console.log(result.ok) // true

Completed the bank task, recorded as done by the agent; a second person signs it off.

Import from @booki-aui/react. For Booki's default styling, add import "@booki-aui/styles".