Home OneHash CRM Customize Sales Invoice ID Based On Sales Order ID

Sales Invoice ID Based On Sales Order ID

By Frappe Content licensed CC-BY-SA 3.0 • Last updated on Jun 18, 2025

Sales Invoice ID Based On Sales Order ID

The script given below allows you to apply naming series to a Sales Invoice, same as that of the corresponding Sales Order. Sales Invoice uses a prefix M- but the number duplicates itself from the Sales Order Name.

Example: If Sales Order ID is SO-12345, then corresponding Sales Invoice ID will be set as M-12345.