diff --git a/Apollo/assets/js/controllers/centerCtrl.js b/Apollo/assets/js/controllers/centerCtrl.js index 50616c38..8203f8c7 100755 --- a/Apollo/assets/js/controllers/centerCtrl.js +++ b/Apollo/assets/js/controllers/centerCtrl.js @@ -83,7 +83,8 @@ app.controller('centerCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab Address: myModel.Address, Comments:myModel.Comment, status: myModel.switchsetting, - createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID + createdBy: JSON.parse(localStorage.getItem('localObj')).localUserID, + branchCode:JSON.parse(localStorage.getItem('localObj')).localBranchID } }; $http(addCenter).then(function (response) { @@ -160,7 +161,8 @@ app.controller('centerCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab Comments:myModel.Comments, status: myModel.IsActive, CenterID:myModel.CenterID, - updateBy: JSON.parse(localStorage.getItem('localObj')).localUserID + updateBy: JSON.parse(localStorage.getItem('localObj')).localUserID, + branchCode:JSON.parse(localStorage.getItem('localObj')).localBranchID } }; $http(update).then(function (response) { @@ -196,7 +198,8 @@ app.controller('centerCtrl', ["$scope","$rootScope","toaster", "$filter", "ngTab 'Content-Type': 'application/json' }, data: { - requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID + requestedBy: JSON.parse(localStorage.getItem('localObj')).localUserID, + branchCode:JSON.parse(localStorage.getItem('localObj')).localBranchID } };