private void CheckForUnpostedGiftBatches() { TAccountPeriodInfo getAccountingPeriodInfo = new TAccountPeriodInfo(FledgerInfo.LedgerNumber, FledgerInfo.CurrentPeriod); GetUnpostedGiftInfo getUnpostedGiftInfo = new GetUnpostedGiftInfo( FledgerInfo.LedgerNumber, getAccountingPeriodInfo.PeriodEndDate); if (getUnpostedGiftInfo.HasRows) { TVerificationResult tvr = new TVerificationResult( Catalog.GetString("Unposted Gift Batches found"), String.Format( "Please post or cancel the gift batches {0} first!", getUnpostedGiftInfo.ToString()), "", TPeriodEndErrorAndStatusCodes.PEEC_08.ToString(), TResultSeverity.Resv_Critical); FverificationResults.Add(tvr); FHasCriticalErrors = true; } }