I'm adding a C/C surcharge function to my Stripe plugin.
I'm adding a setting for Stocked vs. Non-stocked for the surcharge item.
And another setting for the part number. (And probably another for the description.)
If they choose "stocked", I'd like the part number field to be a lookup. If they choose "non-stocked", then it should be a plain text field. In either case, I plan to store the part number (not the inventory ID).
And it should always work like the PartNo field in sales order maintenance, where you can type a part number and it will validate it when you {tab} away.
I'm figuring that I'm best to make the field a text rather than lookup field, and then if necessary, replace the editor in the FormatCell function of SystemSettings class in my plugin.
Any pointers ?