public int GetCASign()
 {
     return
         ((APPaymentType.DrCr(DocType) == GL.DrCr.Debit ? 1 : -1) *
          (DrCr == GL.DrCr.Debit ? 1 : -1)
          * -1);
 }
        /// <summary>
        /// Returns an enumerable string array, which is included all
        /// possible original document types for voiding document.
        /// </summary>
        public static IEnumerable <string> PossibleOriginalDocumentTypes(this APRegister voidcheck)
        {
            switch (voidcheck.DocType)
            {
            case APDocType.VoidCheck:
            case APDocType.VoidRefund:
            case APDocType.VoidQuickCheck:
                return(APPaymentType.GetVoidedAPDocType(voidcheck.DocType));

            default:
                return(new[] { voidcheck.DocType });
            }
        }