mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
style: add a more descriptive method name
This commit is contained in:
@@ -354,7 +354,7 @@ class LeaveApplication(Document):
|
|||||||
self.to_date, self.from_date)
|
self.to_date, self.from_date)
|
||||||
|
|
||||||
if expiry_date:
|
if expiry_date:
|
||||||
self.create_application_entry_for_expiry(expiry_date)
|
self.create_ledger_entry_for_intermediate_expiry(expiry_date, submit)
|
||||||
else:
|
else:
|
||||||
args = dict(
|
args = dict(
|
||||||
leaves=self.total_leave_days * -1,
|
leaves=self.total_leave_days * -1,
|
||||||
@@ -363,7 +363,7 @@ class LeaveApplication(Document):
|
|||||||
)
|
)
|
||||||
create_leave_ledger_entry(self, args, submit)
|
create_leave_ledger_entry(self, args, submit)
|
||||||
|
|
||||||
def create_application_entry_for_expiry(self, expiry_date):
|
def create_ledger_entry_for_intermediate_expiry(self, expiry_date, submit):
|
||||||
''' splits leave application into two ledger entries to consider expiry '''
|
''' splits leave application into two ledger entries to consider expiry '''
|
||||||
args = dict(
|
args = dict(
|
||||||
from_date=self.from_date,
|
from_date=self.from_date,
|
||||||
|
|||||||
Reference in New Issue
Block a user