Purchase order naming series based on Sales order naming series

The Manufacturing organization I am working with is migrating to ERPNext.
From what I see, ERPNext has a different way to manage naming series.
In their business process, there are no grouped purchase orders coming from material requests and other documents are based on the sales order number.

Example:
Sales Order -> PI19-193

Purchase order 1 -> PO19-193A
Purchase order 2 -> PO19-193B

Purchase order n -> PO19-193Z

There is a way to setup ERPNext working in this way without customizing source code?

You can try to achieve this using custom script