Merge branch 'master' of https://bitbucket.org/sriramv18/sparqsineedge
This commit is contained in:
commit
624319fd7f
@ -659,18 +659,14 @@ export class FinancialInfoComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
/** fin customer data from Fin statement*/
|
/** fin customer data from Fin statement*/
|
||||||
selectedFinancialCustomer(e: any): void {
|
selectedFinancialCustomer(e: any): void {
|
||||||
|
const control = <FormArray>this.financialForm.controls['estimated_value'];
|
||||||
if(e == 'yes'){
|
if(e == 'yes'){
|
||||||
const control = <FormArray>this.financialForm.controls['estimated_value'];
|
|
||||||
|
|
||||||
while (control.length !== 0) {
|
while (control.length !== 0) {
|
||||||
control.removeAt(0);
|
control.removeAt(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (e == 'no'){
|
else if (e == 'no' && control.length === 0){
|
||||||
const control = <FormArray>this.financialForm.controls['estimated_value'];
|
control.push(this.createValue(''));
|
||||||
if(control.length === 0){
|
|
||||||
control.push(this.createValue(''));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user