diff --git a/lending/loan_management/doctype/loan_npa_log/__init__.py b/lending/loan_management/doctype/loan_npa_log/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/lending/loan_management/doctype/loan_npa_log/loan_npa_log.js b/lending/loan_management/doctype/loan_npa_log/loan_npa_log.js new file mode 100644 index 00000000..b2fd7554 --- /dev/null +++ b/lending/loan_management/doctype/loan_npa_log/loan_npa_log.js @@ -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 NPA Log", { +// refresh(frm) { + +// }, +// }); diff --git a/lending/loan_management/doctype/loan_npa_log/loan_npa_log.json b/lending/loan_management/doctype/loan_npa_log/loan_npa_log.json new file mode 100644 index 00000000..0540bb16 --- /dev/null +++ b/lending/loan_management/doctype/loan_npa_log/loan_npa_log.json @@ -0,0 +1,74 @@ +{ + "actions": [], + "allow_rename": 1, + "creation": "2023-11-30 16:18:22.239329", + "doctype": "DocType", + "engine": "InnoDB", + "field_order": [ + "loan", + "npa", + "manual_npa", + "event", + "npa_date", + "manual_npa_date" + ], + "fields": [ + { + "fieldname": "loan", + "fieldtype": "Link", + "label": "Loan", + "options": "Loan" + }, + { + "default": "0", + "fieldname": "npa", + "fieldtype": "Check", + "label": "NPA" + }, + { + "default": "0", + "fieldname": "manual_npa", + "fieldtype": "Check", + "label": "Manual NPA" + }, + { + "fieldname": "event", + "fieldtype": "Data", + "label": "Event" + }, + { + "fieldname": "npa_date", + "fieldtype": "Date", + "label": "NPA Date" + }, + { + "fieldname": "manual_npa_date", + "fieldtype": "Date", + "label": "Manual NPA Date" + } + ], + "index_web_pages_for_search": 1, + "links": [], + "modified": "2023-11-30 17:06:30.647956", + "modified_by": "Administrator", + "module": "Loan Management", + "name": "Loan NPA Log", + "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": [] +} \ No newline at end of file diff --git a/lending/loan_management/doctype/loan_npa_log/loan_npa_log.py b/lending/loan_management/doctype/loan_npa_log/loan_npa_log.py new file mode 100644 index 00000000..09ce9293 --- /dev/null +++ b/lending/loan_management/doctype/loan_npa_log/loan_npa_log.py @@ -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 LoanNPALog(Document): + pass diff --git a/lending/loan_management/doctype/loan_npa_log/test_loan_npa_log.py b/lending/loan_management/doctype/loan_npa_log/test_loan_npa_log.py new file mode 100644 index 00000000..a41c744f --- /dev/null +++ b/lending/loan_management/doctype/loan_npa_log/test_loan_npa_log.py @@ -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 TestLoanNPALog(FrappeTestCase): + pass diff --git a/lending/loan_management/doctype/loan_security_deposit/loan_security_deposit.json b/lending/loan_management/doctype/loan_security_deposit/loan_security_deposit.json index 4f333c36..3ff9440b 100644 --- a/lending/loan_management/doctype/loan_security_deposit/loan_security_deposit.json +++ b/lending/loan_management/doctype/loan_security_deposit/loan_security_deposit.json @@ -11,6 +11,11 @@ "loan_disbursement", "deposit_amount", "allocated_amount", + "available_amount", + "deposit_date", + "allocated_date", + "refund_amount", + "refund_date", "amended_from" ], "fields": [ @@ -48,13 +53,38 @@ "options": "Loan Security Deposit", "print_hide": 1, "read_only": 1 + }, + { + "fieldname": "deposit_date", + "fieldtype": "Date", + "label": "Deposit Date" + }, + { + "fieldname": "allocated_date", + "fieldtype": "Date", + "label": "Allocated Date" + }, + { + "fieldname": "refund_amount", + "fieldtype": "Currency", + "label": "Refund Amount" + }, + { + "fieldname": "refund_date", + "fieldtype": "Date", + "label": "Refund Date" + }, + { + "fieldname": "available_amount", + "fieldtype": "Currency", + "label": "Available Amount" } ], "in_create": 1, "index_web_pages_for_search": 1, "is_submittable": 1, "links": [], - "modified": "2023-10-10 17:12:15.919211", + "modified": "2023-11-30 17:14:55.499085", "modified_by": "Administrator", "module": "Loan Management", "name": "Loan Security Deposit",