A cash upgrade does not get added to the fare. But if crediting to UA, you will get PQPs for the upgrade as a separate posting (but no RDMs)
As far as crediting to another program, UA will probably (not always) report only the originally purchased fare. Not the displayed post upgrade fare code,