https://frappeframework.com/docs/user/en/basics/doctypes/naming#priority-of-naming
what about naming by
Document Naming Settings
and for customer and employee there are aditional way to naming what its priority
like hr setting and selling setting
i could find the info in HR Settings and in Selling Settings