By default the Supplier on a Purchase Order/Invoice is fetched from the supplier_name field I believe.
In my usecase there is an additional supplier_code field in the supplier DocType which is much more commonly known to employees then the actual name.
So what I would like to achieve is that you can find a Supplier on a Purchase Invoice also by typing part of the “Supplier Code” in the “Supplier” field.
i.e.
Supplier name = United Fruit Co. Ltd.
Supplier Code = UF2022
so I should find the Supplier by either typing "United Fruit ..." or "UF20 ..." in the “Supplier” filed on a Purchase Invoice.
That came to my mind as well especially as the supplier_group is visible when you get the list of recommendations when you type in anything on the Supplier field.
However it apparently does not support to be used as a search term. For example if you type "Other" as a search term (with an existing supplier_group named` “Other”) you would not be recommended with all Suppliers within that group.