Overview
ThePayables component is a comprehensive React component that renders the entire Payables page. The component integrates the functionalities of the PayablesDetails and PayablesTable components, providing a complete experience throughout the Payables workflow. This component provides the ability to create new payables via uploads and supports searching, filtering, and pagination between these payables.
Permissions
To access this component, the entity user must haveread permissions for the payable object. To create, edit, and delete payables, they must also have create, update, or delete permissions for the payable object. For more information, see List of permissions.
Preview

Usage
Bring in thePayables component into your application as shown:
React.js
Props
| Prop | Type | Description |
|---|---|---|
enableGLCodes | boolean | Enables GL code field in payable creation and editing. Defaults to false if not specified. |
onSaved | function | This callback is triggered when the payable is saved. |
onCanceled | function | This callback is triggered when the payable is canceled. |
onSubmitted | function | This callback is triggered when the payable is submitted. |
onRejected | function | This callback is triggered when the payable is rejected. |
onApproved | function | This callback is triggered when the payable is approved. |
onPay | function | This callback is triggered when the user presses the Pay button. |
Customize mandatory fields
You can set the fieldscounterpart_id, counterpart_bank_account_id, issued_at, and currency as mandatory, in addition to the required fields, for the payable creation. To do this, call PUT /payables/validations: