diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html
index a318ff1b6..1e1b622f6 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.html
@@ -131,7 +131,7 @@
-
+
@@ -209,7 +209,7 @@
-
+
Enter Valid Mobile Number.
@@ -252,7 +252,7 @@
-->
-
+
Enter Valid Mobile Number.
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts
index 679d7d3a7..7bd0368f0 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/add-pd/add-pd.component.ts
@@ -89,8 +89,8 @@ export class AddPdComponent implements OnInit, OnDestroy {
fk_customer_segment: [null],
loan_amount: [null, Validators.compose([Validators.pattern('^[0-9]*$')])],
applicant_title_name: [''],
- applicant_name: [null],
- mobile_no: [null, Validators.compose([Validators.minLength(10), Validators.maxLength(10)])],
+ applicant_name: [null,Validators.compose([Validators.required])],
+ mobile_no: [null, Validators.compose([Validators.minLength(10), Validators.maxLength(10),Validators.required])],
// landline : [null,Validators.compose([Validators.minLength(12),Validators.maxLength(13)])],
// email: [null],
applicant_stdcode: [null, Validators.compose([Validators.minLength(3), Validators.maxLength(5), Validators.pattern('^[0-9]*$')])],
@@ -251,7 +251,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
label: ['Applicant'],
applicant_title_name:[null],
coapplicant_name: [null, Validators.compose([Validators.required])],
- coapplicant_mobile_no: [null,Validators.compose([Validators.minLength(10),Validators.maxLength(10),Validators.required])],
+ coapplicant_mobile_no: [null,Validators.compose([Validators.minLength(10),Validators.maxLength(10)])],
coapplicant_stdcode:[null, Validators.compose([Validators.minLength(3), Validators.maxLength(5), Validators.pattern('^[0-9]*$')])],
coapplicant_landline : [null,Validators.compose([Validators.minLength(12),Validators.maxLength(13)])],
company_name:[null],
@@ -268,7 +268,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
get pdAddresses() { return this._PDtriggerForm.get('addresses') as FormArray; }
createAddresses(): FormGroup {
return this._fb.group({
- addressline: [null],
+ addressline1: [null],
fk_city: [null],
fk_state: [null],
pincode: [null],/** ,Validators.compose([Validators.minLength(6),Validators.maxLength(6)]) */
@@ -327,8 +327,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
this.lengthCheckToaddMore = 1;
}
}
- getPincode(e,i){ this.pincodeflag[i] = e == 1 ? true : false;
- }
+ getPincode(e,i){ this.pincodeflag[i] = e == 1 ? true : false;}
// save pd in draft
saveDraftPD(formValue: any, status: string) {
//alert('Inside The Draft PD');
@@ -478,7 +477,7 @@ export class AddPdComponent implements OnInit, OnDestroy {
"fk_pd_type": formValue.fk_pd_type,
"fk_customer_segment": formValue.fk_customer_segment,
"loan_amount": formValue.loan_amount,
- "addressline1": formValue.addresses[0].addressline.toUpperCase(),
+ "addressline1": formValue.addresses[0].addressline1.toUpperCase(),
"fk_city": formValue.addresses[0].fk_city,
"fk_state": formValue.addresses[0].fk_state,
"pincode": formValue.addresses[0].pincode,
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component.html
index 183850d9c..0fb502f71 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component.html
@@ -15,7 +15,7 @@
- Main Applicant
+ Applicant 1
@@ -51,9 +51,9 @@
-
+
+ Applicant {{i+2}}
+
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component.ts
index 6dcf30d0c..837a4314f 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-applicant/edit-pd-applicant.component.ts
@@ -87,7 +87,6 @@ export class EditPdApplicantComponent implements OnInit {
}
createItem(listData): FormGroup {
- // console.log('listData',listData);
if(listData){
let stdcode;
let landline;
@@ -181,8 +180,7 @@ export class EditPdApplicantComponent implements OnInit {
"isactive":1
}];
formValue.coApplicantItems.forEach((itemElement, itemIndex) => {
- // console.log(itemElement.coapplicant_stdcode);
- // console.log(itemElement.coapplicant_landline);
+
let concat_landline
if(itemElement.coapplicant_stdcode != null && itemElement.coapplicant_landline != null){
if(itemElement.coapplicant_stdcode == '' && itemElement.coapplicant_landline == ''){
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html
index 4cdb391c7..d6e682141 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.html
@@ -5,187 +5,229 @@
{{pageTitle}}
-
-
+
+
-
+
-
+
-
-
-
- Select
-
-
-
- {{LL.full_name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Enter Valid Mobile Number.
-
-
-
-
- Enter Valid STD Code.
- -
-
-
- Enter Valid Landline Number.
-
-
-
-
-
- Select
-
-
- {{LB.branch_name}}
-
-
-
-
-
-
+
+
+
Select
-
-
- {{PL.product_name}}
-
-
-
-
-
-
-
-
- Select
-
-
- {{SPL.subproduct_name}}
-
-
-
-
-
-
-
-
- Select
-
- {{CSL.abbr}}
-
-
-
-
-
-
- Select
-
- {{PDL.type_name}}
-
-
-
-
-
-
-
-
-
- {{"₹"}} {{loanAmtInWords}} Only
-
- Enter valid amount.
-
-
-
-
-
-
-
-
-
-
- Select
-
- {{SL.name}}
-
-
-
-
-
-
-
-
- Select
-
- {{CL.city_name}}
-
-
-
-
-
-
-
-
-
-
- Select
- {{PL.pincode}}
-
-
+
+
+
+ {{LL.full_name}}
+
+
+
-
-
- Enter Valid Pincode.
-
-
+
+
+
+
+
+
+
+
+
+
+ Enter
+ Valid Mobile Number.
+
+
+
+
+ Enter
+ Valid STD Code.
+ -
+
+
+ Enter
+ Valid Landline Number.
+
+
+
+
+
+ Select
+
+
+ {{LB.branch_name}}
+
+
+
+
+
+
+ Select
+
+
+ {{PL.product_name}}
+
+
+
+
+
+
+
+
+ Select
+
+
+ {{SPL.subproduct_name}}
+
+
+
+
+
+
+
+
+ Select
+
+ {{CSL.abbr}}
+
+
+
+
+
+
+ Select
+
+ {{PDL.type_name}}
+
+
+
+
+
+
+
+
+
+ {{"₹"}}
+ {{loanAmtInWords}} Only
+
+ Enter valid amount.
+
+
+
-
-
+
+
+
+
+
+ Address Details #{{i+1}} Deactivited
+
+
+
+
+
+
+
+
+
+ Select
+
+ {{SL.name}}
+
+
+
+
+
+
+
+ Select
+
+ {{CL.city_name}}
+
+
+
+
+
+
+
+ Select
+ {{PL.pincode}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
- Remarks
-
+ Remarks
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
\ No newline at end of file
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts
index 0636bcf42..b7578d5a9 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/edit-pd-master/edit-pd-master.component.ts
@@ -12,25 +12,31 @@ import { PdTrigerService } from '../../../pd-service/pd-triger.service';
})
export class EditPdMasterComponent implements OnInit {
public pageTitle: string = "PD Details";
+ pdid: any;
errorMessage: any;
productList:any;
subProductList:any;
lenderList:any;
customerSegmentList:any;
stateList:any;
- cityList:any;
+ cityList:any = [];
pdTypeList:any;
billingList:any;
lenderBranchList: any;
pincodeList: any = [];
+ addressesList : any = [];
+ addressesDeactivited : any = [];
applicantLength:number;
// draftStatus: string;
// PDTriggerStatus: string;
enablePDButton: boolean;
currentPDStatus: string;
loanAmtInWords : any;
+ pincodeflag : any = [];
public _EditPDtriggerForm:FormGroup;
public notifier: NotifierService;
+ addresses: FormArray;
+
// create values for status check
pdStatusCheck :any={
"DRAFT" :'DRAFT',
@@ -46,6 +52,7 @@ export class EditPdMasterComponent implements OnInit {
@Inject(MAT_DIALOG_DATA) public data: any) {
this.notifier=notifier
this.currentPDStatus = data.records.pd_status;
+ this.pdid = data.records.pd_id;
if(this.data.records.loan_amount){ this.loanAmtInWords = this._pd.convertNumberToWords(this.data.records.loan_amount); }
}
@@ -57,6 +64,7 @@ export class EditPdMasterComponent implements OnInit {
this.getCustomerSegmentList();
this.getStateCityList();
this.getPDTypeList();
+ this.getAddresses();
this.loadFormData();
this.applicantLength=this.data.applicantLength;
}
@@ -74,13 +82,16 @@ export class EditPdMasterComponent implements OnInit {
}, error => this.errorMessage = error);
}
selectedLender(lender){
- // console.log(JSON.stringify(lender));
// alert(JSON.stringify(lender['branches ']));
this.lenderBranchList = lender['branches'];
- // console.log(this.lenderBranchList);
this._EditPDtriggerForm.controls.pd_branch_id.setValue(null);
}
+ getAddresses(){
+
+ }
+
+
getProductsList(){
this._pd.getProductsDetails().subscribe(
data => {
@@ -133,8 +144,6 @@ export class EditPdMasterComponent implements OnInit {
}
loadFormData() {
- // console.log('this.data.record',this.data.records);
- // console.log('this.reocrds',this.data.records.pincode_id);
let stdcode;
let landline;
if(this.data.records.pd_contact_landline){
@@ -148,8 +157,8 @@ export class EditPdMasterComponent implements OnInit {
landline = '';
}
}
+
- this.getCityList(this.data.records.fk_state);
// let getpincodeid = this.data.records.pincode != '' ? this.data.records.pincode != null ? (this.pincodeList.filter(data => data.pincode == this.data.records.pincode).pincode_id)
// : this.data.records.pincode
// : this.data.records.pincode;
@@ -168,14 +177,46 @@ export class EditPdMasterComponent implements OnInit {
fk_pd_type: [this.data.records.fk_pd_type],
fk_customer_segment: [this.data.records.fk_customer_segment],
loan_amount: [this.data.records.loan_amount,Validators.compose([Validators.pattern('^[0-9]*$')])],
- addressline1: [this.data.records.addressline1.toUpperCase()],
- fk_city: [this.data.records.fk_city],
- fk_state: [this.data.records.fk_state],
- pincode : [this.data.records.pincode_id],
- other_pincode:[this.data.records.other_pincode,Validators.compose([Validators.minLength(6),Validators.maxLength(6),Validators.pattern('^[0-9]*$')])],
+ addresses: this._fb.array([]),
+ // addressline1: [this.data.records.addressline1.toUpperCase()],
+ // fk_city: [this.data.records.fk_city],
+ // fk_state: [this.data.records.fk_state],
+ // pincode : [this.data.records.pincode_id],
+ // other_pincode:[this.data.records.other_pincode,Validators.compose([Validators.minLength(6),Validators.maxLength(6),Validators.pattern('^[0-9]*$')])],
remarks: [this.data.records.remarks],
- });
- }
+ });
+ const addressesArray = this._EditPDtriggerForm.get('addresses') as FormArray;
+ this._pd.getAddressesDetails(this.pdid).subscribe(
+ data => {
+ if (data.status == 200) {
+ this.addressesList = data.records.filter(item => item.isactive == 1);
+ if (this.addressesList.length > 0) {
+
+ this.addressesList.forEach((val,index)=>{
+ this.addressesDeactivited[index] = true;
+ let obj = {
+ pd_address_id:val.pd_address_id,
+ addressline1: val.addressline1.toUpperCase(),
+ fk_city: val.fk_city,
+ fk_state: val.fk_state,
+ pincode: val.pincode_id,
+ other_pincode:val.other_pincode,
+ isactive:1,
+ }
+ this.getCityList(val.fk_state,index);
+ this.getPincode(val.pincode_id,index);
+ addressesArray.push(this.createAddresses(obj));
+ });
+ }
+ else{
+ addressesArray.push(this.createAddresses(null));
+ }
+ }
+ else{
+ addressesArray.push(this.createAddresses(null));
+ }
+ });
+ }
get pdMain() { return this._EditPDtriggerForm.controls; }
@@ -192,17 +233,85 @@ export class EditPdMasterComponent implements OnInit {
// this.cityList=this.cityList[0].cities;
// }
//get city list details based on state id
- getCityList(stateID:string){
- // console.log('getCityList',stateID);
+ getCityList(stateID:string,i){
+
this._pd.getStateWiseCities(stateID).subscribe(data=>{
if (data.status == 200) {
- // console.log(data);
- this.cityList = data.records.cities;
- this.pincodeList = data.records.pincode;
+
+ this.cityList[i] = data.records.cities;
+ this.pincodeList[i] = data.records.pincode;
}
});
}
+ get pdAddresses() { return this._EditPDtriggerForm.get('addresses') as FormArray; }
+ createAddresses(data): FormGroup {
+ if(data == null){
+ return this._fb.group({
+ fk_pd_id:[this.pdid],
+ pd_address_id:[null],
+ addressline1: [null],
+ fk_city: [null],
+ fk_state: [null],
+ pincode: [null],/** ,Validators.compose([Validators.minLength(6),Validators.maxLength(6)]) */
+ other_pincode: [null, Validators.compose([Validators.minLength(6), Validators.maxLength(6)])],
+ isactive:[1],
+ });
+ }
+ else{
+ return this._fb.group({
+ fk_pd_id:[this.pdid],
+ pd_address_id:[data.pd_address_id],
+ addressline1: [data.addressline1.toUpperCase()],
+ fk_city: [data.fk_city],
+ fk_state: [data.fk_state],
+ pincode : [data.pincode],
+ other_pincode:[data.other_pincode,Validators.compose([Validators.minLength(6),Validators.maxLength(6),Validators.pattern('^[0-9]*$')])],
+ isactive:[data.isactive],
+ });
+ }
+ };
+ addAddresses(index) {
+ console.log(index);
+ this.addressesDeactivited[index] = true;
+ console.log('this.addressesDeactivited[index]',this.addressesDeactivited[index]);
+ this.addresses = this._EditPDtriggerForm.get('addresses') as FormArray;
+ this.addresses.push(this.createAddresses(null));
+
+ }
+
+ removeAddresses(index: number,strflag : any) {
+ const address_control = this._EditPDtriggerForm.controls['addresses'];
+ if(strflag == 'Deactivited'){
+ address_control.controls[index]['controls'].isactive.setValue(0);
+ this.addressesDeactivited[index] = false;
+ }
+ else if(strflag == 'Activited'){
+ address_control.controls[index]['controls'].isactive.setValue(1);
+ this.addressesDeactivited[index] = true;
+ }
+
+ // console.log('address_control',address_control);
+ // console.log('address_control.controls[index]',address_control.controls[index]);
+ // console.log('address_control.controls[index][controls]',address_control.controls[index]['controls']);
+
+ // address_control.controls[index]['controls'].showHide();
+ // isactive.setValue(0);
+ // this.showHide = true;
+ // var div = document.getElementById('newpost');
+ // if (div.style.display !== 'none') {
+ // div.style.display = 'none';
+ // }
+ // else {
+ // div.style.display = 'block';
+ // }
+
+ // address_control.controls[index].disable();
+ // console.log('address_control',address_control);
+ // address_control.removeAt(index);
+ }
+
+ getPincode(e,i){ this.pincodeflag[i] = e == 1 ? true : false;}
// save pd in draft
saveDraftPD(formValue: any, status:string){
@@ -211,7 +320,7 @@ export class EditPdMasterComponent implements OnInit {
}
//trigger pd
triggerPD(formValue: any, status:any){
- // console.log('triggerPD',formValue);
+
// this._EditPDtriggerForm.controls['fk_lender_id'].setValidators([Validators.required]);
// this._EditPDtriggerForm.controls['fk_lender_id'].updateValueAndValidity();
@@ -272,17 +381,17 @@ export class EditPdMasterComponent implements OnInit {
this._EditPDtriggerForm.controls['loan_amount'].clearValidators();
this._EditPDtriggerForm.controls['loan_amount'].updateValueAndValidity();
- this._EditPDtriggerForm.controls['addressline1'].clearValidators();
- this._EditPDtriggerForm.controls['addressline1'].updateValueAndValidity();
+ // this._EditPDtriggerForm.controls['addressline1'].clearValidators();
+ // this._EditPDtriggerForm.controls['addressline1'].updateValueAndValidity();
- this._EditPDtriggerForm.controls['fk_city'].clearValidators();
- this._EditPDtriggerForm.controls['fk_city'].updateValueAndValidity();
+ // this._EditPDtriggerForm.controls['fk_city'].clearValidators();
+ // this._EditPDtriggerForm.controls['fk_city'].updateValueAndValidity();
- this._EditPDtriggerForm.controls['fk_state'].clearValidators();
- this._EditPDtriggerForm.controls['fk_state'].updateValueAndValidity();
+ // this._EditPDtriggerForm.controls['fk_state'].clearValidators();
+ // this._EditPDtriggerForm.controls['fk_state'].updateValueAndValidity();
- this._EditPDtriggerForm.controls['pincode'].clearValidators();
- this._EditPDtriggerForm.controls['pincode'].updateValueAndValidity();
+ // this._EditPDtriggerForm.controls['pincode'].clearValidators();
+ // this._EditPDtriggerForm.controls['pincode'].updateValueAndValidity();
this.validateAllFormFields(this._EditPDtriggerForm);
}
@@ -290,7 +399,7 @@ export class EditPdMasterComponent implements OnInit {
submitPdDetails(formValue: any, status:any) {
// let updateStatus = this.currentPDStatus == this.pdStatusCheck.DRAFT ? status : this.currentPDStatus == this.pdStatusCheck.TRIGGERED ? status : this.currentPDStatus;
let updateStatus = this.currentPDStatus;
- // console.log(this._EditPDtriggerForm.value);
+
if(status != 1){
if(this._EditPDtriggerForm.invalid) {
this.validateAllFormFields(this._EditPDtriggerForm);
@@ -319,8 +428,8 @@ export class EditPdMasterComponent implements OnInit {
return;
}
else{
-
-
+ // console.log('my_array.addresses',my_array.addresses);
+ let filteredAddressesdata = my_array.addresses.filter(item => item.isactive == 1);
let lenderMasterArray = {
"pd_id": my_array.pd_id,
"fk_lender_id": my_array.fk_lender_id,
@@ -334,15 +443,25 @@ export class EditPdMasterComponent implements OnInit {
"fk_pd_type": my_array.fk_pd_type,
"fk_customer_segment": my_array.fk_customer_segment,
"loan_amount": my_array.loan_amount,
- "addressline1": my_array.addressline1.toUpperCase(),
- "fk_city": my_array.fk_city,
- "fk_state": my_array.fk_state,
- "pincode": my_array.pincode,
- "other_pincode":my_array.other_pincode,
+ "addressline1": filteredAddressesdata[0].addressline1.toUpperCase(),
+ "fk_city": filteredAddressesdata[0].fk_city,
+ "fk_state": filteredAddressesdata[0].fk_state,
+ "pincode": filteredAddressesdata[0].pincode,
+ "other_pincode":filteredAddressesdata[0].other_pincode,
"remarks": my_array.remarks,
}
- // console.log(lenderMasterArray);
+ this._pd.updatePDAddress(my_array.addresses).subscribe(result => {
+ if (result.status == 200) {
+ this.notifier.notify('success', 'Address Updated.');
+ }
+ else {
+ this.notifier.notify('warning', 'Something Wents Wrong in Address Try Again.!');
+ }//else
+ }, error => {
+ this.notifier.notify('warning', 'Something Wents Wrong in Address Try Again.!');
+ });
+
this._pd.editPdMasterDetails(lenderMasterArray, updateStatus).subscribe(result => {
if (result.status == 200) {
this.notifier.notify('success', 'PD Details Updated.');
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html
index 43a2473bd..f1971d12f 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.html
@@ -21,138 +21,158 @@
-
-
+
+
+
+ Address Details #{{i+1}}
+
+
+
+
+
+
-
-
+
@@ -317,7 +337,7 @@
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts
index 2d4e6a122..ea09b4586 100755
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/address/address.component.ts
@@ -28,20 +28,20 @@ export class AddressComponent implements OnInit {
main_applicant: any;
pageTitle: string = "PD Address Details";
-
+ disableAfterSubmit : boolean = false;
/**Declaration of FormField Variables */
//@Input() pdid: number;
pdid: number;
form_id: number;
- pdAddress: string;
- pdState: any;
- pdCity: any;
- pdPincode: any;
- pdOtherPincode: any;
+ // pdAddress: string;
+ // pdState: any;
+ // pdCity: any;
+ // pdPincode: any;
+ // pdOtherPincode: any;
CustSegAbbr: any;
loadDataStatus: boolean = true;
- placeholderName: any = 'Estimated area of the (Address Type)';
+ placeholderName: any = [];
/**Array declaration Of Dropdown */
locationdata: any = [];
@@ -53,21 +53,23 @@ export class AddressComponent implements OnInit {
cityData: any = [];
uomData: any = [];
+ addressesList: any = [];
+ otherPincodeFlag:any = [];
/**Declaration of FormField Variables */
private notifier: NotifierService;
public addressForm: FormGroup;
- public address: AbstractControl;
- public addressType: AbstractControl;
- public state: AbstractControl;
- public city: AbstractControl;
- public pincode: AbstractControl;
- public locality: AbstractControl;
- public pdLocation: AbstractControl;
- public commentLocality: AbstractControl;
- public estArea: AbstractControl;
- public uom: AbstractControl;
+ // public address: AbstractControl;
+ // public addressType: AbstractControl;
+ // public state: AbstractControl;
+ // public city: AbstractControl;
+ // public pincode: AbstractControl;
+ // public locality: AbstractControl;
+ // public pdLocation: AbstractControl;
+ // public commentLocality: AbstractControl;
+ // public estArea: AbstractControl;
+ // public uom: AbstractControl;
/**Constructor of the class */
constructor(private el: ElementRef, notifier: NotifierService,
@@ -77,7 +79,7 @@ export class AddressComponent implements OnInit {
private _pd: PdTrigerService,
private dialogRef: MatDialogRef
,
@Inject(MAT_DIALOG_DATA) public pd_all_details: any) {
-
+ // console.log('pd_all_details',pd_all_details);
this.pdid = this.pd_all_details.pdmaster_details.pd_id;
this.form_id = 5;
@@ -85,26 +87,18 @@ export class AddressComponent implements OnInit {
this.lender_applicant_id = this.pd_all_details.pdmaster_details.lender_applicant_id;
this.subproduct_abbr = this.pd_all_details.pdmaster_details.subproduct_abbr;
this.customer_segment_abbr = this.pd_all_details.pdmaster_details.customer_segment_abbr;
- console.log('this.pd_all_details',this.pd_all_details);
let CSAbbrSearch = this.pd_all_details.pdmaster_details.customer_segment_abbr.search("-");
this.CustSegAbbr = this.pd_all_details.pdmaster_details.customer_segment_abbr.substr(0, CSAbbrSearch);
this.notifier = notifier;
- this.pdAddress = this.pd_all_details.pdmaster_details.addressline1;
- this.pdState = this.pd_all_details.pdmaster_details.fk_state;
- this.getCityAndPincodeDetails(this.pdState);
- this.pdCity = this.pd_all_details.pdmaster_details.fk_city;
- this.pdPincode = this.pd_all_details.pdmaster_details.pincode_id;
- console.log('this.pdPincode', this.pdPincode);
- this.pdOtherPincode = this.pdPincode == 1 ? this.pd_all_details.pdmaster_details.other_pincode : '';
- console.log('this.pdOtherPincode', this.pdOtherPincode);
-
+
}
/**Init Fns of the class */
ngOnInit() {
-
+ this.initAddressForm();
+
this.getMasterDetails('PDLOCATIONAPPROACH', 1);
this.getMasterDetails('COMMENTSONLOCALITY', 2);
this.getMasterDetails('UOM', 3);
@@ -112,70 +106,151 @@ export class AddressComponent implements OnInit {
this.getMasterDetails('ADDRESSTYPE', 5);
this.getMasterDetails('STATE', 6);
- this.initAddressForm();
-
let params: any = {};
params.pd_id = this.pdid;
params.pd_form_id = '5';
this._pd.retriveForm(params).subscribe(data => {
-
+ const control = this.addressForm.controls['addresses'];
if (data.status == 200) {
+ // console.log('data.records',data.records);
+ // console.log('data.records.addresses',data.records.addresses);
+ if (data.records.addresses.length == 0) {
+ control.push(this.createAddresses(null));
+ // this.loadPDAddressesDetails();
+ } else {
+ data.records.addresses.forEach((datas,index) => {
+ let obj = {
+ 'address': datas.address,
+ 'address_type': datas.address_type,
+ 'address_type_others': datas.address_type_others,
+ 'state': datas.state,
+ 'city': datas.city,
+ 'pincode': datas.pincode,
+ 'pincode_others': datas.pincode_others,
+ 'locality': datas.locality,
+ 'locality_others': datas.locality_others,
+ 'locality_mixuse': datas.locality_mixuse,
+ 'pd_location': datas.pd_location,
+ 'comment_locality': datas.comment_locality,
+ 'estimated_area': datas.estimated_area,
+ 'uom': datas.uom,
+ 'uom_others': datas.uom_others
+ }
+ this.getCityAndPincodeDetails(datas.state,index);
+ this.getOtherPincode(datas.pincode,index);
+ let selectedAddressType = this.addressData.filter(element => element.address_type_id == datas.address_type)[0];
+ this.selectedAddressType(selectedAddressType.address_type,index);
+ if (datas.address_type == 1) {
+ this.selectedAddressType(datas.address_type_others,index);
+ }
+ control.push(this.createAddresses(obj));
+ });
+ }
+
- this.addressForm.controls.address.setValue(data.records.address);
- this.addressForm.controls.state.setValue(data.records.state);
+ // this.addressForm.controls.address.setValue(data.records.address);
+ // this.addressForm.controls.state.setValue(data.records.state);
- if (data.records.state != '') {
- this.getCityAndPincodeDetails(data.records.state);
- this.addressForm.controls.city.setValue(data.records.city);
- this.addressForm.controls.pincode.setValue(data.records.pincode);
- if (data.records.pincode == 1) {
- this.addressForm.controls.pincode_others.setValue(data.records.pincode_others);
- this.addressForm.controls.pincode_others.setValidators([Validators.required]);
- this.addressForm.controls.pincode_others.updateValueAndValidity();
- }
- }
+ // if (data.records.state != '') {
+ // this.getCityAndPincodeDetails(data.records.state);
+ // this.addressForm.controls.city.setValue(data.records.city);
+ // this.addressForm.controls.pincode.setValue(data.records.pincode);
+ // if (data.records.pincode == 1) {
+ // this.addressForm.controls.pincode_others.setValue(data.records.pincode_others);
+ // this.addressForm.controls.pincode_others.setValidators([Validators.required]);
+ // this.addressForm.controls.pincode_others.updateValueAndValidity();
+ // }
+ // }
- this.addressForm.controls.pd_location.setValue(data.records.pd_location);
- this.addressForm.controls.address_type.setValue(data.records.address_type);
+ // this.addressForm.controls.pd_location.setValue(data.records.pd_location);
+ // this.addressForm.controls.address_type.setValue(data.records.address_type);
- let selectedAddressType = this.addressData.filter(element => element.address_type_id == data.records.address_type)[0];
- this.selectedAddressType(selectedAddressType.address_type);
+ // let selectedAddressType = this.addressData.filter(element => element.address_type_id == data.records.address_type)[0];
+ // this.selectedAddressType(selectedAddressType.address_type);
- if (data.records.address_type == 1) {
- this.addressForm.controls.address_type_others.setValue(data.records.address_type_others);
- this.addressForm.controls.address_type_others.setValidators([Validators.required]);
- this.addressForm.controls.address_type_others.updateValueAndValidity();
- this.selectedAddressType(data.records.address_type_others);
- }
+ // if (data.records.address_type == 1) {
+ // this.addressForm.controls.address_type_others.setValue(data.records.address_type_others);
+ // this.addressForm.controls.address_type_others.setValidators([Validators.required]);
+ // this.addressForm.controls.address_type_others.updateValueAndValidity();
+ // this.selectedAddressType(data.records.address_type_others);
+ // }
- this.addressForm.controls.comment_locality.setValue(data.records.comment_locality);
+ // this.addressForm.controls.comment_locality.setValue(data.records.comment_locality);
- this.addressForm.controls.locality.setValue(data.records.locality);
+ // this.addressForm.controls.locality.setValue(data.records.locality);
- if (data.records.locality == 1) {
- this.addressForm.controls.locality_others.setValue(data.records.locality_others);
- this.addressForm.controls.locality_others.setValidators([Validators.required]);
- this.addressForm.controls.locality_others.updateValueAndValidity();
- }
- if (data.records.locality == 5) {
- this.addressForm.controls.locality_mixuse.setValue(data.records.locality_mixuse);
- this.addressForm.controls.locality_mixuse.setValidators([Validators.required])
- this.addressForm.controls.locality_mixuse.updateValueAndValidity();
- }
+ // if (data.records.locality == 1) {
+ // this.addressForm.controls.locality_others.setValue(data.records.locality_others);
+ // this.addressForm.controls.locality_others.setValidators([Validators.required]);
+ // this.addressForm.controls.locality_others.updateValueAndValidity();
+ // }
+ // if (data.records.locality == 5) {
+ // this.addressForm.controls.locality_mixuse.setValue(data.records.locality_mixuse);
+ // this.addressForm.controls.locality_mixuse.setValidators([Validators.required])
+ // this.addressForm.controls.locality_mixuse.updateValueAndValidity();
+ // }
+
+ // this.addressForm.controls.estimated_area.setValue(data.records.estimated_area);
+ // this.addressForm.controls.uom.setValue(data.records.uom);
+ // if (data.records.uom == 1) {
+ // this.addressForm.controls.uom_others.setValue(data.records.uom_others);
+ // this.addressForm.controls.uom_others.setValidators([Validators.required])
+ // this.addressForm.controls.uom_others.updateValueAndValidity();
+ // }
- this.addressForm.controls.estimated_area.setValue(data.records.estimated_area);
- this.addressForm.controls.uom.setValue(data.records.uom);
- if (data.records.uom == 1) {
- this.addressForm.controls.uom_others.setValue(data.records.uom_others);
- this.addressForm.controls.uom_others.setValidators([Validators.required])
- this.addressForm.controls.uom_others.updateValueAndValidity();
- }
this.addressForm.controls.address_form_remark.setValue(data.records.address_form_remark);
}
+ else{
+ this.loadPDAddressesDetails();
+ }
+ // else {
+ // control.push(this.createAddresses(null));
+ // }
});
}
+ loadPDAddressesDetails(){
+ const control = this.addressForm.controls['addresses'];
+ this._pd.getAddressesDetails(this.pdid).subscribe(
+ data => {
+ if (data.status == 200) {
+ this.addressesList = data.records.filter(item => item.isactive == 1);
+ // console.log('this.addressesList',this.addressesList);
+
+ if (this.addressesList.length > 0) {
+ this.addressesList.forEach((val,index)=>{
+ let obj = {
+ 'address': val.addressline1,
+ 'address_type': '',
+ 'address_type_others': '',
+ 'state': val.fk_state,
+ 'city': val.fk_city,
+ 'pincode': val.pincode_id,
+ 'pincode_others': val.other_pincode,
+ 'locality': '',
+ 'locality_others': '',
+ 'locality_mixuse': '',
+ 'pd_location': '',
+ 'comment_locality': '',
+ 'estimated_area': '',
+ 'uom': '',
+ 'uom_others': ''
+ }
+ this.getCityAndPincodeDetails(val.fk_state,index);
+ this.getOtherPincode(val.pincode_id,index);
+ control.push(this.createAddresses(obj));
+ });
+ }
+ // else{
+ // control.push(this.createAddresses(null));
+ // }
+ }
+ // else{
+ // control.push(this.createAddresses(null));
+ // }
+ });
+ }
// getM_Address_Type() {
// this._pd.getAllMasterDatas('ADDRESSTYPE').subscribe(
// data => {
@@ -192,13 +267,52 @@ export class AddressComponent implements OnInit {
/** Address Form ELements */
public initAddressForm(): void {
this.addressForm = this.fb.group({
- address: [this.pdAddress != '' ? this.pdAddress : '', Validators.compose([Validators.required])],
+ addresses: this.fb.array([]),
+ address_form_remark: ['']
+ });
+ // this.address = this.addressForm.controls['address'];
+ // this.state = this.addressForm.controls['state'];
+ // this.city = this.addressForm.controls['city'];
+ // this.pincode = this.addressForm.controls['pincode'];
+ // this.addressType = this.addressForm.controls['address_type'];
+ // this.locality = this.addressForm.controls['locality'];
+ // this.pdLocation = this.addressForm.controls['pd_location'];
+ // this.commentLocality = this.addressForm.controls['comment_locality'];
+ // this.estArea = this.addressForm.controls['estimated_area'];
+ // this.uom = this.addressForm.controls['uom'];
+ }
+
+/** FOR Adress */
+createAddresses(AddressDetails): FormGroup {
+ if(AddressDetails != null){
+ return this.fb.group({
+ address: [AddressDetails.address, Validators.compose([Validators.required])],
+ address_type: [AddressDetails.address_type, Validators.compose([Validators.required])],
+ address_type_others: [AddressDetails.address_type_others],
+ state: [AddressDetails.state],
+ city: [AddressDetails.city],
+ pincode: [AddressDetails.pincode],/** ,Validators.compose([Validators.minLength(6),Validators.maxLength(6)]) */
+ pincode_others: [AddressDetails.pincode_others, Validators.compose([Validators.minLength(6), Validators.maxLength(6)])],
+ locality: [AddressDetails.locality, Validators.compose([Validators.required])],
+ locality_others: [AddressDetails.locality_others],
+ locality_mixuse: [AddressDetails.locality_mixuse],
+ pd_location: [AddressDetails.pd_location, Validators.compose([Validators.required])],
+ comment_locality: [AddressDetails.comment_locality, Validators.compose([Validators.required])],
+ estimated_area: [AddressDetails.estimated_area],
+ uom: [AddressDetails.uom],
+ uom_others: [AddressDetails.uom_others]
+ });
+
+ }
+ else{
+ return this.fb.group({
+ address: ['', Validators.compose([Validators.required])],
address_type: ['', Validators.compose([Validators.required])],
address_type_others: [''],
- state: [this.pdState != '' ? this.pdState : ''],
- city: [this.pdCity != '' ? this.pdCity : ''],
- pincode: [this.pdPincode != '' ? this.pdPincode : ''],/** ,Validators.compose([Validators.minLength(6),Validators.maxLength(6)]) */
- pincode_others: [this.pdOtherPincode != '' ? this.pdOtherPincode : '', Validators.compose([Validators.minLength(6), Validators.maxLength(6)])],
+ state: [''],
+ city: [''],
+ pincode: [''],
+ pincode_others: ['', Validators.compose([Validators.minLength(6), Validators.maxLength(6)])],
locality: ['', Validators.compose([Validators.required])],
locality_others: [''],
locality_mixuse: [''],
@@ -206,22 +320,20 @@ export class AddressComponent implements OnInit {
comment_locality: ['', Validators.compose([Validators.required])],
estimated_area: [''],
uom: [''],
- uom_others: [''],
- address_form_remark: ['']
- //additional_premises: this.fb.array([])
+ uom_others: ['']
});
- this.address = this.addressForm.controls['address'];
- this.state = this.addressForm.controls['state'];
- this.city = this.addressForm.controls['city'];
- this.pincode = this.addressForm.controls['pincode'];
- this.addressType = this.addressForm.controls['address_type'];
- this.locality = this.addressForm.controls['locality'];
- this.pdLocation = this.addressForm.controls['pd_location'];
- this.commentLocality = this.addressForm.controls['comment_locality'];
- this.estArea = this.addressForm.controls['estimated_area'];
- this.uom = this.addressForm.controls['uom'];
- }
+ }
+}
+// addAddresses() {
+// const address_control = this.addressForm.controls['addresses'];
+// address_control.push(this.createAddresses(null));
+// }
+
+// removeAddresses(index: number) {
+// const address_control = this.addressForm.controls['addresses'];
+// address_control.removeAt(index);
+// }
/** To Get Dropdown Data For Address Form */
getMasterDetails(table: string, type: number) {
@@ -233,7 +345,7 @@ export class AddressComponent implements OnInit {
else if (type == 2 && val.isactive == 1) {
this.commentData.push(val);
}
- else if (type == 3 && val.isactive == 1) {
+ else if (type == 3 && val.isactive == 1 && val.is_land_uom != 0) {
this.uomData.push(val);
}
else if (type == 4 && val.isactive == 1) {
@@ -252,109 +364,145 @@ export class AddressComponent implements OnInit {
/** To Get City And Pincode Data For Address Form
* Param 'stateID' -> selected StateId
*/
- getCityAndPincodeDetails(stateID: string) {
+ getCityAndPincodeDetails(stateID: string,index) {
this._pd.getStateWiseCities(stateID).subscribe(data => {
if (data.status == 200) {
- this.cityData = data.records.cities;
- this.pincodeData = data.records.pincode;
+ this.cityData[index] = data.records.cities;
+ this.pincodeData[index] = data.records.pincode;
}
});
}
+ getOtherPincode(e,i){ this.otherPincodeFlag[i] = e == 1 ? true : false;}
/** TO Save Address Forms Details*/
onSubmit() {
+ // let addressesArrayValues = this.addressForm.controls.addresses.value;
+ // console.log(this.addressForm.controls.addresses);
+ // return;
+ // addressesArrayValues.forEach(data => {
+ // data.address_type.value == 1
+ // ? this.addressForm.controls['address_type_others'].setValidators([Validators.required])
+ // : this.addressForm.controls['address_type_others'].clearValidators();
+ // this.addressForm.controls['address_type_others'].updateValueAndValidity();
- this.addressForm.controls.address_type.value == 1
- ? this.addressForm.controls['address_type_others'].setValidators([Validators.required])
- : this.addressForm.controls['address_type_others'].clearValidators();
- this.addressForm.controls['address_type_others'].updateValueAndValidity();
+ // data.controls.locality.value == 1
+ // ? this.addressForm.controls['locality_others'].setValidators([Validators.required])
+ // : this.addressForm.controls['locality_others'].clearValidators();
+ // this.addressForm.controls['locality_others'].updateValueAndValidity();
- this.addressForm.controls.locality.value == 1
- ? this.addressForm.controls['locality_others'].setValidators([Validators.required])
- : this.addressForm.controls['locality_others'].clearValidators();
- this.addressForm.controls['locality_others'].updateValueAndValidity();
+ // data.controls.pincode.value == 1
+ // ? this.addressForm.controls['pincode_others'].setValidators([Validators.required])
+ // : this.addressForm.controls['pincode_others'].clearValidators();
+ // this.addressForm.controls['pincode_others'].updateValueAndValidity();
- this.addressForm.controls.pincode.value == 1
- ? this.addressForm.controls['pincode_others'].setValidators([Validators.required])
- : this.addressForm.controls['pincode_others'].clearValidators();
- this.addressForm.controls['pincode_others'].updateValueAndValidity();
+ // data.controls.locality.value == 5
+ // ? this.addressForm.controls['locality_mixuse'].setValidators([Validators.required])
+ // : this.addressForm.controls['locality_mixuse'].clearValidators();
+ // this.addressForm.controls['locality_mixuse'].updateValueAndValidity();
- this.addressForm.controls.locality.value == 5
- ? this.addressForm.controls['locality_mixuse'].setValidators([Validators.required])
- : this.addressForm.controls['locality_mixuse'].clearValidators();
- this.addressForm.controls['locality_mixuse'].updateValueAndValidity();
+ // data.controls.uom.value == 1
+ // ? this.addressForm.controls['uom_others'].setValidators([Validators.required])
+ // : this.addressForm.controls['uom_others'].clearValidators();
+ // this.addressForm.controls['uom_others'].updateValueAndValidity();
+ // });
+ // this.addressForm.controls.address_type.value == 1
+ // ? this.addressForm.controls['address_type_others'].setValidators([Validators.required])
+ // : this.addressForm.controls['address_type_others'].clearValidators();
+ // this.addressForm.controls['address_type_others'].updateValueAndValidity();
- this.addressForm.controls.uom.value == 1
- ? this.addressForm.controls['uom_others'].setValidators([Validators.required])
- : this.addressForm.controls['uom_others'].clearValidators();
- this.addressForm.controls['uom_others'].updateValueAndValidity();
+ // this.addressForm.controls.locality.value == 1
+ // ? this.addressForm.controls['locality_others'].setValidators([Validators.required])
+ // : this.addressForm.controls['locality_others'].clearValidators();
+ // this.addressForm.controls['locality_others'].updateValueAndValidity();
+
+ // this.addressForm.controls.pincode.value == 1
+ // ? this.addressForm.controls['pincode_others'].setValidators([Validators.required])
+ // : this.addressForm.controls['pincode_others'].clearValidators();
+ // this.addressForm.controls['pincode_others'].updateValueAndValidity();
+
+ // this.addressForm.controls.locality.value == 5
+ // ? this.addressForm.controls['locality_mixuse'].setValidators([Validators.required])
+ // : this.addressForm.controls['locality_mixuse'].clearValidators();
+ // this.addressForm.controls['locality_mixuse'].updateValueAndValidity();
+
+ // this.addressForm.controls.uom.value == 1
+ // ? this.addressForm.controls['uom_others'].setValidators([Validators.required])
+ // : this.addressForm.controls['uom_others'].clearValidators();
+ // this.addressForm.controls['uom_others'].updateValueAndValidity();
if (!this.addressForm.valid) {
this.notifier.notify('warning', 'Please Fill All Mandatory Fields.!');
+ this.disableAfterSubmit = false;
return;
}
- // if(this.address.value.bussiness_activity_remark == ''){
- // this.notifier.notify('warning', 'Fill Remark!');
- // return;
- // }
-
+ if(this.addressForm.value.bussiness_activity_remark == ''){
+ this.notifier.notify('warning', 'Fill Remark!');
+ this.disableAfterSubmit = false;
+ return;
+ }
+ this.disableAfterSubmit = true;
let records: any = {};
- records.address = this.address.value;
- records.state = this.state.value;
- records.city = this.city.value;
- records.address_type = this.addressType.value;
+ records.addresses = this.addressForm.controls.addresses.value;
+ // records.address = this.address.value;
+ // records.state = this.state.value;
+ // records.city = this.city.value;
+ // records.address_type = this.addressType.value;
- records.address_type_others = this.addressType.value == 1 ?
- this.addressForm.controls.address_type_others.value : '';
+ // records.address_type_others = this.addressType.value == 1 ?
+ // this.addressForm.controls.address_type_others.value : '';
- records.locality = this.locality.value;
- records.locality_others = this.locality.value == 1 ?
- this.addressForm.controls.locality_others.value : '';
+ // records.locality = this.locality.value;
+ // records.locality_others = this.locality.value == 1 ?
+ // this.addressForm.controls.locality_others.value : '';
- records.locality_mixuse = this.locality.value == 5 ?
- this.addressForm.controls.locality_mixuse.value : '';
+ // records.locality_mixuse = this.locality.value == 5 ?
+ // this.addressForm.controls.locality_mixuse.value : '';
- records.pincode = this.pincode.value;
- records.pincode_others = this.pincode.value == 1 ?
- this.addressForm.controls.pincode_others.value : '';
+ // records.pincode = this.pincode.value;
+ // records.pincode_others = this.pincode.value == 1 ?
+ // this.addressForm.controls.pincode_others.value : '';
- records.pd_location = this.pdLocation.value;
- records.comment_locality = this.commentLocality.value;
+ // records.pd_location = this.pdLocation.value;
+ // records.comment_locality = this.commentLocality.value;
records.address_form_remark = this.addressForm.controls.address_form_remark.value;
- records.estimated_area = this.estArea.value;
+ // records.estimated_area = this.estArea.value;
- records.uom = this.uom.value;
- records.uom_others = records.uom == 1 ?
- this.addressForm.controls.uom_others.value : '';
+ // records.uom = this.uom.value;
+ // records.uom_others = records.uom == 1 ?
+ // this.addressForm.controls.uom_others.value : '';
records.pdid = this.pdid;
records.formid = '5';
// records.fk_createdby = '250';
// console.log(JSON.stringify(records));
+
this._pd.saveForm(records).subscribe(data => {
if (data.status == 200) {
this.notifier.notify('success', 'Saved Successfully.');
setTimeout(() => {
this.dialogRef.close();
+ this.disableAfterSubmit = false;
}, 3000);
}
else {
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
+ this.disableAfterSubmit = false;
}
}, error => {
this.notifier.notify('warning', 'Something Wents Wrong Try Again.!');
+ this.disableAfterSubmit = false;
});
}
/** For PlaceHolder
* selected AddressType is concate with label */
- selectedAddressType(e: any) {
- console.log(e);
- this.placeholderName = 'Estimated area of the ' + e;
+ selectedAddressType(e: any,i) {
+
+ this.placeholderName[i] = 'Estimated area of the ' + e;
}
diff --git a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assessed-income/AI-diologue/manage-daily-sales/manage-daily-sales.component.html b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assessed-income/AI-diologue/manage-daily-sales/manage-daily-sales.component.html
index 3606a00bf..976ce3781 100644
--- a/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assessed-income/AI-diologue/manage-daily-sales/manage-daily-sales.component.html
+++ b/ng6-seed/src/app/personal-discussion/manage-pd/list-pd/start-pd/forms/assessed-income/AI-diologue/manage-daily-sales/manage-daily-sales.component.html
@@ -21,6 +21,7 @@
+ {{"₹"}} {{marginAmtInwords[s]}} Only