Hi,
I am trying to extract the value from Invoice as it shown at screen

But I need to take into account Reference Nbr of invoice from “Documents To Apply Tab”

So, I am going throw rows in Payment event which is called when user saves the Payment
foreach (PXResult<AR.ARAdjust, AR.ARInvoice, PX.Objects.AR.Standalone.ARRegisterAlias, ARTran> gridRow in Base.Adjustments.Select())
{
AR.ARAdjust _ARAdjust = gridRow;
AR.ARInvoice _ARInvoice = gridRow;
}
But how to call necessary Invoice from this place ?