Пример #1
0
        public void Verify(PXCache cache, object item, List <object> pars, ref bool?result, ref object value)
        {
            string docType = cache.GetValue(item, GetFieldName <TDocTypeField>()) as string;
            string refNbr  = cache.GetValue(item, GetFieldName <TRefNbrField>()) as string;

            value = result = Select(cache.Graph, ARPaymentType.GetVoidingARDocType(docType), docType, refNbr) != null;
        }
Пример #2
0
 public static ARRegister Select(PXGraph graph, ARRegister payment)
 {
     if (payment == null || payment.RefNbr == null || payment.DocType == null)
     {
         return(null);
     }
     return(Select(graph, ARPaymentType.GetVoidingARDocType(payment.DocType), payment.DocType, payment.RefNbr));
 }