Stop currency conversion on Purchase Orders from Line Item

ben_tes
Kilo Contributor

The purchase order proc_po takes the Total Cost from the purchase order line items proc_po_item

We're set to GBP which is fine until I create a line item that is in USD. The line item shows as USD but the po converts it to local currency. How do I get this to just show the current / amount from proc_po_item ?

1 ACCEPTED SOLUTION

Hello Ben,



New idea, include the u_total_cost field in the form. Hide it with a UI policy. Create an onChange client script on the cost field:



function onChange(control, oldValue, newValue, isLoading, isTemplate) {


    if (isLoading || newValue == '') {


          return;


    }


   


    g_form.setValue('u_total_cost', newValue );


   


}



The business rule will not be needed.



Thank you!


View solution in original post

5 REPLIES 5

function onChange(control, oldValue, newValue, isLoading, isTemplate) {


  if (isLoading || newValue == '') {


          return;


  }



  g_form.setValue('u_total_cost', newValue );



}





Just a thanks again - finally had a chance to do this and it worked.