Remove inventory, delete transactions
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user