InvoiceDetails

InvoiceDetails is a React component that displays a modal form with an information about the specified invoice and allows performing various actions with this invoice.

Demo

:arrow-right: View the demo

Usage

<InvoiceDetails
    id={"180d892f-bfcd-492e-80d8-b4353223c0d9"}
/>

Properties

id: string (required)

The UUID of the existing invoice you want to display.

onCancel: function

Callback. Triggered after canceling an invoice. Contains one string argument whose value is the invoice UUID.

onClose: function

Callback. Triggered when the modal form is closed.

onDelete: function

Callback. Triggered after deleting an invoice. Contains one string argument whose value is the invoice UUID.

onIssue: function

Callback. Triggered after issuing an invoice. Contains one string argument whose value is the invoice UUID.

onMarkAsUncollectible: function

Callback. Triggered after marking the invoice as uncollectible. Contains one string argument whose value is the invoice UUID.