ERPNext: Cancel sales invoice
erpnext_cancel_sales_invoiceERPNext: Cancels a submitted sales invoice and reverses its ledger entries. Moves a submitted Sales Invoice to cancelled (docstatus 2) and reverses its ledger effects. ERPNext's guide says to handle linked payments, returns and stock transactions first; the call returns ERPNext's error if something still links to the invoice. A cancelled invoice cannot be edited, so create a new draft to replace it. By default you confirm each call; you can switch that off for this tool. Reaches other people: confirm with the user before each call. Needs the user's Cotlet API key with access to this app.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | Sales Invoice ID from list_sales_invoices or create_sales_invoice. |