Distribution report
This commit is contained in:
@@ -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