Skip to content

Commit

Permalink
fix: fix memo options for C1 (#1127)
Browse files Browse the repository at this point in the history
* fix: fix memo options for C1

* lint
  • Loading branch information
anishfyle authored Dec 16, 2024
1 parent 204c5f7 commit 7598747
Showing 1 changed file with 7 additions and 4 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

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

return defaultOptions;
}

static getPaymentSyncOptions(): SelectFormOption[] {
Expand Down

0 comments on commit 7598747

Please sign in to comment.