fix: route on loan Disbursement and Closing
diff --git a/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.js b/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.js
index e63bc50..328df4f 100644
--- a/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.js
+++ b/erpnext/accounts/doctype/invoice_discounting/invoice_discounting.js
@@ -148,7 +148,8 @@
 			doc: frm.doc,
 			callback: function(r) {
 				if(!r.exc){
-					frappe.set_route("Form", r.message.doctype, r.message.name);
+					var doclist = frappe.model.sync(r.message);
+					frappe.set_route("Form", doclist[0].doctype, doclist[0].name);
 				}
 			}
 		});
@@ -161,7 +162,8 @@
 			doc: frm.doc,
 			callback: function(r) {
 				if(!r.exc){
-					frappe.set_route("Form", r.message.doctype, r.message.name);
+					var doclist = frappe.model.sync(r.message);
+					frappe.set_route("Form", doclist[0].doctype, doclist[0].name);
 				}
 			}
 		});