How to override the Purchase Order Validations

@rohit_w the same logic needs to be applied for purchase receipt also - where PO is made in UOM 1, but received in a different UOM.
Please see the conversation at -