Skip to content

WEB-921 Restrict negative values in fixed deposits frequency and period fields#3505

Merged
alberto-art3ch merged 1 commit into
openMF:devfrom
JaySoni1:WEB-921-restrict-negative-values-in-fixed-deposits-frequency-and-period-fields
Apr 14, 2026
Merged

WEB-921 Restrict negative values in fixed deposits frequency and period fields#3505
alberto-art3ch merged 1 commit into
openMF:devfrom
JaySoni1:WEB-921-restrict-negative-values-in-fixed-deposits-frequency-and-period-fields

Conversation

@JaySoni1
Copy link
Copy Markdown
Contributor

@JaySoni1 JaySoni1 commented Apr 14, 2026

Chnages Made :-

-Fixed deposits account creation form allows negative values in Lock-in Period Frequency and Deposit Period fields .

WEB-921

Summary by CodeRabbit

  • Bug Fixes
    • Enhanced numeric input validation throughout the fixed deposit account setup process. Deposit period and lock-in period frequency fields now enforce strict positive integer constraints, preventing users from entering invalid or erroneous values. This improvement significantly reduces data entry errors and ensures higher data quality when creating and configuring fixed deposit accounts.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 14, 2026

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'pre_merge_checks'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: a0e206ce-cc81-49fc-a0d0-944c6c8f63b7

📥 Commits

Reviewing files that changed from the base of the PR and between 0810439 and 3fa7730.

📒 Files selected for processing (4)
  • src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-settings-step/fixed-deposit-account-settings-step.component.html
  • src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-settings-step/fixed-deposit-account-settings-step.component.ts
  • src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-terms-step/fixed-deposit-account-terms-step.component.html
  • src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-terms-step/fixed-deposit-account-terms-step.component.ts

Walkthrough

This PR enhances input validation in fixed deposit account components by applying the mifosxPositiveInteger directive to numeric form inputs and adding corresponding directive imports, while also improving TypeScript type safety through definite assignment assertions.

Changes

Cohort / File(s) Summary
Fixed Deposit Account Settings Step
src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-settings-step/fixed-deposit-account-settings-step.component.html, fixed-deposit-account-settings-step.component.ts
Added mifosxPositiveInteger directive to the lock-in period frequency input field. Updated TypeScript component to import PositiveIntegerDirective, changed fixedDepositAccountSettingsForm and maturityInstructionOptions fields to use definite assignment assertions, and added non-null assertions to form value access operations throughout the component.
Fixed Deposit Account Terms Step
src/app/deposits/fixed-deposits/fixed-deposit-account-stepper/fixed-deposit-account-terms-step/fixed-deposit-account-terms-step.component.html, fixed-deposit-account-terms-step.component.ts
Added mifosxPositiveInteger directive to the deposit period input field. Updated TypeScript component to import PositiveIntegerDirective and changed fixedDepositAccountTermsForm field to use definite assignment assertion.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Suggested reviewers

  • IOhacker
  • alberto-art3ch
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title accurately and specifically describes the main change: restricting negative values in fixed deposits frequency and period fields, which directly matches the changeset modifications to these input fields.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Collaborator

@alberto-art3ch alberto-art3ch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@alberto-art3ch alberto-art3ch merged commit 8ecadcc into openMF:dev Apr 14, 2026
6 checks passed
@JaySoni1
Copy link
Copy Markdown
Contributor Author

@alberto-art3ch Thank You for the review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants