/// <summary>
        /// Retrieves the financial period with the same <see cref="FinPeriod.PeriodNbr"/>
        /// as the one specified, but residing in the previous financial year.
        /// If no such period exists, returns <c>null</c>.
        /// </summary>
        public string GetSamePeriodInPreviousYear(string financialPeriodID)
        {
            if (financialPeriodID == null)
            {
                return(null);
            }

            PXGraph graph = PXGraph.CreateInstance <FiscalPeriodMaint>();

            try
            {
                string resultingPeriodID = FinPeriodIDAttribute.GetSamePeriodInPreviousYear(
                    graph,
                    financialPeriodID);

                return(FinPeriodIDFormattingAttribute.FormatForDisplay(resultingPeriodID));
            }
            catch (PXFinPeriodException)
            {
                return(null);
            }
        }