The Invoice Details page shows the full details of a single customer invoice and provides lifecycle actions. It is accessible at routeDocumentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
/fa/invoices/:id.
Overview
The page loads invoice data viauseInvoice(id, organizationId). Key sections:
- Header: Invoice number, status badge (
InvoiceStatusBadge), invoice date. Available action buttons depend on status:draft: Print PDF, Edit (links to/fa/invoices/:id/edit), Send Invoicesentorpartial: Print PDF, Void
- Invoice Details card: Bill-to customer name/number/address, invoice date, due date, linked site.
- Line Items card: DataTable of
fa_invoice_linesrows with Description, Account (account_number – name), Quantity, Unit Price, Amount. Subtotal, optional Tax, Total, and Balance Due summary. - GL Posting Indicator: Shown when a
journal_entry_idis present. - Payment History:
InvoicePaymentHistorycomponent. - Credit Memos Applied:
InvoiceCreditHistorycomponent. - Notes: Displayed if present on the record.
useInvoicePdf / generateInvoicePdf
Send mutation: useSendInvoice — confirmed via AlertDialog
Void mutation: useVoidInvoice — confirmed via AlertDialog
Who it’s for
No explicit permission gate on this route. The page uses the current organization context fromuseOrganization.
Before you start
- The invoice must exist and belong to your organization.
- To edit, the invoice must be in
draftstatus.
Steps
View invoice- Navigate to
/fa/invoicesand click an invoice row, or go directly to/fa/invoices/:id.
- Open a
draftinvoice. - Click Send Invoice.
- Confirm in the alert dialog. The invoice status changes to
sentand it can no longer be edited.
- Open a
sentorpartialinvoice. - Click Void.
- Confirm in the alert dialog.
- Click Print PDF. The page generates a PDF via
useInvoicePdfand triggers a browser download/print.
Key concepts
- Balance Due:
invoice.balance_due— the remaining unpaid amount after payments applied. - GL Posting: When
journal_entry_idis present, aGLPostingIndicatorshows the linked posted entry.
Related
Finance & Revenue
Finance & Revenue core overview.
Governance & parity
This page documents shipped product behavior. It is not medical, legal, or
billing advice. Verify against your organization’s policies and applicable
regulations before using it for clinical, compliance, or billing decisions.
Protected health information (PHI) shown in the product is governed by your
tenant’s access controls and is never exposed in this documentation.
Documentation sources
Documentation sources
- src/routes/fa.tsx
- src/cores/fa/pages/InvoiceDetailPage.tsx
- src/cores/fa/hooks/useInvoices.ts
- src/cores/fa/hooks/useInvoicePdf.ts
- src/cores/fa/components/InvoiceStatusBadge.tsx
- src/cores/fa/components/InvoicePaymentHistory.tsx
- src/cores/fa/components/InvoiceCreditHistory.tsx