Box modifications

This commit is contained in:
2016-10-18 11:10:01 -04:00
parent 3caf0bd766
commit fdc34c4ef7
109 changed files with 11033 additions and 2442 deletions
@@ -1,4 +1,8 @@
@model InventoryTraker.Web.Models.InventoryAddForm
@using InventoryTraker.Web.Helpers
@model InventoryTraker.Web.Models.InventoryAddForm
@{
var inventory = Html.Angular().ModelFor("vm.inventory");
}
<form novalidate
name="vm.form"
ng-submit="vm.form.$valid && vm.save()">
@@ -12,11 +16,22 @@
<error-list errors="vm.errorMessages"></error-list>
<inventory-info inventory="inventory"></inventory-info>
<label class="control-label">Box Id</label>
<p class="form-control-static">{{vm.inventory.id}}</p>
<label class="control-label">Program Name</label>
<p class="form-control-static">{{vm.inventory.programName}}<span ng-show="vm.inventory.programSubtype != null"> / {{vm.inventory.programSubtype}}</span></p>
@inventory.FormGroupFor(m => m.Description)
<label class="control-label">Currently in Inventory</label>
<p class="form-control-static">{{vm.isInInventory() ? "Yes" : "No"}}</p>
@inventory.FormGroupFor(m => m.ShredReadyDate)
<label class="control-label">Added Date</label>
<p class="form-control-static">{{vm.inventory.addedDate | date:'shortDate'}}</p>
@inventory.FormGroupFor(m => m.Memo)
<div class="modal-footer">
<button ng-click="vm.removeInventory()" class="btn btn-sm pull-left"><i class="fa fa-minus-circle"></i> Remove Inventory</button>
<button type="button" class="btn btn-sm pull-left" ng-click="vm.removeInventory()"><i class="fa fa-minus-circle"></i> Remove Inventory</button>
<button class="btn btn-success" ng-disabled="vm.form.$invalid || vm.form.$pristine">Save</button>
<button type="button" class="btn" ng-click="$parent.$dismiss()">Cancel</button>
<button type="button" class="btn" ng-click="vm.cancel()">Close</button>
</div>
<hr />
@@ -29,23 +44,16 @@
<th>Type</th>
<th>Memo</th>
<th>Transaction Date</th>
<th>Add Qty</th>
<th>Remove Qty</th>
<th>Qty</th>
<th>In Inventory</th>
<th></th>
</tr>
</thead>
<tbody ng-hide="vm.loadingTransactions">
<tr ng-repeat-start="transaction in vm.transactions | orderBy:['-transactionDate', 'currentQuantity']">
<td>
{{transaction.transactionType}}
<span ng-show="transaction.destination"><i class="fa fa-map-marker" title="{{transaction.destination}}"></i></span>
</td>
<td>{{transaction.transactionType}}</td>
<td>{{transaction.memo}}</td>
<td>{{transaction.transactionDate | date:'shortDate'}}</td>
<td>{{transaction.addedQuantity}}</td>
<td>{{transaction.removedQuantity}}</td>
<td>{{transaction.currentQuantity}}</td>
<td>{{transaction.currentQuantity > 0 ? "Yes" : "No"}}</td>
<td>
<a href="" ng-show="$first"
ng-click="vm.confirmDeleteTransaction = !vm.confirmDeleteTransaction">