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

Commits on Aug 14, 2024

  1. 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.
    nirzaf committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    e5f371f View commit details
    Browse the repository at this point in the history