コード例 #1
0
        private void CheckForSuspenseAccounts()
        {
            if (getSuspenseAccountInfo == null)
            {
                getSuspenseAccountInfo =
                    new GetSuspenseAccountInfo(FledgerInfo.LedgerNumber);
            }

            if (getSuspenseAccountInfo.RowCount != 0)
            {
                TLogging.LogAtLevel(1, String.Format("MonthEnd: {0} suspense accounts in use.", getSuspenseAccountInfo.RowCount));
                TVerificationResult tvr = new TVerificationResult(
                    Catalog.GetString("Suspense Accounts found"),
                    String.Format(
                        Catalog.GetString(
                            "Have you checked the details of suspense account {0}?"),
                        getSuspenseAccountInfo.ToString()),
                    "", TPeriodEndErrorAndStatusCodes.PEEC_07.ToString(), TResultSeverity.Resv_Status);
                FverificationResults.Add(tvr);
            }
            else
            {
                TLogging.LogAtLevel(1, "MonthEnd: No suspense accounts used.");
            }
        }