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 repay from salary attribute #195

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nirzaf
Copy link

@nirzaf nirzaf commented Aug 14, 2024

Fixes #146

Add repay_from_salary attribute to Loan object in Loan Management module.

  • lending/loan_management/doctype/loan/loan.json

    • Add repay_from_salary attribute to the fields list.
    • Set the fieldtype to "Check".
    • Set the label to "Repay From Salary".
    • Set the default to "0".
  • lending/loan_management/doctype/loan/loan.py

    • Add the repay_from_salary attribute to the Loan class.
    • Update the validate method to handle the repay_from_salary attribute.
    • Update the set_missing_fields method to handle the repay_from_salary attribute.
  • lending/loan_management/doctype/loan/loan.js

    • Add the repay_from_salary attribute to the setup method.
    • Update the loan_application method to handle the repay_from_salary attribute.
  • lending/loan_management/doctype/loan/loan_dashboard.py

    • Add the repay_from_salary attribute to the get_data method.
  • lending/loan_management/doctype/loan/loan_list.js

    • Add the repay_from_salary attribute to the get_indicator method.
  • lending/loan_management/doctype/loan_repayment/loan_repayment.js

    • Add the repay_from_salary attribute to the setup method.

Fixes frappe#146

Add `repay_from_salary` attribute to Loan object in Loan Management module.

* **lending/loan_management/doctype/loan/loan.json**
  - Add `repay_from_salary` attribute to the fields list.
  - Set the `fieldtype` to "Check".
  - Set the `label` to "Repay From Salary".
  - Set the `default` to "0".

* **lending/loan_management/doctype/loan/loan.py**
  - Add the `repay_from_salary` attribute to the `Loan` class.
  - Update the `validate` method to handle the `repay_from_salary` attribute.
  - Update the `set_missing_fields` method to handle the `repay_from_salary` attribute.

* **lending/loan_management/doctype/loan/loan.js**
  - Add the `repay_from_salary` attribute to the `setup` method.
  - Update the `loan_application` method to handle the `repay_from_salary` attribute.

* **lending/loan_management/doctype/loan/loan_dashboard.py**
  - Add the `repay_from_salary` attribute to the `get_data` method.

* **lending/loan_management/doctype/loan/loan_list.js**
  - Add the `repay_from_salary` attribute to the `get_indicator` method.

* **lending/loan_management/doctype/loan_repayment/loan_repayment.js**
  - Add the `repay_from_salary` attribute to the `setup` method.
@KhaledBinAmir
Copy link

@deepeshgarg007 Please look at this PR, this is important one. Thank you

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.

repay from salary
2 participants