Skip to content

Commit

Permalink
netsuite import setting tax destination attributite call change (#944)
Browse files Browse the repository at this point in the history
  • Loading branch information
DhaaraniCIT authored and GitHub Actions committed Sep 10, 2024
1 parent 40759a3 commit 47de929
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ export class NetsuiteImportSettingsComponent implements OnInit {
this.netsuiteConnectorService.getSubsidiaryMapping(),
this.importSettingService.getNetsuiteFields(),
this.workspaceService.getConfiguration(),
this.mappingService.getDestinationAttributes(NetsuiteFyleField.TAX_ITEM, 'v2')
this.mappingService.getPaginatedDestinationAttributes(NetsuiteFyleField.TAX_ITEM)
]).subscribe(([importSettingsResponse, fyleFieldsResponse, subsidiaryMapping, netsuiteFields, workspaceGeneralSetting, destinationAttribute]) => {
this.importSettings = importSettingsResponse;
if (subsidiaryMapping && subsidiaryMapping.country_name !== '_unitedStates') {
Expand Down Expand Up @@ -293,8 +293,8 @@ export class NetsuiteImportSettingsComponent implements OnInit {
this.isImportMerchantsAllowed = true;
}

this.taxCodes = destinationAttribute.results;
this.importSettingForm = NetsuiteImportSettingModel.mapAPIResponseToFormGroup(this.importSettings, this.netsuiteFields, this.taxCodes);
this.taxCodes = destinationAttribute;
this.fyleFields = fyleFieldsResponse;
this.fyleFields.push({ attribute_type: 'custom_field', display_name: 'Create a Custom Field', is_dependent: false });
this.setupFormWatchers();
Expand Down

0 comments on commit 47de929

Please sign in to comment.