brotherton-erpnext/erpnext/patches/v13_0/delete_bank_reconciliation_detail.py
2022-03-28 18:52:46 +05:30

15 lines
334 B
Python

# Copyright (c) 2019, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
def execute():
if frappe.db.exists("DocType", "Bank Reconciliation Detail") and frappe.db.exists(
"DocType", "Bank Clearance Detail"
):
frappe.delete_doc("DocType", "Bank Reconciliation Detail", force=1)