Skip to content

Commit

Permalink
Merge branch 'master' into qbd-direct-tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
DhaaraniCIT authored Dec 16, 2024
2 parents cb27ca5 + 7598747 commit 6f884f1
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 6f884f1

Please sign in to comment.