From 47de929b8cab6ddb4d2fa4cb97c4e43fc6c7159e Mon Sep 17 00:00:00 2001 From: Dhaarani <55541808+DhaaraniCIT@users.noreply.github.com> Date: Tue, 10 Sep 2024 12:46:31 +0530 Subject: [PATCH] netsuite import setting tax destination attributite call change (#944) --- .../netsuite-import-settings.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/integrations/netsuite/netsuite-shared/netsuite-import-settings/netsuite-import-settings.component.ts b/src/app/integrations/netsuite/netsuite-shared/netsuite-import-settings/netsuite-import-settings.component.ts index af76b6c4e..c68c5af86 100644 --- a/src/app/integrations/netsuite/netsuite-shared/netsuite-import-settings/netsuite-import-settings.component.ts +++ b/src/app/integrations/netsuite/netsuite-shared/netsuite-import-settings/netsuite-import-settings.component.ts @@ -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') { @@ -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();