Skip to content
Docs menu

Finance in references, search and mentions

Finance documents, parties and sales invoices as workspace references. Mention them in notes, issues and chat, link them, find them in the search, and who can see them.

View .md

Finance items work like any other item in Petawork: mention one in a note, an issue or a chat, link it to other items, and find it with the search (⌘K or Ctrl+K). The reference is <kind>:<id>, written in a mention as @[Label](fin_document:<id>). Three kinds exist today.

Kind What it is Reads as Opens
fin_document A document in the Capture inbox fin_document:<id>, /finance/documents?doc=<id> Finance > Documents
fin_party A vendor, a customer or both fin_party:<id>, /finance/parties/view?id=<id> the party's page
fin_recon_case A reconciliation case fin_recon_case:<id>, /finance/recon/cases?id=<id> the case's page
fin_payment_run A payment run (payments) fin_payment_run:<id>, /finance/payments/run?id=<id> the run's page
fin_sales_invoice A sales invoice in Billing fin_sales_invoice:<id>, /finance/invoices?id=<id> Finance > Invoices

Later Finance modules add their own kinds with the module itself.

What a card shows

A reference card shows a title, a state and one line of context: a document's file name, status, type and page count; a party's name, status, kind and country; an invoice's number (or Draft invoice), status, customer, total and due date. It never shows a document's content, a party's tax id or contacts, or any bank account (not even the last four characters).

Who sees what

Finance's own rules decide, in every place a Finance item can appear:

  • The organisation has Finance, and the module that owns the kind is on (documents need Capture, invoices need Billing). With Finance off, a Finance mention stays plain text, a link to a Finance item is hidden and the search has no Finance group.
  • The member holds a Finance role that reads the kind: capture.read for documents (controller, AP clerk, AR clerk, auditor), parties.read for parties (most roles), billing.read for invoices (controller, AR clerk, auditor).
  • The item's entity is inside the member's entity scope. A document with no entity yet, and a shared party, are seen by anyone who holds the role anywhere.

Anyone else gets the answer an unknown id gets: no title, no hint that the item exists. A link whose far end the reader cannot see is not shown to them at all. Linking two items changes the workspace, not Finance, so it needs write access to the workspace and a key or grant that is not read-only.

Documents are found by file name, parties by name and issued invoices by number, in the Finance group of the search (prefix finance:, or Tab to the Finance scope), and by workspace_item_search over MCP. Search never reads document text, tax ids or bank details.

Deleting

Finance does not delete documents, parties or issued invoices in normal use (a rejected document is kept; only a draft invoice can be deleted). If a row is removed for good, the links that pointed at it go with it.