Skip to content

Commit

Permalink
Fix Grouping Options Dropdown (#786)
Browse files Browse the repository at this point in the history
* Fix Grouping Options Dropdown

* lint fix

* Fix for netsuite
  • Loading branch information
anishfyle authored May 13, 2024
1 parent 54a5ec7 commit 12d2520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export class NetsuiteExportSettingsComponent implements OnInit {
}

private setupCustomWatchers(): void {
if (this.exportSettingForm.value.creditCardExportType) {
if (this.exportSettingForm.value.creditCardExportType && (this.exportSettingForm.value.creditCardExportType === NetSuiteCorporateCreditCardExpensesObject.CREDIT_CARD_CHARGE)) {
this.updateCCCExpenseGroupingDateOptions(this.exportSettingForm.value.creditCardExportType);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export class QboExportSettingsComponent implements OnInit {
}

private setupCustomWatchers(): void {
if (this.exportSettingForm.value.creditCardExportType) {
if (this.exportSettingForm.value.creditCardExportType && [QBOCorporateCreditCardExpensesObject.CREDIT_CARD_PURCHASE, QBOCorporateCreditCardExpensesObject.DEBIT_CARD_EXPENSE].includes(this.exportSettingForm.value.creditCardExportType)) {
this.updateCCCExpenseGroupingDateOptions(this.exportSettingForm.value.creditCardExportType);
}

Expand Down

0 comments on commit 12d2520

Please sign in to comment.