mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
chore: clear singles table and reconciliation related tables
(cherry picked from commit f31002636b)
# Conflicts:
# erpnext/patches.txt
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
from frappe import qb
|
||||
|
||||
|
||||
def execute():
|
||||
"""
|
||||
Clear `tabSingles` and Payment Reconciliation tables of values
|
||||
"""
|
||||
singles = qb.DocType("Singles")
|
||||
qb.from_(singles).delete().where(singles.doctype == "Payment Reconciliation").run()
|
||||
doctypes = [
|
||||
"Payment Reconciliation Invoice",
|
||||
"Payment Reconciliation Payment",
|
||||
"Payment Reconciliation Allocation",
|
||||
]
|
||||
for x in doctypes:
|
||||
dt = qb.DocType(x)
|
||||
qb.from_(dt).delete().run()
|
||||
Reference in New Issue
Block a user