fix:Intacct date grouping fix#1192
Conversation
WalkthroughThis pull request refactors the expense date options handling within the Changes
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
💤 Files with no reviewable changes (2)
⏰ Context from checks skipped due to timeout of 90000ms (1)
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 (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
src/app/integrations/intacct/intacct-shared/intacct-export-settings/intacct-export-settings.component.ts (1)
280-280: Consider removing commented-out code or clarifying its purpose.
Retaining commented-out code can cause confusion and lead to maintenance overhead. If you no longer need this line, removing it fully is recommended. Otherwise, add a comment explaining the need to keep it.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/app/integrations/intacct/intacct-shared/intacct-export-settings/intacct-export-settings.component.ts(2 hunks)
🔇 Additional comments (2)
src/app/integrations/intacct/intacct-shared/intacct-export-settings/intacct-export-settings.component.ts (2)
464-464: Looks good; verify correctness of constructed date options.
This updated approach to buildreimbursableExpenseGroupingDateOptionsviaconstructExportDateOptions()seems consistent with the refactor. As a sanity check, confirm the returned options meet all use cases for reimbursable expenses.
468-471: Straightforward logic forcccExpenseGroupingDateOptions.
PassingtrueforCHARGE_CARD_TRANSACTIONandfalseotherwise aligns with the new simplified approach. This indicates a clear separation of credit card date-grouping behavior versus reimbursable behavior.
| private cccExportTypeWatcher(): void { | ||
| this.exportSettingsForm.controls.cccExportType.valueChanges.subscribe((isCCCExportTypeSelected) => { | ||
| this.setCCExpenseDateOptions(isCCCExportTypeSelected); | ||
| // This.setCCExpenseDateOptions(isCCCExportTypeSelected); |
There was a problem hiding this comment.
cann we remove this instead of commenting
|
Description
fix:Intacct date grouping fix
Clickup
https://app.clickup.com
Screen.Recording.2025-02-27.at.4.41.56.PM.mov
Screen.Recording.2025-02-27.at.4.42.54.PM.mov
Summary by CodeRabbit
Refactor
Bug Fixes
Chores