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.

Was this article helpful?
Thank you!