Bulk transactions
Convert many orders, notes or invoices into their next document in one call, with a daily log and retry.
A bulk transaction makes the next document for many records at once, for example a Sales Invoice for each of 40 Sales Orders. Each record converts in its own background job, with the same mapping as the Create menu.
Pairs ERP converts
| From | To |
|---|---|
| Quotation | Sales Order |
| Sales Order | Sales Invoice, Delivery Note |
| Delivery Note | Sales Invoice, Packing Slip |
| Sales Invoice | Payment Entry |
| Supplier Quotation | Purchase Order |
| Purchase Order | Purchase Invoice, Purchase Receipt |
| Purchase Receipt | Purchase Invoice |
| Purchase Invoice | Payment Entry |
Any other pair is refused.
Run one
The desk list view has no bulk action yet. Call the RPC with the source RecType, the target and the names:
curl -X POST https://erp.acme.com/api/rpc/erp.bulk_transaction.transaction_processing \
-H "Authorization: token $KEY:$SECRET" -H 'Content-Type: application/json' \
-d '{"from_doctype": "Sales Order", "to_doctype": "Sales Invoice",
"data": ["SAL-ORD-2026-00031", "SAL-ORD-2026-00032"]}'ERP checks the pair and that you can read every record. Records On Hold or Closed are skipped. The answer lists the names queued and those skipped.
One job per record makes the target as you and inserts it. A record that fails rolls back alone; the others go on.
Each attempt writes a Bulk Transaction Log Detail: the source, the date and time, Success or Failed, and the error.
The new documents are saved as drafts. Every check runs on them, so a record that fails a check is logged Failed.
The log
Setup > Data > Bulk Transaction Log has one record per day, named by the date, with the counts of its details.
An hourly job retries the day's Failed details, each once. A System Manager can also queue the retry with erp.bulk_transaction.retry, passing a date or leaving it for today. A detail that was already retried is not converted again, even if two retries run at once.