Skip to content

fix: remove duplicate method from disbursement#1250

Merged
Nihantra-Patel merged 1 commit into
frappe:developfrom
Nihantra-Patel:remove-duplicate-method
Jun 1, 2026
Merged

fix: remove duplicate method from disbursement#1250
Nihantra-Patel merged 1 commit into
frappe:developfrom
Nihantra-Patel:remove-duplicate-method

Conversation

@Nihantra-Patel
Copy link
Copy Markdown
Member

@Nihantra-Patel Nihantra-Patel commented Jun 1, 2026

Summary by CodeRabbit

  • Bug Fixes

    • Loan disbursement now accepts decimal amount values for precise calculations
  • Refactor

    • Removed unused validation logic from loan product configuration

@Nihantra-Patel Nihantra-Patel marked this pull request as ready for review June 1, 2026 11:07
@Nihantra-Patel Nihantra-Patel merged commit 453d662 into frappe:develop Jun 1, 2026
8 checks passed
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 1, 2026

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 001d9175-e6ba-4088-b9fd-2d8ba86d9a1b

📥 Commits

Reviewing files that changed from the base of the PR and between 78453ff and 0004b13.

📒 Files selected for processing (2)
  • lending/loan_management/doctype/loan/loan.py
  • lending/loan_management/doctype/loan_product/loan_product.py

Walkthrough

This PR contains two targeted updates to the loan management doctypes. The make_loan_disbursement function signature is modified to accept float instead of int for the disbursement_amount parameter, with the default value changed from 0 to None. Separately, the validate_demand_offset_sequences method is removed from the LoanProduct class, while the module-level get_default_charge_accounts utility function remains in place.


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.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant