Initiate InventoyTypes from a xlxs
Arrival mostly working
This commit is contained in:
@@ -9,12 +9,13 @@ namespace InventoryTraker.Web.Models
|
||||
public class InventoryAddForm : IMapTo<Inventory>
|
||||
{
|
||||
[HiddenInput(DisplayValue = false)]
|
||||
public string InventoryTypeId { get; set; }
|
||||
[Required]
|
||||
public int InventoryTypeId { get; set; }
|
||||
|
||||
[Required]
|
||||
public DateTime ExpirationDate { get; set; }
|
||||
|
||||
[Required]
|
||||
[Required, Range(1, int.MaxValue, ErrorMessage = "Quantity must be greater than 0")]
|
||||
public int Quantity { get; set; }
|
||||
|
||||
[Required, Display(Name = "Arrival Date")]
|
||||
|
||||
Reference in New Issue
Block a user