Add transaction type

This commit is contained in:
2016-08-31 12:08:22 -04:00
parent c86d7fb1ed
commit f5e438e994
8 changed files with 95 additions and 38 deletions
@@ -55,6 +55,7 @@ namespace InventoryTraker.Web.Controllers
{
new Transaction
{
TransactionType = TransactionType.Added,
AddedQuantity = inventory.Quantity,
CurrentQuantity = inventory.Quantity,
Memo = "Arrival",
@@ -88,6 +89,7 @@ namespace InventoryTraker.Web.Controllers
inventory.Transactions.Add(new Transaction
{
TransactionType = TransactionType.Distributed,
RemovedQuantity = quantityForm.Quantity,
CurrentQuantity = inventory.Quantity,
Memo = "Distributed to " + form.Destination,