public virtual IEnumerable recreateLast(PXAdapter adapter)
        {
            ARStatementCycle row = ARStatementCycleRecord.Current;

            if (row.LastStmtDate != null)
            {
                PXLongOperation.StartOperation(this, delegate() { StatementCycleProcessBO.RegenerateLastStatement(new StatementCycleProcessBO(), row); });
            }
            return(adapter.Get());
        }
Exemple #2
0
        public virtual IEnumerable recreateLast(PXAdapter adapter)
        {
            ARStatementCycle row = ARStatementCycleRecord.Current;

            if (row != null)
            {
                if (ARStatementProcess.CheckForUnprocessedPPD(this, row.StatementCycleId, row.LastStmtDate, null))
                {
                    throw new PXSetPropertyException(Messages.UnprocessedPPDExists);
                }

                if (row.LastStmtDate != null)
                {
                    PXLongOperation.StartOperation(this, delegate() { StatementCycleProcessBO.RegenerateLastStatement(CreateInstance <StatementCycleProcessBO>(), row); });
                }
            }

            return(adapter.Get());
        }