Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anishfyle committed Dec 12, 2024
1 parent 0d98a6c commit 107f24d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,28 @@
</div>
<form [formGroup]="employeeSettingForm">
<div class="tw-p-24-px">
<app-configuration-select-field
<app-configuration-select-field
[form]="employeeSettingForm"
[isFieldMandatory]="true"
[formControllerName]="'employeeMapping'"
[options]="employeeMappingOptions"
[mandatoryErrorListName]="'option'"
[label]="'How are your Employees represented in QuickBooks Online?'"
[subLabel]="'Select how you represent your employees in QuickBooks Online. This would help to export the expenses from ' + brandingConfig.brandName + ' to the correct employee/vendor record in QuickBooks Online.'"
[options]="employeeMappingOptions"
[iconPath]="'user-two'"
[placeholder]="'Select representation'"
[tooltipText]="'Select how you represent your employees in QuickBooks Online'">
</app-configuration-select-field>

<app-configuration-select-field
[formControllerName]="'employeeMapping'">
</app-configuration-select-field>
<app-configuration-select-field
[form]="employeeSettingForm"
[formControllerName]="'autoMapEmployee'"
[options]="autoMapEmployeeOptions"
[isFieldMandatory]="false"
[mandatoryErrorListName]="'option'"
[label]="'How should Employees in ' + brandingConfig.brandName + ' be matched to Employees/Vendors in QuickBooks Online?'"
[placeholder]="'Select matching preference'"
[tooltipText]="'Automatically map employees based on a unique parameter'">
</app-configuration-select-field>
[subLabel]="'Automatically map the employees in ' + brandingConfig.brandName + ' to their corresponding records in QuickBooks Online based on a unique parameter.'"
[options]="autoMapEmployeeOptions"
[iconPath]="'question-square-outline'"
[placeholder]="'Select representation'"
[formControllerName]="'autoMapEmployee'">
</app-configuration-select-field>
</div>
</form>
<form [formGroup]="exportSettingForm">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,13 +118,18 @@ export class QboExportSettingsComponent implements OnInit {
readonly brandingContent = brandingContent.configuration.exportSetting;

isMultilineOption: boolean;
//Employee settings

// Employee settings
employeeSettingForm: FormGroup;

employeeMappingOptions: SelectFormOption[] = EmployeeSettingModel.getEmployeeFieldMappingOptions();

autoMapEmployeeOptions: SelectFormOption[] = QBOEmployeeSettingModel.getAutoMapEmployeeOptions();

employeeSetting: QBOEmployeeSettingGet;

existingEmployeeFieldMapping: EmployeeFieldMapping;

liveEntityExample: {[FyleField.EMPLOYEE]: string | undefined, [FyleField.VENDOR]: string | undefined};

constructor(
Expand Down Expand Up @@ -433,7 +438,7 @@ export class QboExportSettingsComponent implements OnInit {
this.workspaceService.getWorkspaceGeneralSettings(),
this.employeeSettingService.getEmployeeSettings(),
this.employeeSettingService.getDistinctQBODestinationAttributes([FyleField.EMPLOYEE, FyleField.VENDOR]),
...groupedAttributes,
...groupedAttributes
]).subscribe(([exportSetting, workspaceGeneralSettings, employeeSettings, destinationAttributes, bankAccounts, cccAccounts, accountsPayables, vendors]) => {

this.exportSettings = exportSetting;
Expand Down

0 comments on commit 107f24d

Please sign in to comment.