Payment amount and total amount are incorrectly displaying the local currency value under USD currencyDescriptionUser sets a payment amount using a local currency (NOK for example), while clicking on 'Adjust' on the Contract. Payment amount gets saved on the XML.When we (re)open the record in form view, it defaults to USD, but shows the amount that originally belonged to NOK.This behaviour applies to both payment_amount and total_cost fields. The issue is caused by the client "Update tax and total cost currency" that has an issue when the currency field is marked as read-only. In such cases, the payment_amount is returned as an empty string (''), which causes it to default to the currency USD.Steps to Reproduce 1) Open a contract from ast_contract table and click on 'Adjust'2) Enter a new payment amount and currency such. For example, NOK 966.003) Search and view the same Contract on List view4) Notice that payment amount/ total amount are both reflected (on clicking Toggle currencies):kr (NOK)966.00[$ (USD)96.76695) Open the record in form view6) Notice that the payment amount is USD 966WorkaroundTo avoid incorrect currency code fetching in the ast_contract form, follow below procedure:Replace this incorrect line in the onLoad client script on contract table (sys_script_client_ba8b9c5b53e942109262ddeeff7b12e0.xml):var currencyCode = g_form.getValue('payment_amount.currency_type');Use this corrected line instead:var currencyCode = g_form.getValue('payment_amount').split(';')[0]; This will correctly extract the currency code from the payment_amount field and ensure expected currency settings for total_tax and total_cost. Related Problem: PRB1913448