DevTreks.Extensions/NPVCalculators/OCs/OCCalculator.cs
/// <summary>
/// Some calculated prices need to be adjusted (i.e. fuel) based on the specific operation or component they are now part of
/// </summary>
Some calculated prices need to be adjusted  based on the specific operation or component they are now part of
Some calculated prices need to be adjusted based on the specific operation or component they are now part of
public bool SetNewAgMachineryCalculations(Machinery1Input machInput,
            bool hasMoreThanOneCapitalInput, bool hasMoreThanOnePowerInput, double lowestCapacity,
            int highestEquivPTO, int maxPTO)
        {
            bool bHasNewCalcs = false;
            if (machInput.CAPPrice != 0)
            {
                if (hasMoreThanOneCapitalInput == true
                    && hasMoreThanOnePowerInput == false)
                {
                    AdjustMachineryInputAmounts(machInput, lowestCapacity, highestEquivPTO, maxPTO);
                    bHasNewCalcs = true;
                }
                else
                {
                    if (hasMoreThanOneCapitalInput == false)
                    {
                        SetAmounts(machInput, machInput.OCAmount);
                        bHasNewCalcs = true;
                    }
                }
            }
            return bHasNewCalcs;
        }
public bool SetNewAgMachineryCalculations ( Machinery1Input machInput , bool hasMoreThanOneCapitalInput , bool hasMoreThanOnePowerInput , double lowestCapacity , int highestEquivPTO , int maxPTO ) { bool bHasNewCalcs = false ; if ( machInput . CAPPrice != 0 ) { if ( hasMoreThanOneCapitalInput == true && hasMoreThanOnePowerInput == false ) { AdjustMachineryInputAmounts ( machInput , lowestCapacity , highestEquivPTO , maxPTO ) ; bHasNewCalcs = true ; } else { if ( hasMoreThanOneCapitalInput == false ) { SetAmounts ( machInput , machInput . OCAmount ) ; bHasNewCalcs = true ; } } } return bHasNewCalcs ; }
Some calculated prices need to be adjusted (i.e.
Some calculated prices need to be adjusted ( i . e .
//aoh amount was not set in input calculator //set it now
machInput
Machinery1Input
hasMoreThanOneCapitalInput
bool
hasMoreThanOnePowerInput
bool
lowestCapacity
double
highestEquivPTO
int
maxPTO
int