fix: typo in doctype name and qb

(cherry picked from commit 9a1588f1cc)
This commit is contained in:
ruthra kumar
2023-08-30 20:50:16 +05:30
committed by Mergify
parent cf308912a1
commit 606c99e57c
2 changed files with 2 additions and 4 deletions

View File

@@ -754,9 +754,7 @@ def remove_ref_doc_link_from_jv(
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)

View File

@@ -212,7 +212,7 @@ class AccountsController(TransactionBase):
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)