Vehicle cost report
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using MileageTraker.Web.Attributes;
|
||||
|
||||
namespace MileageTraker.Web.ViewModels.Vehicle
|
||||
{
|
||||
public class VehicleCostItem
|
||||
{
|
||||
public string VehicleId { get; set; }
|
||||
|
||||
public string TagNumber { get; set; }
|
||||
|
||||
public string CostType { get; set; }
|
||||
|
||||
[Currency]
|
||||
public decimal TotalPrice { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using MileageTraker.Web.Attributes;
|
||||
|
||||
namespace MileageTraker.Web.ViewModels.Vehicle
|
||||
{
|
||||
public class VehicleCostReport
|
||||
{
|
||||
public int FiscalYear { get; set; }
|
||||
|
||||
public IList<VehicleCostItem> CostItems { get; set; }
|
||||
|
||||
[Currency]
|
||||
public decimal TotalPrice { get { return CostItems.Sum(i => i.TotalPrice); } }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user