From 7598747bb8a68af16d8e83421823449df41d825f Mon Sep 17 00:00:00 2001 From: Anish Kr Singh <116036738+anishfyle@users.noreply.github.com> Date: Mon, 16 Dec 2024 13:12:48 +0530 Subject: [PATCH] fix: fix memo options for C1 (#1127) * fix: fix memo options for C1 * lint --- .../netsuite-advanced-settings.model.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/app/core/models/netsuite/netsuite-configuration/netsuite-advanced-settings.model.ts b/src/app/core/models/netsuite/netsuite-configuration/netsuite-advanced-settings.model.ts index 8ebe4df5b..0d2a45c4d 100644 --- a/src/app/core/models/netsuite/netsuite-configuration/netsuite-advanced-settings.model.ts +++ b/src/app/core/models/netsuite/netsuite-configuration/netsuite-advanced-settings.model.ts @@ -75,12 +75,15 @@ export class NetsuiteAdvancedSettingModel extends HelperUtility { const defaultOptions = this.getDefaultMemoOptions(); const cccExportType = exportSettings.configuration.corporate_credit_card_expenses_object; - // Filter out options based on cccExportType and appName - if (cccExportType) { - return defaultOptions; // Allow all options including 'card_number' + if (brandingConfig.brandId === 'co') { + return defaultOptions.filter(option => !['card_number', 'employee_name'].includes(option)); } - return defaultOptions.filter(option => option !== 'card_number'); // Omit 'card_number' for other apps + if (!cccExportType) { + return defaultOptions.filter(option => option !== 'card_number'); + } + + return defaultOptions; } static getPaymentSyncOptions(): SelectFormOption[] {