DevTreks.Extensions/NPVCalculators/BIs/BICalculator.cs
/// <summary>
/// Purpose:   remove ann equiv nodes after the sum of their discounted cash flows equals their starting principal
///				keeps the totals and annuals columns in synch
///	Output is a collection of annuities that still get added to subsequent time periods
/// </summary>
remove ann equiv nodes after the sum of their discounted cash flows equals their starting principal
keeps the totals and annuals columns in synch
Output is a collection of annuities that still get added to subsequent time periods
remove ann equiv nodes after the sum of their discounted cash flows equals their starting principal keeps the totals and annuals columns in synch Output is a collection of annuities that still get added to subsequent time periods
public void RemoveAEsFromXMLAnnEquiv(CalculatorParameters calcParameters,
            string subApplicationType, List<int> removeUsedUpAnnEquivIds)
        {
            if (calcParameters.ParentBudgetInvestment.AnnEquivalents != null)
            {
                foreach (int OpCompId in removeUsedUpAnnEquivIds)
                {
                    OperationComponent removeOpComp
                        = calcParameters.ParentBudgetInvestment.AnnEquivalents.FirstOrDefault(
                            c => c.Id == OpCompId);
                    if (removeOpComp != null)
                    {
                        calcParameters.ParentBudgetInvestment.AnnEquivalents.Remove(removeOpComp);
                    }
                }
            }
        }
public void RemoveAEsFromXMLAnnEquiv ( CalculatorParameters calcParameters , string subApplicationType , List < int > removeUsedUpAnnEquivIds ) { if ( calcParameters . ParentBudgetInvestment . AnnEquivalents != null ) { foreach ( int OpCompId in removeUsedUpAnnEquivIds ) { OperationComponent removeOpComp = calcParameters . ParentBudgetInvestment . AnnEquivalents . FirstOrDefault ( c => c . Id == OpCompId ) ; if ( removeOpComp != null ) { calcParameters . ParentBudgetInvestment . AnnEquivalents . Remove ( removeOpComp ) ; } } } }
Purpose:   remove ann equiv nodes after the sum of their discounted cash flows equals their starting principal
keeps the totals and annuals columns in synch
Output is a collection of annuities that still get added to subsequent time periods
Purpose : remove ann equiv nodes after the sum of their discounted cash flows equals their starting principal keeps the totals and annuals columns in synch Output is a collection of annuities that still get added to subsequent time periods
//remove any annuities that have been fully discounted in the cash flows
calcParameters
CalculatorParameters
subApplicationType
string
removeUsedUpAnnEquivIds
List<int>