Exemplo n.º 1
0
        private Income SaveIncomeForNextPayment(IncomePayment incomePayment)
        {
            Income income = incomePayment.Income.Populate(user);

            if (income.Date == incomePayment.Date)
            {
                income.Date = income.GetNextDate(incomePayment.Date);
            }
            else if (income.SecondDate == incomePayment.Date)
            {
                income.SecondDate = income.GetNextSecondDate(incomePayment.Date);
            }

            return(income);
        }