File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
src/app/core/models/common Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { ExportSettingGet } from "../intacct/intacct-configuration/export-settin
5
5
import { QBOExportSettingGet } from "../qbo/qbo-configuration/qbo-export-setting.model" ;
6
6
import { NetSuiteExportSettingGet } from "../netsuite/netsuite-configuration/netsuite-export-setting.model" ;
7
7
import { IntacctConfiguration } from "../db/configuration.model" ;
8
-
8
+ import { brandingConfig } from 'src/app/branding/branding-config' ;
9
9
export type EmailOption = {
10
10
email : string ;
11
11
name : string ;
@@ -87,11 +87,14 @@ export class AdvancedSettingsModel {
87
87
} else if ( 'workspace_general_settings' in exportSettings ) {
88
88
cccExportType = exportSettings . workspace_general_settings ?. corporate_credit_card_expenses_object ?? undefined ;
89
89
}
90
- // Filter out options based on cccExportType and appName
91
- if ( cccExportType && [ 'netsuite' , 'quickbooks online' , 'sage intacct' ] . includes ( appName . toLowerCase ( ) ) ) {
92
- return defaultOptions ; // Allow all options including 'card_number'
90
+
91
+ if ( brandingConfig . brandId === 'co' ) {
92
+ return defaultOptions . filter ( option => option !== 'card_number' && option !== 'employee_name' ) ;
93
93
}
94
- return defaultOptions . filter ( option => option !== 'card_number' ) ; // Omit 'card_number' for other apps
94
+ if ( cccExportType && [ 'netsuite' , 'quickbooks online' , 'sage intacct' ] . includes ( appName . toLowerCase ( ) ) && brandingConfig . brandId === 'fyle' ) {
95
+ return defaultOptions ;
96
+ }
97
+ return defaultOptions . filter ( option => option !== 'card_number' ) ;
95
98
96
99
}
97
100
You can’t perform that action at this time.
0 commit comments