mirror of
https://github.com/hanzoai/erp.git
synced 2026-09-30 21:46:27 +00:00
18 lines
430 B
Python
18 lines
430 B
Python
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()
|