mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-14 09:23:09 +00:00
Co-authored-by: Diptanil Saha <diptanil@frappe.io>
This commit is contained in:
@@ -123,6 +123,8 @@ class RepostPaymentLedger(Document):
|
||||
def execute_repost_payment_ledger(docname):
|
||||
"""Repost Payment Ledger Entries by background job."""
|
||||
|
||||
frappe.has_permission("Repost Payment Ledger", ptype="submit", doc=docname, throw=True)
|
||||
|
||||
job_name = "payment_ledger_repost_" + docname
|
||||
|
||||
frappe.enqueue(
|
||||
|
||||
Reference in New Issue
Block a user