mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-30 07:08:24 +00:00
minor issue
This commit is contained in:
@@ -80,8 +80,8 @@ class Timesheet(Document):
|
||||
|
||||
def set_dates(self):
|
||||
if self.docstatus < 2 and self.time_logs:
|
||||
start_date = min([d.from_time for d in self.time_logs])
|
||||
end_date = max([d.to_time for d in self.time_logs])
|
||||
start_date = min([getdate(d.from_time) for d in self.time_logs])
|
||||
end_date = max([getdate(d.to_time) for d in self.time_logs])
|
||||
|
||||
if start_date and end_date:
|
||||
self.start_date = getdate(start_date)
|
||||
|
||||
Reference in New Issue
Block a user