fzhan
November 19, 2024, 2:25am
1
Hi,
I’m trying to assign timesheet to external user that works on projects for us, they are not employees, I found user field in timesheet, but cannot see how to assign it from the UI.
start_date: DF.Date | None
status: DF.Literal["Draft", "Submitted", "Billed", "Payslip", "Completed", "Cancelled"]
time_logs: DF.Table[TimesheetDetail]
title: DF.Data | None
total_billable_amount: DF.Currency
total_billable_hours: DF.Float
total_billed_amount: DF.Currency
total_billed_hours: DF.Float
total_costing_amount: DF.Currency
total_hours: DF.Float
user: DF.Link | None
# end: auto-generated types
def validate(self):
self.set_status()
self.validate_dates()
self.calculate_hours()
self.validate_time_logs()
self.update_cost()
self.calculate_total_amounts()
self.calculate_percentage_billed()