Skip to content

Commit

Permalink
fix: Ignore loan adjustment doctype on cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
deepeshgarg007 committed Nov 13, 2024
1 parent ff03ba1 commit 0a0d2ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ lending.common.setup_filters("Loan Repayment");

frappe.ui.form.on('Loan Repayment', {
setup(frm) {
frm.ignore_doctypes_on_cancel_all = ["Process Loan Classification", "Loan Repayment Repost",
frm.ignore_doctypes_on_cancel_all = ["Process Loan Classification", "Loan Repayment Repost", "Loan Adjustment",
"Loan Restructure", "Loan Repayment Schedule", "Sales Invoice", "Loan Demand", "Loan Interest Accrual"];
if (frappe.meta.has_field("Loan Repayment", "repay_from_salary")) {
frm.add_fetch("against_loan", "repay_from_salary", "repay_from_salary");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ def on_cancel(self):
"Sales Invoice",
"Loan Repayment Schedule",
"Loan Repayment Repost",
"Loan Adjustment",
]
self.make_gl_entries(cancel=1)
self.post_suspense_entries(cancel=1)
Expand Down

0 comments on commit 0a0d2ce

Please sign in to comment.