Skip to content

Commit

Permalink
sage 300 fix (#939)
Browse files Browse the repository at this point in the history
  • Loading branch information
DhaaraniCIT authored and Hrishabh17 committed Sep 3, 2024
1 parent 56272a1 commit 0482202
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,15 +231,13 @@ export class ConfigurationImportFieldComponent implements OnInit {
(expenseField as FormGroup).controls.source_field.patchValue('');
(expenseField as FormGroup).controls.import_to_fyle.patchValue(false);
(expenseField as FormGroup).controls.import_to_fyle.enable();
this.onImportToFyleToggleChange({checked: false}, (expenseField as FormGroup).controls.destination_field.value);
event?.stopPropagation();
this.isXeroProjectMapped = false;
this.xeroProjectMapping.emit(this.isXeroProjectMapped);
}

onSwitchChanged(event: any, formGroup: AbstractControl): void {
this.onShowWarningForDependentFields(event, formGroup);
this.onImportToFyleToggleChange(event, formGroup?.get('destination_field')?.value);
if (event.checked && this.appName === AppName.SAGE300 && formGroup.get('source_field')?.value === 'PROJECT') {
this.form.controls.isDependentImportEnabled.setValue(true);
}
Expand Down

0 comments on commit 0482202

Please sign in to comment.