fix: netsuite date grouping fixes#1194
Conversation
WalkthroughThis change refactors the Netsuite export settings component by consolidating the logic for updating date options. Both the Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant User as User Interaction
participant Component as NetsuiteExportSettingsComponent
participant Model as ExportSettingModel
User->>+Component: Change export type or group values
Component->>Component: Trigger updateCCCExpenseGroupingDateOptions / setupCustomDateOptionWatchers
Component->>+Model: constructExportDateOptions(isCreditCardCharge, creditCardExportGroup, creditCardExportDate)
Model-->>-Component: Return updated date options
Component-->>-Component: Update cccExpenseGroupingDateOptions
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🔇 Additional comments (5)
✨ Finishing Touches
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
| this.cccExpenseGroupingDateOptions = this.reimbursableExpenseGroupingDate(this.exportSettingForm.controls.creditCardExportGroup?.value, NetSuiteExportSettingModel.getReimbursableExpenseGroupingDateOptions()); | ||
| } | ||
| if (this.exportSettingForm.get('creditCardExportType')?.value && this.exportSettingForm.get('creditCardExportType')?.value !== NetSuiteCorporateCreditCardExpensesObject.CREDIT_CARD_CHARGE) { | ||
| this.cccExpenseGroupingDateOptions = ExportSettingModel.constructExportDateOptions(true, this.exportSettingForm.controls.creditCardExportGroup.value, this.exportSettingForm.controls.creditCardExportDate.value); |
There was a problem hiding this comment.
1st one should be false no? since the condition is !== NetSuiteCorporateCreditCardExpensesObject.CREDIT_CARD_CHARGE
Description
fix: netsuite date grouping fixes
Clickup
https://app.clickup.com/
Summary by CodeRabbit