Select staff only from the branch office

This commit is contained in:
goutham-M 2014-05-30 15:50:03 +05:30
parent 536c63ddca
commit 86130bcfe3
3 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@
scope.breadcrumbName = 'label.anchor.assignstaff';
scope.labelName = 'label.input.staff';
scope.staffField = true;
resourceFactory.clientResource.get({clientId: routeParams.id, template: 'true'}, function (data) {
resourceFactory.clientResource.get({clientId: routeParams.id, template: 'true',staffInSelectedOfficeOnly:true}, function (data) {
if (data.staffOptions) {
scope.staffOptions = data.staffOptions;
scope.formData.staffId = scope.staffOptions[0].id;

View File

@ -4,7 +4,7 @@
scope.group = [];
scope.staff = [];
scope.formData = {};
resourceFactory.assignStaffResource.get({groupOrCenter: routeParams.entityType, groupOrCenterId: routeParams.id, template: 'true'}, function (data) {
resourceFactory.assignStaffResource.get({groupOrCenter: routeParams.entityType, groupOrCenterId: routeParams.id, template: 'true',staffInSelectedOfficeOnly:true}, function (data) {
scope.group = data;
scope.staffs = data.staffOptions;
scope.formData.staffId = data.staffOptions[0].id;

View File

@ -7,7 +7,7 @@
scope.loanId = routeParams.id;
var fields = "id,loanOfficerId,loanOfficerOptions";
resourceFactory.loanResource.get({loanId: scope.loanId, template: true, fields: fields}, function (data) {
resourceFactory.loanResource.get({loanId: scope.loanId, template: true, fields: fields, staffInSelectedOfficeOnly:true}, function (data) {
if (data.loanOfficerOptions) {
scope.loanOfficers = data.loanOfficerOptions;
scope.formData.toLoanOfficerId = data.loanOfficerOptions[0].id;