| Name Units per Case |
+ Name Units per Case Expiration Date |
Available Case Qty | Distribute Case Qty |
|---|---|---|---|
|
-
+ {{inventory.name}} + {{inventory.unitsPerCase}} / {{inventory.containerType}} + Exp: {{inventory.expirationDate | date:'shortDate'}} |
{{inventory.quantity}} |
-
+ '
},
+ { field: 'transactionType', name: 'Type', width: "10%" },
{ field: 'memo', cellTooltip: true },
- { field: 'transactionDate', name: 'Transaction Date', cellFilter: "date:MM/dd/yyyy", width: "15%" },
- { field: 'addedQuantity', name: 'Add Qty', width: "10%", enableSorting: false },
- { field: 'removedQuantity', name: 'Remove Qty', width: "10%", enableSorting: false },
+ { field: 'transactionDate', name: 'Transaction Date', cellFilter: "date:'shortDate'", width: "15%" },
+ { field: 'previousQuantity', name: 'Prev Qty', width: "10%", enableSorting: false },
+ { field: 'addedQuantity', name: 'Add Qty', width: "10%", enableSorting: false, cellFilter: "hideZero" },
+ { field: 'removedQuantity', name: 'Remove Qty', width: "10%", enableSorting: false, cellFilter: "hideZero" },
{ field: 'currentQuantity', name: 'Current Qty', width: "15%", enableSorting: false }
],
onRegisterApi: function(gridApi) {
diff --git a/InventoryTraker.Web/js/utility/HideZeroFilter.js b/InventoryTraker.Web/js/utility/HideZeroFilter.js
new file mode 100644
index 0000000..8ce30a4
--- /dev/null
+++ b/InventoryTraker.Web/js/utility/HideZeroFilter.js
@@ -0,0 +1,10 @@
+(function () {
+ window.app.filter('hideZero', hideZero);
+
+ function hideZero() {
+ return function (input) {
+
+ return input > 0 ? input : '';
+ }
+ }
+})();
\ No newline at end of file
|