Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var ConfirmationModule = angular.module('ConfirmationModule', []);
- ConfirmationModule.factory('ConfirmationService', function($rootScope){
- var sharedService = {};
- sharedService.sourceWarehouse = 0;
- sharedService.destinyWarehouse = 0;
- sharedService.productList = [];
- /**
- * Send data from ProductPick Model to Confirmation Model
- *
- * @method sendProductList
- * @param sourceWarehouse {Integer}
- * source warehouse ID
- * @param destinyWarehouse {Integer}
- * destiny warehouse ID
- * @param productList {Array Object}
- * product info and amounts
- */
- sharedService.sendProductList = function(sourceWarehouse, destinyWarehouse, productList){
- this.sourceWarehouse = sourceWarehouse;
- this.destinyWarehouse = destinyWarehouse;
- this.productList = productList;
- $rootScope.$broadcast('sendProductList');
- }
- return sharedService;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement