﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Cash_Flow_Projection.Models
{
    public class RepeatingEntry
    {
        [DataType(DataType.Date)]
        public DateTime FirstDate { get; set; } = DateTime.Today;

        public String Description { get; set; }

        public Decimal Amount { get; set; }

        public int RepeatInterval { get; set; } = 1;

        public RepeatUnit Unit { get; set; } = RepeatUnit.Days;

        public int RepeatIterations { get; set; } = 10;

        public Account Account { get; set; } = Account.Cash;

        public enum RepeatUnit
        {
            Days,

            Weeks,

            Months
        }
    }
}
﻿using System;
using System.ComponentModel.DataAnnotations;

namespace Cash_Flow_Projection.Models
{
    public class RepeatingEntry
    {
        [DataType(DataType.Date)]
        public DateTime FirstDate { get; set; } = DateTime.Today;

        public String Description { get; set; }

        public Decimal Amount { get; set; }

        public int RepeatInterval { get; set; } = 1;

        public RepeatUnit Unit { get; set; } = RepeatUnit.Months;

        public int RepeatIterations { get; set; } = 12;

        public Account Account { get; set; } = Account.Cash;

        public enum RepeatUnit
        {
            Days,

            Weeks,

            Months
        }
    }
}
Change default to be once per month for a year
Change default to be once per month for a year
