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)
diff --git a/erpnext/controllers/accounts_controller.py b/erpnext/controllers/accounts_controller.py
index 5631fca..df0d0c5 100644
--- a/erpnext/controllers/accounts_controller.py
+++ b/erpnext/controllers/accounts_controller.py
@@ -212,7 +212,7 @@
validate_einvoice_fields(self)
def _remove_references_in_unreconcile(self):
- upe = frappe.qb.DocType("UnReconcile Payment Entries")
+ upe = frappe.qb.DocType("Unreconcile Payment Entries")
rows = (
frappe.qb.from_(upe)
.select(upe.name, upe.parent)