Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: loan repayment via fnf #2643

Merged
merged 4 commits into from
Jan 28, 2025

Conversation

AyshaHakeem
Copy link
Collaborator

@AyshaHakeem AyshaHakeem commented Jan 15, 2025

Handle receivable loans included in the Full and Final (FnF) statement, if any, upon its submission:

  • Create loan accrual entries for unaccrued repayment schedules
  • Generate a repayment entry
  • Cancel the accrual and repayment entries if the FnF statement is canceled

@AyshaHakeem AyshaHakeem self-assigned this Jan 15, 2025
@AyshaHakeem AyshaHakeem requested review from nabinhait and deepeshgarg007 and removed request for ruchamahabal January 15, 2025 11:35
@AyshaHakeem AyshaHakeem changed the title Fix fnf loan repayment Fix: loan repayment via fnf Jan 15, 2025
if loan_repayment_schedule.repayment_schedule:
amounts = []
for repayment_schedule in loan_repayment_schedule.repayment_schedule:
amounts = calculate_amounts(loan, doc.transaction_date, "Normal Repayment")
Copy link
Member

Choose a reason for hiding this comment

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

Amounts should ideally be fetched once the accrual is done

@deepeshgarg007 deepeshgarg007 merged commit 489dc13 into frappe:develop Jan 28, 2025
10 checks passed
deepeshgarg007 added a commit that referenced this pull request Jan 28, 2025
…2643

Fix: loan repayment via fnf (backport #2643)
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.

2 participants