Export Monthly Inventory

This commit is contained in:
2016-09-21 11:55:06 -04:00
parent 4f561dac11
commit 206a3f2def
17 changed files with 525 additions and 23 deletions
@@ -3,10 +3,14 @@
window.app.controller('MovementReportController', MovementReportController);
MovementReportController.$inject = ['$scope', 'reportSvc'];
function MovementReportController($scope, reportSvc) {
MovementReportController.$inject = ['$scope', 'reportSvc', 'downloadSvc'];
function MovementReportController($scope, reportSvc, downloadSvc) {
var vm = this;
vm.loadData = reportSvc.loadMovementData;
vm.movementData = reportSvc.movementData;
vm.export = function(month) {
reportSvc.exportMovementData({month: month})
.success(downloadSvc.success);
}
}
})();