Customer Payment Details displays all information for a single AR customer payment identified byDocumentation Index
Fetch the complete documentation index at: https://docs.encoreos.io/llms.txt
Use this file to discover all available pages before exploring further.
:id, including its application to invoices, with actions to apply, remove applications, generate a receipt PDF, and delete. Route: /fa/customer-payments/:id
Overview
The page loads the payment viauseCustomerPayment(id, organizationId). Applications are loaded via useARPaymentApplications. Breadcrumb shows payment_number. Payment metadata includes: payment_date, payment_amount, payment_method (underscores replaced with spaces), check_number, and reference_number. The applications table (ARPaymentApplicationWithDetails[]) shows invoice linkages. Actions: Apply to invoice (PaymentApplicationDialog), remove an application (useRemoveARPaymentApplication, with confirmation), generate receipt PDF (usePaymentReceiptPdf), and delete the payment (useDeleteCustomerPayment, with confirmation). The PDF receipt includes vendor/customer name, payment number, date, amount, method, reference, and applied invoice numbers.
Note: /fa/customer-payments redirects to /fa/receivables?tab=payments.
Who it’s for
No explicit permission gate on the detail route.Before you start
- A customer payment record must exist.
- Invoices must exist to apply this payment.
Steps
Navigate to the payment
Go to
/fa/customer-payments/:id or click a payment from the Customer Payments list.Review applications
The applications section shows which invoices this payment has been applied to and the amounts.
Remove an application (if needed)
Click remove on an application row. Confirm in the dialog to call
useRemoveARPaymentApplication.Generate receipt PDF (optional)
Click the receipt download button to generate and download a PDF via
usePaymentReceiptPdf.Key concepts
useCustomerPayment— Primary data hook; fetches a single payment byidandorganizationId.useARPaymentApplications— Hook fetching invoice application records for this payment.ARPaymentApplicationWithDetails— Type for application rows including linked invoice data.usePaymentReceiptPdf— Hook that generates a receipt PDF from payment and application data.PaymentApplicationDialog— Component for applying the payment to an invoice.
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/CustomerPaymentDetailPage.tsx
- src/cores/fa/hooks/useCustomerPayments.ts
- src/cores/fa/hooks/useARPaymentApplications.ts
- src/cores/fa/hooks/usePaymentReceiptPdf.ts
- src/cores/fa/components/PaymentApplicationDialog.tsx
- src/cores/fa/components/PaymentStatusBadge.tsx