Overview

The Payables 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 have read 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

Payables component preview
Payables component preview

Usage

Bring in the Payables component into your application as shown:

React.js
1import { Payables } from "@monite/sdk-react";
2
3// This component must be rendered within the MoniteProvider wrapper
4const PayablesPage = () => {
5 return <Payables />;
6};

Props

PropTypeDescription
onSavedfunctionThis callback is triggered when the payable is saved.
onCanceledfunctionThis callback is triggered when the payable is canceled.
onSubmittedfunctionThis callback is triggered when the payable is submitted.
onRejectedfunctionThis callback is triggered when the payable is rejected.
onApprovedfunctionThis callback is triggered when the payable is approved.
onPayfunctionThis callback is triggered when the user presses the Pay button.