Documentation
¶
Index ¶
- func CalculateEarnings(hours float64) float64
- func ClockifyGetWorkHoursGroupByDate(userId, workspaceId, start, end string)
- func ClockifyGetWorkHoursGroupByProject(userId, workspaceId string) *model.Invoice
- func ClockifyGetWorkspace() (string, string)
- func CreateSpreadsheet(invoice *model.Invoice)
- func GetExchangeRates(usdCurrency float64) (phpCurrency float64)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculateEarnings ¶
CalculateEarnings calculates the earnings of the user based on the hours worked.
func ClockifyGetWorkHoursGroupByDate ¶
func ClockifyGetWorkHoursGroupByDate(userId, workspaceId, start, end string)
ClockifyGetWorkHoursGroupByDate fetches the work hours of the user grouped by date.
func ClockifyGetWorkHoursGroupByProject ¶
ClockifyGetWorkHoursGroupByProject fetches the work hours of the user grouped by project.
func ClockifyGetWorkspace ¶
ClockifyGetWorkspace fetches the default workspace and user id of the user.
func CreateSpreadsheet ¶
CreateSpreadsheet creates a new spreadsheet.
func GetExchangeRates ¶
GetExchangeRates fetches the latest exchange rates from the fxRatesApiUrl.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.