Remove inventory, delete transactions

This commit is contained in:
2016-09-14 07:53:41 -04:00
parent 9cdf90b1e9
commit 052f812d6f
33 changed files with 3250 additions and 142 deletions
@@ -0,0 +1,23 @@
using System;
using System.ComponentModel.DataAnnotations;
using InventoryTraker.Web.Core;
namespace InventoryTraker.Web.Models
{
public class InventoryRemoveForm
{
[Required]
public int InventoryId { get; set; }
[Required, Range(1, int.MaxValue, ErrorMessage = "Quantity must be greater than 0")]
public int Quantity { get; set; }
[Required]
public TransactionType TransactionType { get; set; }
[Required, Display(Name = "Removed Date")]
public DateTime RemovedDate { get; set; }
public string Memo { get; set; }
}
}