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

feat: Loan document updates #135

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
8 changes: 8 additions & 0 deletions lending/loan_management/doctype/loan_demand/loan_demand.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
// For license information, please see license.txt

// frappe.ui.form.on("Loan Demand", {
// refresh(frm) {

// },
// });
67 changes: 67 additions & 0 deletions lending/loan_management/doctype/loan_demand/loan_demand.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"actions": [],
"allow_rename": 1,
"creation": "2023-11-22 17:03:33.314004",
"doctype": "DocType",
"engine": "InnoDB",
"field_order": [
"loan_demand_details_section",
"demand_date",
"demand_type",
"demand_sub_type",
"demand_amount"
],
"fields": [
{
"fieldname": "loan_demand_details_section",
"fieldtype": "Section Break",
"label": "Loan Demand Details"
},
{
"fieldname": "demand_date",
"fieldtype": "Date",
"label": "Demand Date"
},
{
"fieldname": "demand_type",
"fieldtype": "Select",
"label": "Demand Type",
"options": "EMI\nPenalty"
},
{
"fieldname": "demand_sub_type",
"fieldtype": "Select",
"label": "Demand Sub Type",
"options": "Principal\nInterest\nPenal"
},
{
"fieldname": "demand_amount",
"fieldtype": "Currency",
"label": "Demand Amount"
}
],
"index_web_pages_for_search": 1,
"links": [],
"modified": "2023-11-22 17:07:24.843146",
"modified_by": "Administrator",
"module": "Loan Management",
"name": "Loan Demand",
"owner": "Administrator",
"permissions": [
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "System Manager",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
"sort_order": "DESC",
"states": []
}
9 changes: 9 additions & 0 deletions lending/loan_management/doctype/loan_demand/loan_demand.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and contributors
# For license information, please see license.txt

# import frappe
from frappe.model.document import Document


class LoanDemand(Document):
pass
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Copyright (c) 2023, Frappe Technologies Pvt. Ltd. and Contributors
# See license.txt

# import frappe
from frappe.tests.utils import FrappeTestCase


class TestLoanDemand(FrappeTestCase):
pass
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,26 @@
"engine": "InnoDB",
"field_order": [
"loan",
"rate_of_interest",
"loan_product",
"applicant_type",
"applicant",
"interest_income_account",
"loan_account",
"column_break_4",
"company",
"start_date",
"posting_date",
"due_date",
"accrual_type",
"interest_type",
"is_term_loan",
"is_npa",
"section_break_7",
"pending_principal_amount",
"payable_principal_amount",
"paid_principal_amount",
"additional_interest_amount",
"column_break_14",
"interest_amount",
"total_pending_interest_amount",
Expand All @@ -47,7 +51,7 @@
"fieldname": "posting_date",
"fieldtype": "Date",
"in_list_view": 1,
"label": "Posting Date"
"label": "Posting Date (End Date)"
},
{
"fieldname": "pending_principal_amount",
Expand Down Expand Up @@ -213,13 +217,35 @@
"fieldname": "is_npa",
"fieldtype": "Check",
"label": "Is NPA"
},
{
"fieldname": "start_date",
"fieldtype": "Date",
"label": "Start Date"
},
{
"fieldname": "interest_type",
"fieldtype": "Select",
"label": "Interest Type",
"options": "Normal Interest\nPenal Interest"
},
{
"fetch_from": "loan.rate_of_interest",
"fieldname": "rate_of_interest",
"fieldtype": "Float",
"label": "Rate Of Interest"
},
{
"fieldname": "additional_interest_amount",
"fieldtype": "Currency",
"label": "Additional Interest Amount"
}
],
"in_create": 1,
"index_web_pages_for_search": 1,
"is_submittable": 1,
"links": [],
"modified": "2023-10-02 22:14:24.469965",
"modified": "2023-11-22 16:57:11.982248",
"modified_by": "Administrator",
"module": "Loan Management",
"name": "Loan Interest Accrual",
Expand Down
Loading