-
Notifications
You must be signed in to change notification settings - Fork 84
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
repay from salary #146
Labels
bug
Something isn't working
Comments
nirzaf
added a commit
to nirzaf/lending
that referenced
this issue
Aug 14, 2024
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.
Facing same issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Information about bug
repay from salary checkbox was removed from loan doctype in erp next version 14 but we still get issues when submitting loan doctype like this one
AttributeError: 'Loan' object has no attribute 'repay_from_salary'
Module
Loan Management
Version
ERPNext: v14.46.1 (version-14)
Frappe Framework: v14.54.0 (version-14)
Installation method
docker
Relevant log output / Stack trace / Full Error Message.
Route
Traceback
Code of Conduct
The text was updated successfully, but these errors were encountered: