Add transaction type
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user