refactor: process on submit

(cherry picked from commit c738b6d356)
This commit is contained in:
ruthra kumar
2025-10-16 15:34:08 +05:30
committed by Mergify
parent 18c7121230
commit 62e8d4753e

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):