@@ -159,22 +159,18 @@ export class BusinessCentralExportSettingsComponent implements OnInit {
159
159
160
160
private setupCustomWatchers ( ) : void {
161
161
this . exportSettingForm . controls . reimbursableExportGroup . valueChanges . subscribe ( ( reimbursableExportGroup ) => {
162
- if ( brandingConfig . brandId === 'fyle' ) {
163
- this . reimbursableExpenseGroupingDateOptions = BusinessCentralExportSettingModel . getReimbursableExpenseGroupingDateOptions ( ) ;
164
- this . reimbursableExpenseGroupingDateOptions = ExportSettingModel . constructGroupingDateOptions ( reimbursableExportGroup , this . reimbursableExpenseGroupingDateOptions ) ;
165
- }
162
+ this . reimbursableExpenseGroupingDateOptions = BusinessCentralExportSettingModel . getReimbursableExpenseGroupingDateOptions ( ) ;
163
+ this . reimbursableExpenseGroupingDateOptions = ExportSettingModel . constructGroupingDateOptions ( reimbursableExportGroup , this . reimbursableExpenseGroupingDateOptions ) ;
166
164
} ) ;
167
165
168
166
this . exportSettingForm . controls . cccExportGroup . valueChanges . subscribe ( ( cccExportGroup ) => {
169
- if ( brandingConfig . brandId === 'fyle' ) {
170
- this . cccExpenseGroupingDateOptions = BusinessCentralExportSettingModel . getCCCExpenseGroupingDateOptions ( ) ;
171
- this . cccExpenseGroupingDateOptions = ExportSettingModel . constructGroupingDateOptions ( cccExportGroup , this . cccExpenseGroupingDateOptions ) ;
172
-
173
- // If the selected value is not valid after the export group change, reset the field
174
- const visibleValues = this . getExportDate ( this . cccExpenseGroupingDateOptions , 'cccExportGroup' ) . map ( option => option . value ) ;
175
- if ( ! visibleValues . includes ( this . exportSettingForm . get ( 'cccExportDate' ) ?. value ) ) {
176
- this . exportSettingForm . get ( 'cccExportDate' ) ?. reset ( ) ;
177
- }
167
+ this . cccExpenseGroupingDateOptions = BusinessCentralExportSettingModel . getCCCExpenseGroupingDateOptions ( ) ;
168
+ this . cccExpenseGroupingDateOptions = ExportSettingModel . constructGroupingDateOptions ( cccExportGroup , this . cccExpenseGroupingDateOptions ) ;
169
+
170
+ // If the selected value is not valid after the export group change, reset the field
171
+ const visibleValues = this . getExportDate ( this . cccExpenseGroupingDateOptions , 'cccExportGroup' ) . map ( option => option . value ) ;
172
+ if ( ! visibleValues . includes ( this . exportSettingForm . get ( 'cccExportDate' ) ?. value ) ) {
173
+ this . exportSettingForm . get ( 'cccExportDate' ) ?. reset ( ) ;
178
174
}
179
175
} ) ;
180
176
0 commit comments