a5fcb46e04
Transaction updates
29 lines
975 B
Plaintext
29 lines
975 B
Plaintext
@using InventoryTraker.Web.Helpers
|
|
@using InventoryTraker.Web.Models
|
|
@model dynamic
|
|
|
|
@{
|
|
ViewBag.Title = "Inventory";
|
|
}
|
|
|
|
<div ng-controller="InventoryListController as vm">
|
|
<h1 class="page-header">
|
|
Transactions
|
|
</h1>
|
|
<div class="pull-right">
|
|
@*<a class="btn btn-default" href="" ng-click="vm.add()"><i class="fa fa-plus-circle"></i> Arrival</a>
|
|
<a class="btn btn-default" href="" ng-click="vm.distribute()"><i class="fa fa-share-square"></i> Distribute</a>*@
|
|
</div>
|
|
|
|
@(Html.Angular().GridFor<TransactionController>(c => c.All())
|
|
.Title("Transactions")
|
|
.Columns<TransactionViewModel>(config =>
|
|
{
|
|
config.Add(x => x.Name);
|
|
config.Add(x => x.Memo);
|
|
config.Add(x => x.TransactionDate, "Transaction Date", "date: 'MM/dd/yyyy'");
|
|
config.Add(x => x.AddedQuantity, "Add Qty");
|
|
config.Add(x => x.RemovedQuantity, "Remove Qty");
|
|
config.Add(x => x.CurrentQuantity);
|
|
}))
|
|
</div> |