calc timesheet dates on validate not just submit
diff --git a/erpnext/projects/doctype/timesheet/timesheet.py b/erpnext/projects/doctype/timesheet/timesheet.py
index 02e5f18..5483320 100644
--- a/erpnext/projects/doctype/timesheet/timesheet.py
+++ b/erpnext/projects/doctype/timesheet/timesheet.py
@@ -28,6 +28,7 @@
self.update_cost()
self.calculate_total_amounts()
self.calculate_percentage_billed()
+ self.set_dates()
def set_employee_name(self):
if self.employee and not self.employee_name:
@@ -86,9 +87,6 @@
self.start_date = getdate(start_date)
self.end_date = getdate(end_date)
- def before_submit(self):
- self.set_dates()
-
def before_cancel(self):
self.set_status()