forked from frappe/lending
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loan repay from salary attribute
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.
- Loading branch information
Showing
6 changed files
with
26 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters