brotherton-erpnext/erpnext/patches/v13_0/delete_bank_reconciliation_detail.py
2022-01-19 19:37:55 +05:30

14 lines
333 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)