Beispiel #1
0
        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;
        }
Beispiel #2
0
 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));
 }