mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
refactor: process on submit
This commit is contained in:
@@ -46,6 +46,9 @@ class ProcessPeriodClosingVoucher(Document):
|
|||||||
for x in dates:
|
for x in dates:
|
||||||
self.append("dates_to_process", {"processing_date": x, "status": "Queued"})
|
self.append("dates_to_process", {"processing_date": x, "status": "Queued"})
|
||||||
|
|
||||||
|
def on_submit(self):
|
||||||
|
start_pcv_processing(self.name)
|
||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def start_pcv_processing(docname: str):
|
def start_pcv_processing(docname: str):
|
||||||
|
|||||||
Reference in New Issue
Block a user