/// <summary> /// Returns an enumerable string array, which is included all /// possible original document types for voiding document. /// </summary> public static IEnumerable <string> PossibleOriginalDocumentTypes(this ARRegister voidpayment) { switch (voidpayment.DocType) { case ARDocType.CashReturn: return(new[] { ARDocType.CashSale }); case ARDocType.VoidRefund: case ARDocType.VoidPayment: return(ARPaymentType.GetVoidedARDocType(voidpayment.DocType)); default: return(new[] { voidpayment.DocType }); } }
public int GetCASign() { return ((ARPaymentType.DrCr(DocType) == GL.DrCr.Debit ? 1 : -1) * (DrCr == GL.DrCr.Debit ? 1 : -1)); }