mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-01 12:38:27 +00:00
@@ -63,7 +63,7 @@ class UnreconcilePayments(Document):
|
||||
|
||||
|
||||
@frappe.whitelist()
|
||||
def doc_has_references(doctype, docname):
|
||||
def doc_has_references(doctype: str = None, docname: str = None):
|
||||
if doctype in ["Sales Invoice", "Purchase Invoice"]:
|
||||
return frappe.db.count(
|
||||
"Payment Ledger Entry",
|
||||
|
||||
Reference in New Issue
Block a user