Error when changing customer on sales order

Order To Cash: Sales Order Version 9.81

Earlier, when trying to change the customer on a sales order (SO303000), you got an error message saying “Unable to cast object of type ‘BAccountR’ to type ‘PX.Objects.CR.BAccountR’.”
This has now been fixed.