Skip to content

Commit

Permalink
fix: fix memo options for C1
Browse files Browse the repository at this point in the history
  • Loading branch information
anishfyle committed Dec 16, 2024
1 parent 204c5f7 commit 11c23d9
Showing 1 changed file with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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


Check failure on line 81 in src/app/core/models/netsuite/netsuite-configuration/netsuite-advanced-settings.model.ts

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces not allowed
if (!cccExportType) {
return defaultOptions.filter(option => option !== 'card_number');
}

Check failure on line 85 in src/app/core/models/netsuite/netsuite-configuration/netsuite-advanced-settings.model.ts

View workflow job for this annotation

GitHub Actions / lint

Trailing spaces not allowed
return defaultOptions;
}

static getPaymentSyncOptions(): SelectFormOption[] {
Expand Down

0 comments on commit 11c23d9

Please sign in to comment.