mirror of
https://github.com/hargata/lubelog.git
synced 2025-12-10 00:46:08 -06:00
36 lines
1.5 KiB
C#
36 lines
1.5 KiB
C#
namespace CarCareTracker.Models
|
|
{
|
|
public class TaxRecordInput
|
|
{
|
|
public int Id { get; set; }
|
|
public int VehicleId { get; set; }
|
|
public List<int> ReminderRecordId { get; set; } = new List<int>();
|
|
public string Date { get; set; } = DateTime.Now.ToShortDateString();
|
|
public string Description { get; set; }
|
|
public decimal Cost { get; set; }
|
|
public string Notes { get; set; }
|
|
public bool IsRecurring { get; set; } = false;
|
|
public ReminderMonthInterval RecurringInterval { get; set; } = ReminderMonthInterval.ThreeMonths;
|
|
public int CustomMonthInterval { get; set; } = 0;
|
|
public ReminderIntervalUnit CustomMonthIntervalUnit { get; set; } = ReminderIntervalUnit.Months;
|
|
public List<UploadedFiles> Files { get; set; } = new List<UploadedFiles>();
|
|
public List<string> Tags { get; set; } = new List<string>();
|
|
public List<ExtraField> ExtraFields { get; set; } = new List<ExtraField>();
|
|
public TaxRecord ToTaxRecord() { return new TaxRecord {
|
|
Id = Id,
|
|
VehicleId = VehicleId,
|
|
Date = DateTime.Parse(Date),
|
|
Cost = Cost,
|
|
Description = Description,
|
|
Notes = Notes,
|
|
IsRecurring = IsRecurring,
|
|
RecurringInterval = RecurringInterval,
|
|
CustomMonthInterval = CustomMonthInterval,
|
|
CustomMonthIntervalUnit = CustomMonthIntervalUnit,
|
|
Files = Files,
|
|
Tags = Tags,
|
|
ExtraFields = ExtraFields
|
|
}; }
|
|
}
|
|
}
|