How do I prevent people from changing the part class on a part if it hold stock? I believe that if a part holds stock and then the part class is changed, the inventory holding account would no longer balance to the underlying parts; causing headaches during inventory tie out.
that is correct. Same thing would happen if the GL Control used by that Class is changed.
A BPM would have to check the QOH (in table PartBin) and raise an exception when not zero.
Might want to see if any I received PO lines exist. I think the TranGLC record (which holds the GL Acct to use when the receipt is eventually processed) is set when the PO is released.