mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 13:51:55 +00:00
Select staff only from the branch office
This commit is contained in:
parent
536c63ddca
commit
86130bcfe3
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user