mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
patch: add reload doc for leave ledger entry
This commit is contained in:
@@ -7,6 +7,7 @@ import frappe
|
|||||||
def execute():
|
def execute():
|
||||||
""" Generates leave ledger entries for leave allocation/application/encashment
|
""" Generates leave ledger entries for leave allocation/application/encashment
|
||||||
for last allocation """
|
for last allocation """
|
||||||
|
frappe.reload_doc("HR","doctype", "Leave Ledger Entry")
|
||||||
if frappe.db.a_row_exists("Leave Ledger Entry"):
|
if frappe.db.a_row_exists("Leave Ledger Entry"):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user