Price recalculation after changing customer in invoice data entry

Our client caught one of their employees giving a bigger discount than the customer is allowed by creating the invoice using the CASH customer that has a bigger discount, then they changed the customer number after the invoice was entered and the lines were set with the customer discount pricing for the CASH customer. After changing the customer number over to the real customer, there is a prompt asking whether they want to re-calculate pricing and, of course, they answered 'No'. Is there a way to force the pricing recalculation for all users except for a select few? I'm thinking a script, but can't figure out how the pricing recalculation function is set up so that I can write the script for it. Is there only a flag that I need to pass the function prior to performing it, so that the prompt is defaulted to Yes and therefore bypassing the prompt all together?

Thanks in advance.