Distribution report
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class DateRangeQuery
|
||||
{
|
||||
public DateTime StartDate { get; set; }
|
||||
|
||||
public DateTime EndDate { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
|
||||
namespace InventoryTraker.Web.Models
|
||||
{
|
||||
public class DistributionReport
|
||||
{
|
||||
public TransactionViewModel[] Transactions;
|
||||
|
||||
public string Destination { get; set; }
|
||||
|
||||
public DateTime Date { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,7 @@ namespace InventoryTraker.Web.Models
|
||||
public string ContainerType { get; set; }
|
||||
public DateTime ExpirationDate { get; set; }
|
||||
public DateTime AddedDate { get; set; }
|
||||
public double WeightPerCase { get; set; }
|
||||
|
||||
public string TransactionType { get; set; }
|
||||
|
||||
@@ -32,6 +33,8 @@ namespace InventoryTraker.Web.Models
|
||||
|
||||
public string Memo { get; set; }
|
||||
|
||||
public string Destination { get; set; }
|
||||
|
||||
public DateTime Timestamp { get; set; }
|
||||
|
||||
public void CreateMappings(IMapperConfiguration configuration)
|
||||
@@ -49,6 +52,8 @@ namespace InventoryTraker.Web.Models
|
||||
opt => opt.MapFrom(s => s.Inventory.InventoryType.UnitsPerCase))
|
||||
.ForMember(d => d.ContainerType,
|
||||
opt => opt.MapFrom(s => s.Inventory.InventoryType.ContainerType))
|
||||
.ForMember(d => d.WeightPerCase,
|
||||
opt => opt.MapFrom(s => s.Inventory.InventoryType.WeightPerCase))
|
||||
.ForMember(d => d.TransactionType,
|
||||
opt => opt.MapFrom(s => s.TransactionType.ToString()))
|
||||
.ForMember(d => d.PreviousQuantity,
|
||||
|
||||
Reference in New Issue
Block a user