Sales Invoice ID Based On Sales Order ID
Sales Invoice ID Based On Sales Order ID
You can add naming series to a sales invoice using the script shown below, just like you would for a sales order. Although the number is identical to the Sales Order Name, the Sales Invoice includes the prefix M-.
As an illustration, if the sales order ID is SO-12345, the sales invoice ID will be set to M-12345.