public void Verify(PXCache cache, object item, List <object> pars, ref bool?result, ref object value) { string docType = cache.GetValue <TDocTypeField>(item) as string; string refNbr = cache.GetValue <TRefNbrField>(item) as string; value = result = Select(cache.Graph, APPaymentType.GetVoidingAPDocType(docType), docType, refNbr) != null; }
public static APRegister Select(PXGraph graph, APRegister payment) { if (payment == null || payment.RefNbr == null || payment.DocType == null) { return(null); } return(Select(graph, APPaymentType.GetVoidingAPDocType(payment.DocType), payment.DocType, payment.RefNbr)); }