From 580b8ec465cc40fadabb8a1d772ba4c357eb2493 Mon Sep 17 00:00:00 2001 From: anishfyle Date: Wed, 11 Dec 2024 13:07:36 +0530 Subject: [PATCH] pr comments --- src/app/core/models/common/advanced-settings.model.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/core/models/common/advanced-settings.model.ts b/src/app/core/models/common/advanced-settings.model.ts index ee8eab5c6..2fc4a360d 100644 --- a/src/app/core/models/common/advanced-settings.model.ts +++ b/src/app/core/models/common/advanced-settings.model.ts @@ -81,13 +81,11 @@ export class AdvancedSettingsModel { // Handle both configurations and configuration properties if ('configurations' in exportSettings) { cccExportType = exportSettings.configurations?.corporate_credit_card_expenses_object ?? undefined; - } else if ('configuration' in exportSettings) { - cccExportType = exportSettings.configuration?.corporate_credit_card_expenses_object ?? undefined; } else if ('workspace_general_settings' in exportSettings) { cccExportType = exportSettings.workspace_general_settings?.corporate_credit_card_expenses_object ?? undefined; } // Filter out options based on cccExportType and appName - if (cccExportType) { + if (cccExportType && ['netsuite', 'qbo', 'sage intacct'].includes(appName.toLowerCase())) { return defaultOptions; // Allow all options including 'card_number' } return defaultOptions.filter(option => option !== 'card_number'); // Omit 'card_number' for other apps