I am new to Acumatica customization and have a Graph extension of the Sales order screen. I want to be able to read the latest currency rate when i click a custom action button.
public class SOOrderEntry_Extension : PXGraphExtension<PX.Objects.SO.SOOrderEntry>
{
public PXAction<SOOrder> addItems;
[PXButton(CommitChanges = true)]
[PXUIField(DisplayName = "Add License Items", Enabled = true)]
protected virtual IEnumerable AddItems(PXAdapter adapter)
{
var rowCount = Base.Transactions.Select().Count;
var curInfoID = Base.Document.Current.CuryInfoID;
var curRate = ????
I want to create a variable of currency rate everytime the document currency is change