Skip to content

Commit

Permalink
test: getdate(frappe.flags.current_date) for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asmitahase committed Feb 4, 2025
1 parent 51dc0e4 commit 460c2ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def get_leaves_for_passed_months(self, annual_allocation, leave_details, date_of
from hrms.hr.utils import get_monthly_earned_leave

def _get_current_and_from_date():
current_date = frappe.flags.current_date or getdate()
current_date = getdate(frappe.flags.current_date) or getdate()
if current_date > getdate(self.effective_to):
current_date = getdate(self.effective_to)

Expand Down

0 comments on commit 460c2ac

Please sign in to comment.