Distribution report

This commit is contained in:
2016-09-16 10:34:14 -04:00
parent 521ceda710
commit 3bdd202e81
34 changed files with 579 additions and 136 deletions
@@ -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,