MonthlyInventory report
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<div ng-repeat="distribution in vm.distributionData">
|
||||
<h3>{{distribution.destination}}</h3>
|
||||
<h4>{{distribution.date | date:'shortDate'}}</h4>
|
||||
<table class="table">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-3">Name</th>
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
@using InventoryTraker.Web.Helpers
|
||||
@model InventoryTraker.Web.Models.DateRangeQuery
|
||||
@{
|
||||
var query = Html.Angular().ModelFor("vm.query");
|
||||
}
|
||||
<form novalidate
|
||||
name="vm.form"
|
||||
ng-submit="vm.form.$valid && vm.submit()">
|
||||
<fieldset ng-disabled="vm.submitting">
|
||||
<error-list errors="vm.errorMessages"></error-list>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
@query.FormGroupFor(m => m.StartDate)
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
@query.FormGroupFor(m => m.EndDate)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button class="btn btn-success pull-right">Submit</button>
|
||||
</fieldset>
|
||||
</form>
|
||||
@@ -0,0 +1,47 @@
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
@*<th></th>*@
|
||||
<th class="col-md-2">Name of Commodity</th>
|
||||
<th class="col-md-1">Pack Size / Units per Case</th>
|
||||
<th class="col-md-1">Beginning Inventory</th>
|
||||
<th class="col-md-1">Units Rec'd</th>
|
||||
<th class="col-md-1">Total Units Available</th>
|
||||
<th class="col-md-1">Adjustments (show + or -)</th>
|
||||
<th class="col-md-1">Units Distributed</th>
|
||||
<th class="col-md-1">Ending Inventory</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="item in vm.monthlyInventoryData.items | orderBy:'inventoryType.name'">
|
||||
@*<td><a href="" ng-click="vm.editInventory(item.inventory.id)"><i class="fa fa-edit"></i></a> </td>*@
|
||||
<td>{{item.inventoryType.name}}</td>
|
||||
<td>{{item.inventoryType.unitsPerCase}} / {{item.inventoryType.containerType}}</td>
|
||||
<td>
|
||||
{{item.beginningQuantity | toUnits:item.inventoryType.unitsPerCase}}
|
||||
{{item.beginningQuantity | formatCases}}
|
||||
</td>
|
||||
<td>
|
||||
{{item.addedQuantity | hideZero | toUnits:item.inventoryType.unitsPerCase}}
|
||||
{{item.addedQuantity | hideZero | formatCases}}
|
||||
</td>
|
||||
<td>
|
||||
{{item.totalAvailableQuantity | hideZero | toUnits:item.inventoryType.unitsPerCase}}
|
||||
{{item.totalAvailableQuantity | hideZero | formatCases}}
|
||||
</td>
|
||||
<td>
|
||||
{{item.adjustmentQuantity ? '-' : ''}}
|
||||
{{item.adjustmentQuantity | hideZero | toUnits:item.inventoryType.unitsPerCase}}
|
||||
{{item.adjustmentQuantity | hideZero | formatCases}}
|
||||
</td>
|
||||
<td>
|
||||
{{item.distributedQuantity | hideZero | toUnits:item.inventoryType.unitsPerCase}}
|
||||
{{item.distributedQuantity | hideZero | formatCases}}
|
||||
</td>
|
||||
<td>
|
||||
{{item.endingQuantity | toUnits:item.inventoryType.unitsPerCase}}
|
||||
{{item.endingQuantity | formatCases}}
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user