Rename Monthly Inventory to Movement

This commit is contained in:
2016-09-20 09:31:56 -04:00
parent 916c1f0f59
commit 4f561dac11
14 changed files with 79 additions and 56 deletions
@@ -0,0 +1,29 @@
(function() {
'use strict';
window.app.directive('movementReport', movementReport);
function movementReport() {
return {
scope: { movementData: "=" },
templateUrl: '/report/template/movementReport.tmpl.cshtml',
controller: controller,
controllerAs: 'vm'
}
}
controller.$inject = ['$scope', '$uibModal', 'inventorySvc'];
function controller($scope, $uibModal, inventorySvc) {
var vm = this;
vm.movementData = $scope.movementData;
vm.editInventory = function (inventoryId) {
inventorySvc.find(inventoryId)
.success(function (inventory) {
$uibModal.open({
template: '<edit-inventory inventory="inventory" />',
scope: angular.extend($scope.$new(true), { inventory: inventory })
});
});
}
}
})();