mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-14 12:25:09 +00:00
fix: added extra condition (#20139)
This commit is contained in:
committed by
Nabin Hait
parent
efa7d5c831
commit
26e86e7576
@@ -351,7 +351,7 @@ class LeaveApplication(Document):
|
||||
pass
|
||||
|
||||
def create_leave_ledger_entry(self, submit=True):
|
||||
if self.status != 'Approved':
|
||||
if self.status != 'Approved' and submit:
|
||||
return
|
||||
|
||||
expiry_date = get_allocation_expiry(self.employee, self.leave_type,
|
||||
|
||||
Reference in New Issue
Block a user