refactor: process on submit

This commit is contained in:
ruthra kumar
2025-10-16 15:34:08 +05:30
parent 8ba199016a
commit c738b6d356

View File

@@ -46,6 +46,9 @@ class ProcessPeriodClosingVoucher(Document):
for x in dates:
self.append("dates_to_process", {"processing_date": x, "status": "Queued"})
def on_submit(self):
start_pcv_processing(self.name)
@frappe.whitelist()
def start_pcv_processing(docname: str):