Edit Expense Report allows users to update an existing expense report’s header information and manage individual expense line items. Route:Documentation 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/expenses/:id/edit.
Overview
The Edit Expense Report page is accessible at/fa/expenses/:id/edit and requires permission fa.expenses.edit. The component (ExpenseReportEditPage) fetches the report via useExpenseReport and its lines via useExpenseLinesByReport. It renders ExpenseReportForm for header fields (report_name, description, start_date, end_date, site_id, default_gl_account_id) and manages expense lines through useCreateExpenseLine, useUpdateExpenseLine, and useSoftDeleteExpenseLine. On success, the component calls useSubmitExpenseReport if the report is ready for submission. Account options come from useAccounts; fund options from useFunds; site options from useSiteList.
Who it’s for
Requires permissionfa.expenses.edit.
Before you start
- You must have
fa.expenses.editpermission. - The expense report must be in an editable status.
Steps
- Open the expense report at
/fa/expenses/:idand click Edit. - Update header fields (report name, date range, site, default GL account) in
ExpenseReportForm. - Add, update, or remove individual expense lines using the line item editor.
- Save changes via the form submit action.
- On success, the page navigates back to the expense report detail.
Key concepts
| Concept | Description |
|---|---|
ExpenseReportForm | Shared form component for expense report header fields |
useExpenseLinesByReport | Hook fetching expense lines for the report |
useSoftDeleteExpenseLine | Soft-deletes a line item without permanent removal |
default_gl_account_id | Optional default GL account applied to new lines |
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/ExpenseReportEditPage.tsx