fix: typo in doctype name and qb
diff --git a/erpnext/accounts/utils.py b/erpnext/accounts/utils.py
index 0a5c5b9..f4d28c6 100644
--- a/erpnext/accounts/utils.py
+++ b/erpnext/accounts/utils.py
@@ -766,9 +766,7 @@
 	linked_jv = (
 		qb.from_(jea)
 		.select(jea.parent)
-		.select(
-			(jea.reference_type == ref_type) & (jea.reference_name == ref_no) & (jea.docstatus.lt(2))
-		)
+		.where((jea.reference_type == ref_type) & (jea.reference_name == ref_no) & (jea.docstatus.lt(2)))
 		.run(as_list=1)
 	)
 	linked_jv = convert_to_list(linked_jv)