-
Credit Manager: {{selectedItem.first_name}}
+
Regional Credit Manager: {{selectedItem.first_name}}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component.ts
index a87eaa5..21f0eb3 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/pd-allocation/pd-allocation.component.ts
@@ -29,6 +29,9 @@ export class PdAllocationComponent implements OnInit {
@Inject(MAT_DIALOG_DATA) public data: any) {
console.log(data)
this.notifier=notifier;
+ if(this.data.lender_role_id == '25') {
+ this.pageTitle = "Allocation To Regional Credit Manager"
+ }
}
ngOnInit() {
@@ -47,7 +50,14 @@ export class PdAllocationComponent implements OnInit {
// pd officer list
getPDOfficerList(pdID:string){
- this._pd.getCMUsers(this.data.city_id).subscribe(
+ let user_type
+ if(this.data.lender_role_id == '25') {
+ user_type = "RCM"
+ }
+ else if(this.data.lender_role_id == '27') {
+ user_type = "CM"
+ }
+ this._pd.getCMUsers(this.data.city_id,user_type).subscribe(
data => {
if (data.status == 200) {
this.pdOfficerList= data.records
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.ts
index 35b6d39..f3bd825 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/start-pd.component.ts
@@ -116,9 +116,10 @@ export class StartPdComponent implements OnInit, OnDestroy {
// this.categoryFormButtons = Object.keys(data.records.template_forms).map((item)=>data.records.template_forms[item]).filter(item=>item.isAnswerable===true);
this.categoryFormButtons = data.records.template_details
// this.categoryFormButtons = this.categoryFormButtons.filter(item=>item.isAnswerable===true);
- this.actualQuestions = this.categoryFormButtons.length;
- let getAnsweredFormsCount = this.categoryFormButtons.filter(item=>item.is_answered==='1');
+ this.actualQuestions = this.categoryFormButtons.filter(item => item.complete_check_enabled == '1').length;
+ let getAnsweredFormsCount = this.categoryFormButtons.filter(item=>item.is_answered==='1' && item.complete_check_enabled == '1');
this.answeredQuestions = getAnsweredFormsCount.length;
+ console.log("ans",this.answeredQuestions,this.actualQuestions)
this.pdFullDetails = data.records;
// VENDOR FORM ANSWER FETCH STATUS START(SMART PD ONLY)
// if(this.pdMasterList.fk_pd_type == '2') {
@@ -172,7 +173,7 @@ export class StartPdComponent implements OnInit, OnDestroy {
checkType==1 ? this.router.navigate(['../../viewpd', this.pdMasterList.parent_pd_id], {relativeTo: this.route}) : this.loadTemplates(this.startPD,2,this.randomString);
}
if(checkType == 2){
- this.loadTemplates(this.startPD,2,this.randomString);
+ // this.loadTemplates(this.startPD,2,this.randomString);
}
});
}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html
index 40b11d4..e7d6cf7 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/view-pd/view-pd.component.html
@@ -21,7 +21,7 @@
videocam
Call
-
+
settings_backup_restore
- verified_user
- swap_vert
+ verified_user
+ swap_vert
question_answer